-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
72 lines (72 loc) · 2.05 KB
/
.eslintrc.js
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
module.exports = {
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"overrides": [
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "off",
"brace-style": "off",
"@typescript-eslint/brace-style": "error",
"comma-spacing": "off",
"@typescript-eslint/comma-spacing": "error",
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": "error",
"no-extra-parens": "off",
"@typescript-eslint/no-extra-parens": "error",
"semi": "off",
"@typescript-eslint/semi": "error",
"space-before-function-paren": "off",
"@typescript-eslint/space-before-function-paren": "error",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"indent": ["error", "tab"],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"quotes": ["error", "double"],
"quote-props": ["error", "always"],
"space-in-parens": "error",
"no-multi-spaces": "error",
"space-before-blocks": "error",
"arrow-spacing": "error",
"keyword-spacing": "error",
"space-before-function-paren": "error",
"object-curly-spacing": "error",
"brace-style": "error",
"comma-spacing": "error",
"no-extra-parens": "error",
"arrow-parens": "error",
"comma-dangle": "error",
"multiline-ternary": ["error", "never"],
"no-trailing-spaces": "error",
"array-element-newline": ["error", "consistent"],
"array-bracket-spacing": "error",
"array-bracket-newline": ["error", "consistent"],
"eol-last": "error"
}
};