-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
39 lines (39 loc) · 1.17 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
{
"env": {
"browser": true,
"es2021": true
},
"extends":[
"next/core-web-vitals",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"root": true,
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"no-unused-vars":"off",
"@typescript-eslint/no-unused-vars":"error",
"react/jsx-sort-props": [2, {
"shorthandFirst": true,
"callbacksLast": true
}],
"quotes": [2, "single"],
"jsx-quotes": 2,
"react/react-in-jsx-scope": "off",
"react/prop-types": 0,
"comma-dangle": [2, "always-multiline"],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": 2,
"indent": [2, 2, {"SwitchCase": 1, "ObjectExpression": 1, "ArrayExpression": "first", "FunctionExpression": {"parameters": "first" }, "VariableDeclarator": { "var": 1}}],
"object-curly-spacing": [2, "always"],
"space-before-blocks": [2, { "functions": "always", "keywords": "always", "classes": "always" }]
}
}