-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintrc.json
41 lines (41 loc) · 999 Bytes
/
.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
{
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"prefer-arrow-functions"
],
"rules": {
"prefer-const": ["error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}],
"react/no-unknown-property": ["error", {
"ignore": ["css"]
}],
"react/function-component-definition": [2, {
"namedComponents": "arrow-function"
}],
"react/react-in-jsx-scope": "off",
// allow jsx syntax in js files (for next.js project)
"react/jsx-filename-extension": [1, {
"extensions": [".js", ".jsx"]
}],
"react/prop-types": "off",
"camelcase": "warn",
"quotes": [1, "single", {
"avoidEscape": true
}],
"prefer-arrow-functions/prefer-arrow-functions": [
"warn",
{
"classPropertiesAllowed": false,
"disallowPrototype": false,
"returnStyle": "unchanged",
"singleReturnOnly": false
}
]
}
}