-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.eslintrc.json
More file actions
47 lines (47 loc) · 1.32 KB
/
.eslintrc.json
File metadata and controls
47 lines (47 loc) · 1.32 KB
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"],
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-base",
"airbnb-typescript/base",
"prettier"
],
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/no-unused-expressions": [
"error",
{ "allowShortCircuit": true, "allowTernary": true, "allowTaggedTemplates": true, "enforceForJSX": false }
],
"import/prefer-default-export": "off",
"class-methods-use-this": "off",
"no-console": "warn",
"no-param-reassign": ["error", { "props": false }],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["**/*.spec.ts", "**/*.test.ts"],
"peerDependencies": true
}
]
},
"ignorePatterns": ["dist", "node_modules", "**/*.js", "**/*.spec.ts"],
"overrides": [
{
"files": ["**/*.spec.ts", "**/*.test.ts"],
"rules": {
"@typescript-eslint/no-unused-expressions": "off"
}
}
]
}