-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.eslintrc
More file actions
61 lines (61 loc) · 1.7 KB
/
Copy path.eslintrc
File metadata and controls
61 lines (61 loc) · 1.7 KB
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
{
"parser": "@typescript-eslint/parser", // Specifies the ESLint parser
"extends": [
"airbnb",
"airbnb/hooks",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 2018, // Allows for the parsing of modern ECMAScript features
"sourceType": "module", // Allows for the use of imports
"ecmaFeatures": {
"jsx": true, // Allows for the parsing of JSX
"impliedStrict": true,
"experimentalObjectRestSpread": true
},
"settings": {
"react": {
"version": "detect" // Tells eslint-plugin-react to automatically detect the version of React to use
}
}
},
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/extensions": [".js", ".jsx"]
},
"rules": {
"no-param-reassign": "warn",
"func-names": 0,
"prefer-arrow-callback": 0,
"arrow-parens": ["error", "as-needed"],
"no-mixed-operators": 0,
"no-use-before-define": "off",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"import/extensions": "off",
"import/no-extraneous-dependencies": 0,
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".jsx"] }],
"react/prop-types": "off",
"react/static-property-placement": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-use-before-define": ["error"]
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}