forked from descope/node-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
90 lines (90 loc) · 2.19 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
80
81
82
83
84
85
86
87
88
89
90
{
"root": true,
"extends": [
"airbnb-base",
"prettier",
"plugin:jest/recommended",
"plugin:import/typescript",
"airbnb-typescript/base"
],
"plugins": [
"@typescript-eslint",
"prettier",
"import",
"prefer-arrow",
"jest-dom",
"jest",
"jest-formatting",
"no-only-tests"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"jest": true,
"node": true
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".js"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"rules": {
"semi": ["error", "always"],
"no-tabs": ["error", { "allowIndentationTabs": true }],
"@typescript-eslint/indent": ["off"],
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"@typescript-eslint/quotes": [
"error",
"single",
{ "avoidEscape": true, "allowTemplateLiterals": true }
],
"space-before-blocks": 2,
"space-before-function-paren": 2,
"no-multi-spaces": 2,
"@typescript-eslint/semi": "error",
"no-unexpected-multiline": "error",
"@typescript-eslint/comma-dangle": ["off"],
"comma-dangle": ["off"],
"no-console": 2,
"class-methods-use-this": 0,
"no-only-tests/no-only-tests": 2,
"no-warning-comments": 2,
"import/no-unresolved": 2,
"import/named": 2,
"import/no-relative-packages": 2,
"import/no-cycle": 2,
"import/newline-after-import": 2,
"import/no-namespace": 2,
"import/no-duplicates": 2,
"import/first": 2,
"import/exports-last": 2,
"import/no-absolute-path": 2,
"import/no-dynamic-require": 2,
"import/no-self-import": 2,
"import/no-useless-path-segments": 2,
"import/no-extraneous-dependencies": [
2,
{
"devDependencies": ["!./src/**/*"]
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"ignorePatterns": [".eslintrc.cjs", "build/*", "dist/*", "coverage/*", "**/testutils/*"]
}