-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
75 lines (75 loc) · 2.28 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
{
"extends": [
"next",
"next/core-web-vitals",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["react", "@typescript-eslint"],
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"@next/next/no-document-import-in-page": "warn", // TODO doesn't work => update next to 11.1.3
"@typescript-eslint/quotes": "warn",
"arrow-spacing": "warn",
"consistent-return": "warn",
"react/jsx-indent": ["warn", 2],
"react/jsx-indent-props": ["warn", 2],
"@typescript-eslint/indent": ["warn"],
"react/jsx-closing-tag-location": "warn",
"react/jsx-closing-bracket-location": "warn",
"@typescript-eslint/semi": ["warn"],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"object-curly-newline": ["warn", { "consistent": true, "minProperties": 8 }],
"linebreak-style": "off",
"max-len": ["warn", { "code": 125 }],
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".ts"] }],
"no-trailing-spaces": "warn",
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": ["warn",
{
"enums": "always",
"generics": "never",
"tuples": "always",
"arrays": "always",
"objects": "always",
"imports": "always",
"exports": "always",
"functions": "only-multiline"
}
],
"react/require-default-props": "off",
"arrow-parens": ["warn", "always"],
"import/prefer-default-export": "off",
"no-plusplus": "off",
"array-bracket-spacing": ["warn", "always"],
"react/no-multi-comp": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-curly-newline": "off",
"react/state-in-constructor": "off",
"no-lonely-if": "off",
"no-multiple-empty-lines": ["warn", { "max": 2, "maxEOF": 1 }],
"react/jsx-one-expression-per-line": "off",
"arrow-body-style": "off",
"no-extra-semi": "off",
"@typescript-eslint/no-extra-semi": "off",
"spaced-comment": "off",
"padded-blocks": "off",
"no-nested-ternary": "off"
}
}