forked from remotestorage/remotestorage.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
103 lines (103 loc) · 2.22 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2020
},
extends: [
"plugin:@typescript-eslint/recommended"
],
env: {
browser: true,
node: true
}, globals: {
"ArrayBuffer": true,
"ArrayBufferView": true,
"Promise": true,
"NodeJS": true,
"Int8Array": true,
"Uint8Array": true,
"Int16Array": true,
"Uint16Array": true,
"Int32Array": true,
"Uint32Array": true,
"Float32Array": true,
"Float64Array": true,
// Mocha
"describe": true,
"before": true,
"beforeEach": true,
"after": true,
"afterEach": true,
"it": true
},
rules: {
"complexity": ["warn"],
"max-statements": ["warn"],
"no-debugger": 2,
"no-console": [
2,
{
allow: ["warn", "error"]
}
],
"no-bitwise": 2,
"curly": 2,
"eqeqeq": 2,
"no-eval": 2,
"no-loop-func": 0,
"no-caller": 2,
"no-script-url": 2,
"@typescript-eslint/no-shadow": ["warn"],
"no-shadow": "off",
"no-new-func": 0,
"no-new-wrappers": 0,
"no-undef": "off",
"new-cap": [
"error", {
"capIsNewExceptions": [ "Authorize", "Discover" ]
}
],
"no-empty": 2,
"no-new": 2,
"no-useless-escape": 0,
"block-spacing": 2,
"indent": [
"error",
2,
{
"SwitchCase": 1,
"VariableDeclarator": 2,
"MemberExpression": "off",
"CallExpression": {
arguments: "off"
}
}
],
"no-multi-str": 2,
"semi": 2,
"arrow-spacing": 2,
"no-prototype-builtins": 1,
"@typescript-eslint/ban-types": 1,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/no-var-requires": 1,
"@typescript-eslint/no-unsafe-declaration-merging": 1,
"@typescript-eslint/no-unused-vars": 1,
"@typescript-eslint/no-use-before-define": 1,
"@typescript-eslint/no-empty-interface": 1
},
"ignorePatterns": [
"*.js",
"node_modules/"
],
"overrides": [
{
"files": ["*.test.ts"],
"rules": {
"max-statements": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-unused-vars": 1
}
}
],
};