generated from koyo-miyamura/next-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
60 lines (59 loc) · 1.7 KB
/
.eslintrc
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
{
"extends": ["airbnb", "plugin:prettier/recommended"],
"plugins": ["@typescript-eslint", "react-hooks"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"curly": [1, "all"],
"no-unused-vars": 0,
"@typescript-eslint/explicit-member-accessibility": 2,
"@typescript-eslint/no-unnecessary-type-assertion": 2,
"@typescript-eslint/no-explicit-any": 2,
"@typescript-eslint/no-unused-vars": 2,
"prefer-arrow/prefer-arrow-functions": 0,
"react/jsx-filename-extension": [
1,
{ "extensions": [".js", ".jsx", ".tsx"] }
],
"react-hooks/rules-of-hooks": 2,
"import/no-duplicates": 0,
"import/no-unresolved": 0,
"import/extensions": 0,
"no-undef": 1,
"react/no-array-index-key": 0,
"prettier/prettier": 1,
"jsx-a11y/label-has-associated-control": 1,
"jsx-a11y/label-has-for": 1,
"jsx-a11y/anchor-is-valid":0,
"jsx-a11y/alt-text":0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/media-has-caption": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 1,
"react/jsx-one-expression-per-line": 0,
"react/jsx-indent-props": 1,
"react/jsx-props-no-spreading": 0,
"react/jsx-closing-bracket-location": 1,
"react/jsx-closing-tag-location": 1,
"react/jsx-indent" : 1,
"react/require-default-props":0,
"react/prop-types": 0,
"no-shadow": 1,
"no-param-reassign" : 1,
},
"globals": {
"window": true,
"document": true,
"location": true
},
"env": {
"jest": true
}
}