generated from jeswr/template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
39 lines (39 loc) · 965 Bytes
/
.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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"airbnb-base",
"plugin:react-hooks/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"@typescript-eslint",
"extra-rules",
"unused-imports"
],
"rules": {
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"no-restricted-syntax": "off",
"import/extensions": "off",
"no-undef": "off",
"no-unused-vars": "off",
"no-shadow": "off",
"no-use-before-define": "off",
"max-len": ["error", {"code": 100}],
"@typescript-eslint/consistent-type-imports": "error",
"class-methods-use-this": "off",
"extra-rules/no-commented-out-code": "warn",
"@typescript-eslint/no-unused-vars": ["error"]
}
}