forked from ranyitz/qnm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
40 lines (40 loc) · 1.02 KB
/
.eslintrc
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
{
"extends": "eslint-config-yoshi-base",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"rules": {
"import/no-extraneous-dependencies": "error",
"array-callback-return": "off",
"react-hooks/exhaustive-deps": "off",
"no-shadow": "off"
},
"settings": {
"import/resolver": {
"eslint-import-resolver-typescript": true
}
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint/eslint-plugin"],
"rules": {
"@typescript-eslint/array-type": ["error", { "default": "generic" }],
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{"argsIgnorePattern": "^_"}
],
"import/order": "error",
"no-dupe-class-members": "off",
"no-unused-vars": "off",
"no-useless-constructor": "off",
"default-case": "off"
}
}]
}