-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
50 lines (46 loc) · 1.02 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
module.exports = {
root: true,
env: {
jest: true,
},
extends: [
"xo",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier",
],
ignorePatterns: [".eslintrc.js", "**/dist/*.js", "**/es/*.js"],
plugins: ["import", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.json"],
},
globals: {
window: true,
document: true,
},
rules: {
"prettier/prettier": "error",
"capitalized-comments": "off",
camelcase: "off",
"default-param-last": "off",
complexity: ["error", { max: 41 }],
"no-unused-vars": "off",
"object-shorthand": "off",
"no-bitwise": "off",
"prefer-exponentiation-operator": "off",
"no-control-regex": "off",
"arrow-body-style": "off",
"no-constructor-return": "off",
"max-params": "off",
},
overrides: [
{
files: ["*.spec.*", "**/types/**/spec.ts"],
rules: {
"no-promise-executor-return": "off",
},
},
],
};