This repository has been archived by the owner on Aug 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
56 lines (48 loc) · 1.84 KB
/
.eslintrc.cjs
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
var OFF = 0, WARN = 1, ERROR = 2;
module.exports = exports = {
"env": {
"browser": true,
"amd": true,
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 8,
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint/eslint-plugin",
"import"
],
"rules": {
"max-len": [ ERROR, 210 ],
"multiline-ternary": [ ERROR, "always-multiline" ],
"no-dupe-class-members": OFF,
"padding-line-between-statements": [ ERROR, { blankLine: "always", prev: "block-like", next: "*" }],
"sort-imports": [ ERROR, {
"ignoreCase": false,
"ignoreDeclarationSort": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": [ 'none', 'all', 'single', 'multiple' ]
}],
"@typescript-eslint/class-literal-property-style": [ ERROR, "getters" ],
"@typescript-eslint/explicit-function-return-type": OFF,
"@typescript-eslint/method-signature-style": ERROR,
"@typescript-eslint/no-dupe-class-members": ERROR,
"@typescript-eslint/no-explicit-any": OFF,
"@typescript-eslint/no-extra-parens": ERROR,
"@typescript-eslint/no-non-null-assertion": OFF,
"@typescript-eslint/no-unnecessary-type-arguments": ERROR,
"@typescript-eslint/no-unnecessary-type-assertion": ERROR,
"@typescript-eslint/no-unused-vars": [ ERROR, { args: "none" }],
"@typescript-eslint/prefer-reduce-type-parameter": ERROR,
"@typescript-eslint/quotes": [ ERROR, 'single', { avoidEscape: false } ],
"import/no-commonjs": [ ERROR, { allowRequire: true } ]
}
};