-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslintBaseConfig.json
73 lines (73 loc) · 2.19 KB
/
eslintBaseConfig.json
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"plugins": [
"eslint-plugin-eslint-comments",
"eslint-plugin-import",
"eslint-plugin-perfectionist",
"eslint-plugin-regexp",
"eslint-plugin-unicorn"
],
"extends": [
"eslint-config-airbnb-base",
"plugin:eslint-comments/recommended",
"plugin:import/recommended",
"plugin:perfectionist/recommended-alphabetical-legacy",
"plugin:regexp/recommended",
"plugin:unicorn/recommended"
],
"reportUnusedDisableDirectives": true,
"env": {
"browser": false,
"es2024": true,
"node": false
},
"parserOptions": {
"ecmaFeatures": {
"impliedStrict": true
},
"sourceType": "module"
},
"rules": {
"curly": ["error", "all"],
"eslint-comments/no-unused-disable": "error",
"eslint-comments/require-description": "error",
"import/exports-last": "error",
"import/extensions": ["error", "ignorePackages"],
"import/group-exports": "error",
"import/no-default-export": "error",
"import/no-unresolved": ["error", { "caseSensitiveStrict": true }],
"import/order": "off",
"import/prefer-default-export": "off",
"no-console": "error",
"no-restricted-syntax": "off",
"no-use-before-define": ["error", { "functions": false }],
"perfectionist/sort-imports": [
"error",
{
"environment": "node",
"groups": [
["side-effect", "side-effect-style"],
["builtin", "external"],
["index", "internal", "parent", "sibling", "unknown"],
"object",
[
"builtin-type",
"external-type",
"index-type",
"internal-type",
"parent-type",
"sibling-type",
"type"
],
"style"
]
}
],
"perfectionist/sort-named-exports": ["error", { "groupKind": "values-first" }],
"perfectionist/sort-named-imports": ["error", { "groupKind": "values-first" }],
"require-await": "error",
"unicorn/filename-case": ["error", { "case": "camelCase" }],
"unicorn/numeric-separators-style": ["error", { "number": { "minimumDigits": 0 } }],
"unicorn/relative-url-style": ["error", "always"],
"unicorn/switch-case-braces": ["error", "avoid"]
}
}