-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
executable file
·92 lines (91 loc) · 2.41 KB
/
.eslintrc.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint", "simple-import-sort"],
"overrides": [
{
"files": ["**/*.stories.tsx"],
"rules": {
"import/no-anonymous-default-export": "off",
"@typescript-eslint/no-unused-vars": "off"
}
},
{
"files": ["**/*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
],
"rules": {
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/semi": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"no-console": "warn",
"no-multi-spaces": [
"error",
{
"ignoreEOLComments": true,
"exceptions": {
"VariableDeclarator": true
}
}
],
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxBOF": 0,
"maxEOF": 0
}
],
"no-trailing-spaces": "error",
"quotes": ["error", "single", { "avoidEscape": true }],
"react/jsx-curly-brace-presence": [
"error",
{
"props": "never",
"children": "never"
}
],
"react/jsx-sort-props": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
// Custom grouping: https://github.com/lydell/eslint-plugin-simple-import-sort#custom-grouping
// Side effect imports.
["^\\u0000"],
// Node.js builtins prefixed with `node:`.
["^node:"],
// `react` and `next` related packages.
["^react", "^next"],
// Packages
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
["^@?\\w"],
// Absolute imports for internal dependencies.
["^components", "^core", "^hooks", "^providers", "^utils"],
// Anything not matched in another group.
["^"],
// Relative imports. Anything that starts with a dot.
["^\\."]
]
}
],
"simple-import-sort/exports": "error"
}
}