forked from jimp-dev/jimp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
69 lines (64 loc) · 1.56 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
extends: [
"xo",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier",
],
plugins: ["import"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.json"],
},
globals: {
window: true,
document: true,
},
rules: {
"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",
},
overrides: [
{
files: ["*.test.*", "**/types/**/test.ts"],
globals: {
xit: true,
it: true,
describe: true,
before: true,
after: true,
test: true,
},
rules: {
"import/no-extraneous-dependencies": "off",
"import/namespace": "off",
"no-import-assign": "off",
"no-unused-expressions": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"require-atomic-updates": "off",
"max-nested-callbacks": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"jsdoc/require-jsdoc": "off",
},
},
{
files: ["**/*.d.ts"],
rules: {
"import/no-unresolved": "off",
"no-redeclare": "off",
},
},
],
};