-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
53 lines (53 loc) · 1.75 KB
/
.eslintrc.json
File metadata and controls
53 lines (53 loc) · 1.75 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
48
49
50
51
52
53
{
"root": true,
"env": {
"node": true,
"es2021": true
},
"extends": [
"eslint:all",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"camelcase": ["warn", { "properties": "never" }],
"import/no-unresolved": "off",
"import/extensions": "off",
"class-methods-use-this": "off",
"max-len": [1, 140, 4],
"indent": ["warn", 2],
"object-curly-spacing": ["warn", "always"],
"quotes": ["warn", "single"],
"sort-imports": "off",
"comma-dangle": ["warn", "always-multiline"],
"padded-blocks": ["warn", "never"],
"space-before-function-paren": ["warn", "never"],
"quote-props": ["error", "consistent"],
"one-var": ["error", "never"],
"function-call-argument-newline": ["error", "consistent"],
"capitalized-comments": "off",
"sort-keys": "off",
"function-paren-newline": ["warn", "consistent"],
"semi": "warn",
"max-params": ["warn", 4],
"no-magic-numbers": "off",
"@typescript-eslint/require-await": "warn",
"@typescript-eslint/no-empty-interface": "off",
"no-trailing-spaces": "warn",
"@typescript-eslint/no-empty-function": "warn",
"max-lines": "off",
"default-param-last": "off",
"dot-location": ["warn", "property"],
"no-useless-constructor": "off"
}
}