-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.eslintrc.js
More file actions
31 lines (31 loc) · 957 Bytes
/
.eslintrc.js
File metadata and controls
31 lines (31 loc) · 957 Bytes
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
module.exports = {
root: true,
env: {
browser: true,
node: true,
jest: true,
es6: true,
},
extends: ["alloy", "alloy/typescript", "prettier"],
plugins: ["sort-imports-es6-autofix", "import", "prettier"],
rules: {
"no-unreachable": 1,
"no-multiple-empty-lines": ["error", { max: 1, maxEOF: 0, maxBOF: 0 }],
"no-trailing-spaces": "error",
"eol-last": "error",
// Relax some rules for utility library
"no-param-reassign": "off",
"no-void": "off",
"max-params": "off",
"symbol-description": "off",
"no-new-object": "off",
"prefer-regex-literals": "off",
radix: "off",
"@typescript-eslint/no-loss-of-precision": "off",
"prefer-promise-reject-errors": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"prettier/prettier": "error",
},
};