-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
42 lines (42 loc) · 1.15 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
{
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"next/core-web-vitals",
"prettier"
],
"rules": {
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"react/require-default-props": "off",
"react/destructuring-assignment": "off",
"react/no-unused-prop-types": "off",
"max-len": ["warn", { "code": 120, "ignoreComments": true, "ignoreStrings": true }],
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-shadow": "error",
"react/jsx-props-no-spreading": "off",
"no-use-before-define": "off",
"no-shadow": "off",
"no-useless-return": "off",
"no-else-return": "off",
"dot-notation": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"no-restricted-syntax": [
"error",
{
"selector": "TSEnumDeclaration",
"message": "Don't declare enums"
}
]
}
}