This repository has been archived by the owner on May 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
48 lines (45 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
{
"ignorePatterns": ["next-env.d.ts", "*.config.js"],
"parserOptions": {
"project": ["./tsconfig.json"]
},
"globals": {
"JSX": "readonly",
"NodeJS": "readonly"
},
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/strict", "plugin:jsx-a11y/strict", "airbnb"],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"rules": {
"indent": ["error", "tab", { "SwitchCase": 1 }],
"quotes": ["error", "double"],
"new-cap": ["error", { "capIsNew": false, "newIsCapExceptions": ["webkitSpeechRecognition"] }],
"no-tabs": ["error", { "allowIndentationTabs": true }],
"eol-last": ["error", "never"],
"no-shadow": "off",
"no-plusplus": "off",
"brace-style": ["error", "allman"],
"comma-dangle": ["error", "never"],
"no-unused-vars": "off",
"linebreak-style": "off",
"space-in-parens": ["error", "always"],
"object-curly-newline": ["error", { "ImportDeclaration": { "minProperties": 0 }}],
"array-bracket-spacing": ["error", "always"],
"template-curly-spacing": ["error", "always"],
"computed-property-spacing": ["error", "always"],
"import/extensions": ["error", "never"],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-unused-vars": "error",
"react/jsx-indent": ["error", "tab"],
"react/jsx-indent-props": ["error", "tab"],
"react/react-in-jsx-scope": "off",
"react/no-array-index-key": "off",
"react/no-unknown-property": ["error", { "ignore": ["jsx", "global"] }],
"react/jsx-max-props-per-line": ["error", { "maximum": 6 }],
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
"react/jsx-props-no-spreading": ["error", { "exceptions": ["Component"] }],
"react/jsx-one-expression-per-line": "off"
}
}