-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
97 lines (97 loc) · 2.87 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
91
92
93
94
95
96
97
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "./",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import"],
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"ignorePatterns": [".eslintrc.json"],
"root": true,
"env": { "node": true, "jest": true },
"settings": {
"import/resolver": {
"typescript": {
"extensions": [".ts", ".tsx"],
"moduleDirectory": ["src", "node_modules"]
}
}
},
"rules": {
"max-len": ["error", { "code": 220 }],
"no-console": "off",
"no-shadow": "off",
"no-bitwise": "off",
"no-unused-vars": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-plusplus": "off",
"no-constant-condition": "off",
"no-promise-executor-return": "off",
"function-paren-newline": "off",
"array-bracket-spacing": ["error", "always"],
"object-curly-newline": ["error", { "multiline": true }],
"no-useless-constructor": "off",
"@typescript-eslint/indent": ["error", 4, { "SwitchCase": 1 }],
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/space-before-function-paren": ["error", "always"],
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/comma-dangle": ["error", "never"],
"@typescript-eslint/object-curly-spacing": ["error", "always"],
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-useless-constructor": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/no-explicit-any": "off",
"import/prefer-default-export": "off",
"import/no-default-export": "error",
"space-before-function-paren": ["error", "always"],
"lines-between-class-members": [
"error",
"always",
{ "exceptAfterSingleLine": true }
],
"no-underscore-dangle": "off",
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "comma",
"requireLast": false
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}
],
"@typescript-eslint/explicit-module-boundary-types": [
"error",
{ "allowedNames": ["transform"] }
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}
}