-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
45 lines (40 loc) · 1.01 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "@typescript-eslint"],
rules: {
"no-console": [0],
"no-param-reassign": [0],
"no-else-return": [0],
"no-confusing-arrow": [0],
"no-prototype-builtins": [0],
// "prettier/prettier": [2],
"import/named": [0],
"import/first": [0],
"import/prefer-default-export": [0],
"import/no-extraneous-dependencies": [0],
"import/no-named-as-default": [0],
"import/namespace": [0],
"react/prop-types": [0],
"react/display-name": [0],
"@typescript-eslint/no-empty-interface": [0],
"@typescript-eslint/explicit-module-boundary-types": [0],
},
};