forked from Supercolony-net/typechain-polkadot
-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.cjs
41 lines (41 loc) · 853 Bytes
/
.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
module.exports = {
parser: "@typescript-eslint/parser",
plugins: [
"node",
"import",
"@typescript-eslint"
],
settings: {
"import/parsers": {
"@typescript-eslint/parser": [ ".ts", ],
},
"import/resolver": {
"typescript": { },
},
},
"ignorePatterns": [
"node_modules/",
"dist/",
"generated/",
"out/",
],
rules: {
"prettier/prettier": "off",
"indent": [ "error", "tab", { "SwitchCase": 1 } ],
"semi": "warn",
"comma-dangle": ["warn", {
"arrays": "ignore",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore",
}],
"prefer-const": "warn",
"import/no-cycle": "error",
"import/no-self-import": "error",
"@typescript-eslint/consistent-type-assertions": [
"off",
],
"@typescript-eslint/no-non-null-assertion": "off",
},
};