-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (53 loc) · 1.29 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
51
52
53
const path = require("path");
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"standard",
"plugin:react/recommended",
"plugin:import/typescript",
"plugin:import/recommended",
"plugin:prettier/recommended",
"prettier/standard",
],
plugins: ["react", "@typescript-eslint", "import"],
"ecmaFeatures": {
"jsx": true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
env: {
"browser": true,
},
rules: {
"no-console": "off",
"no-unused-vars": "warn",
"no-irregular-whitespace": "off",
"react/display-name": "off",
"react/jsx-boolean-value": "error",
"react/no-redundant-should-component-update": "error",
"react/no-typos": "error",
"react/no-unused-state": "warn",
"react/no-unused-prop-types": "error",
"react/no-deprecated": "error",
"react/no-direct-mutation-state": "error",
"react/no-string-refs": "warn",
"prefer-default-export": "off",
"import/default": "off",
"import/namespace": "off",
"import/named": "off",
"import/no-duplicates": "error",
// https://github.com/bradzacher/eslint-plugin-typescript/issues/2
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".ts", ".tsx"],
},
},
"import/core-modules": ["react"]
},
};