-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.16 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
{
"env": { "browser": true },
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"plugin:storybook/recommended"
],
"overrides": [
{
"files": ["**/*.stories.*"],
"rules": {
"import/no-anonymous-default-export": "off"
}
}
],
"plugins": [
"@typescript-eslint",
"jsx-a11y",
"prettier",
"simple-import-sort",
"sort",
"storybook"
],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"camelcase": "error",
"default-case-last": "error",
"default-param-last": "error",
"dot-notation": "error",
"eqeqeq": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"no-shadow": "error",
"react/jsx-no-bind": "warn",
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"sort/destructuring-properties": "error",
"sort/object-properties": "error",
"sort/type-properties": "error"
}
}