-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
79 lines (79 loc) · 2.25 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"root": true,
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"airbnb-base",
"airbnb-typescript",
"eslint:recommended",
"@typescript-eslint/parser",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:node/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootdir": "./",
"ecmaVersion": "latest",
"sourceType": "module",
"createDefaultProgram": true
},
"rules": {
"no-unused-vars": "warn",
"no-console": "off",
"func-names": "off",
"no-shadow": "off",
"consistent-return": "off",
"no-var": "warn",
"no-use-before-define": "warn",
"no-restricted-globals": "warn",
"no-process-exit": "off",
"no-underscore-dangle": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"react/jsx-filename-extension": [0, { "extensions": [".js", ".jsx"] }],
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-shadow": "warn",
"@typescript-eslint/no-throw-literal": "warn",
"node/no-process-env": 1,
"node/no-unsupported-features/es-syntax": [
"error",
{ "ignores": ["modules", "dynamicImport"] }
],
"node/no-missing-import": 0,
"node/no-unpublished-import": 0
},
"overrides": [
{
"files": ["**/__tests__/**/*", "**/*.{spec,test}.*"],
"env": {
"jest/globals": true
},
"plugins": ["jest", "testing-library"],
"extends": [
"plugin:jest/recommended",
"plugin:jest-dom/recommended",
"plugin:testing-library/react"
]
}
]
}