-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
60 lines (60 loc) · 1.82 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
{
"env": {
"es6": true,
"node": true,
"jest": true
},
"extends": ["eslint:recommended", "next", "next/core-web-vitals", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 13,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier"],
"rules": {
"indent": ["off", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"react/require-default-props": "off",
"react/default-props-match-prop-types": ["error"],
"react/sort-prop-types": ["error"],
"dot-notation": "off",
"curly": 0,
"@typescript-eslint/no-unsafe-assignment": "off",
"prettier/prettier": "error",
// Custom
"no-unused-vars": "off",
"no-empty-function": "off",
"no-empty-pattern": "off",
"react/display-name": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-floating-promises": "off",
"jsx-a11y/role-supports-aria-props": "off"
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"babel-module": {}
}
}
}