forked from cosmograph-org/cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
68 lines (68 loc) · 2.2 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
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
{
"extends": [
"plugin:@typescript-eslint/recommended",
"standard"
],
"env": {
"es6": true,
"node": true,
"browser": true
},
"plugins": [
"import",
"unicorn"
],
"parser": "@typescript-eslint/parser",
"rules": {
"object-curly-spacing": ["error", "always"],
"prefer-template": "error",
"no-useless-constructor": "off",
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"import/no-default-export": "error",
"import/prefer-default-export": 0,
"import/first": ["error", "absolute-first"],
"import/order": ["error", {"groups": ["builtin", "external", "parent", "sibling", "index", "object"]}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"indent": ["error", 2],
"consistent-return": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-undef": 0,
"no-unused-expressions": "off",
"no-multiple-empty-lines": 2,
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error", {"variables": false}],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-unused-expressions": ["error"],
"@typescript-eslint/no-explicit-any": ["error"],
"@typescript-eslint/indent": "off",
"@typescript-eslint/type-annotation-spacing": ["error"],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}],
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"max-len": ["warn", { "code": 160, "comments": 160 }],
"unicorn/filename-case": "error",
"unicorn/no-for-loop": "error",
"unicorn/prefer-array-some": "error",
"unicorn/no-instanceof-array": "error",
"unicorn/prefer-includes": "error",
"unicorn/prefer-keyboard-event-key": "error"
}
}