-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
51 lines (49 loc) · 1.62 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import js from "@eslint/js"
import perfectionistNatural from "eslint-plugin-perfectionist"
import is from "eslint-plugin-simple-import-sort"
import eslintPluginUnicorn from "eslint-plugin-unicorn"
export default [
eslintPluginUnicorn.configs["flat/recommended"],
js.configs.recommended,
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: 2024,
globals: {
console: true,
process: true
},
sourceType: "module"
},
plugins: {
perfectionist: perfectionistNatural,
"simple-import-sort": is
},
rules: {
"no-console": "off",
"no-unused-vars": "warn",
"perfectionist/sort-array-includes": "warn",
"perfectionist/sort-astro-attributes": "warn",
"perfectionist/sort-classes": "warn",
"perfectionist/sort-enums": "warn",
"perfectionist/sort-exports": "warn",
"perfectionist/sort-imports": "warn",
"perfectionist/sort-interfaces": "warn",
"perfectionist/sort-jsx-props": "warn",
"perfectionist/sort-maps": "warn",
"perfectionist/sort-named-exports": "warn",
"perfectionist/sort-named-imports": "warn",
"perfectionist/sort-object-types": "warn",
"perfectionist/sort-objects": "warn",
"simple-import-sort/exports": "warn",
"simple-import-sort/imports": "warn",
"unicorn/consistent-function-scoping": "warn",
"unicorn/no-array-callback-reference": "warn",
"unicorn/no-null": "warn",
"unicorn/no-process-exit": "off",
"unicorn/prefer-switch": "off",
"unicorn/prefer-top-level-await": "off",
"unicorn/prevent-abbreviations": "warn"
}
}
]