-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (50 loc) · 1.28 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
46
47
48
49
50
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
sourceType: "module",
},
extends: [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
],
env: {
node: true,
es6: true,
},
rules: {
"no-console": "off",
"react/prop-types": 0,
"react/jsx-props-no-spreading": "off",
"brace-style": "error",
"react/jsx-indent": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-unused-vars-experimental": "off",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/naming-convention": [
"error",
{
selector: "function",
format: ["PascalCase", "camelCase"],
},
],
"react/react-in-jsx-scope": "off",
"arrow-body-style": 0,
"react/display-name": "off",
"no-var": "error",
"react/no-unknown-property": "off",
},
settings: {
react: {
version: "detect", // used for React plugin
},
},
plugins: ["@typescript-eslint", "react"],
};