-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
72 lines (71 loc) · 1.8 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
61
62
63
64
65
66
67
68
69
70
71
72
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["react", "react-hooks", "prettier", "@typescript-eslint"],
"parserOptions": {
"requireConfigFile": false,
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"ignorePatterns": ["node_modules/"],
"extends": [
"airbnb",
"airbnb/hooks",
"next/core-web-vitals",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/react-in-jsx-scope": "off",
"no-useless-catch": "off",
"import/no-unresolved": "off",
"@typescript-eslint/semi": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": false, "optionalDependencies": false, "peerDependencies": false}],
"react/prop-types": "off",
"react/jsx-props-no-spreading": 0,
"react/prefer-stateless-function": "error",
"react/jsx-one-expression-per-line": "error",
"no-nested-ternary": "error",
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"import/extensions": ["error", "never"],
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/require-default-props": "off",
"prettier/prettier": [
"error",
{
"arrowSpacing": ["error", { "before": true, "after": true }],
"singleQuote": true,
"semi": true,
"useTabs": false,
"tabWidth": 2,
"trailingComma": "none",
"printWidth": 100,
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "auto"
}
]
}
}