-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
43 lines (43 loc) · 1.13 KB
/
.eslintrc.js
File metadata and controls
43 lines (43 loc) · 1.13 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
module.exports = {
env: {
browser: true,
es2021: true,
"jest/globals": true,
},
extends: ["plugin:react/recommended", "airbnb", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react", "@typescript-eslint", "jest"],
rules: {
quotes: ["error", "double"],
"import/extensions": "off",
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"no-plusplus": "off",
"no-loop-func": "off",
"no-nested-ternary": "off",
"lines-between-class-members": "off",
"no-param-reassign": "off",
"react/jsx-filename-extension": "off",
"react/function-component-definition": [
"error",
{
namedComponents: "arrow-function",
unnamedComponents: "arrow-function",
},
],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"react/jsx-props-no-spreading": "off",
"no-continue": "off",
"no-restricted-syntax": "off",
"no-labels": "off",
"prefer-destructuring": "off",
},
};