-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
executable file
·48 lines (47 loc) · 1.17 KB
/
.eslintrc
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
{
"extends": ["airbnb",
"airbnb-typescript",
"plugin:react/jsx-runtime",
"prettier",
"plugin:import/typescript",
"next"],
"env": {
"node": true,
"es6": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"project": ["./tsconfig.json"]
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react",
"prettier"
],
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/prop-types": "off",
// Feel free to turn all the below back on and fix the lint errors
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"react/no-array-index-key": "off",
"no-console": [
"error",
{ "allow": ["error"] }
],
"prettier/prettier": ["error"]
},
"settings": {
"react": { "version": "detect" }
}
}