-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
43 lines (43 loc) · 1.08 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
{
"extends": "next/core-web-vitals",
"parser": "@typescript-eslint/parser",
"globals": {
"React": true,
"JSX": true
},
"plugins": ["react", "@typescript-eslint"],
"ignorePatterns": ["node_modules/", "dist/"],
"rules": {
"@next/next/no-html-link-for-pages": "off",
"react/react-in-jsx-scope": "off",
"react/no-unknown-property": "warn",
"indent": [
"error",
"tab",
{
"ignoredNodes": ["ClassDeclaration"],
"SwitchCase": 1,
"offsetTernaryExpressions": true,
"flatTernaryExpressions": true,
"CallExpression": { "arguments": "off" },
"FunctionDeclaration": { "body": 1, "parameters": "first" },
"FunctionExpression": { "body": 1, "parameters": "first" }
}
],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"@typescript-eslint/consistent-type-imports": "error",
"react/jsx-sort-props": [
"error",
{
"callbacksLast": true,
"shorthandFirst": false,
"shorthandLast": false,
"ignoreCase": true,
"noSortAlphabetically": false,
"reservedFirst": ["key"]
}
]
}
}