-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
41 lines (41 loc) · 1.26 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser", // Specifies the ESLint parser
"parserOptions": {
"ecmaVersion": 2020, // Allows for the parsing of modern ECMAScript features
"sourceType": "module" // Allows for the use of imports
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended" // Uses the recommended rules from the @typescript-eslint/eslint-plugin
],
"env": {
"node": true
},
"rules": {
"no-console": [1, { "allow": ["warn", "error"] }],
"valid-jsdoc": [0],
"indent": ["error", 2],
"semi": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-var-requires": 0,
"quotes": ["error", "single"],
"@typescript-eslint/ban-ts-comment": 0,
"comma-dangle": [
1,
{
"arrays": "ignore",
"objects": "always",
"imports": "only-multiline",
"exports": "ignore",
"functions": "ignore"
}
],
"comma-spacing": 1,
"object-curly-spacing": ["error", "always"],
"space-infix-ops": ["error", {"int32Hint": false}],
"@typescript-eslint/no-empty-interface": 0,
"no-empty": 0
}
}