-
-
Notifications
You must be signed in to change notification settings - Fork 95
/
.eslintrc.json
40 lines (40 loc) · 1 KB
/
.eslintrc.json
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
{
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": ["standard", "standard-jsx", "plugin:prettier/recommended"],
"rules": {
"linebreak-style": ["error", "unix"]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint/eslint-plugin", "react"],
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-handler-names": "off",
"import/export": "off",
"no-dupe-class-members": "off",
"no-empty-pattern": "off",
"no-redeclare": "off",
"no-unused-vars": "off",
"no-undef": "off",
"no-unused-expressions": "off",
"no-use-before-define": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-unused-vars": "error"
}
}
]
}