forked from tinymce/tinymce
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
58 lines (58 loc) · 1.45 KB
/
.eslintrc.json
File metadata and controls
58 lines (58 loc) · 1.45 KB
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
{
"root": true,
"extends": [
"plugin:@tinymce/editor",
"plugin:security-node/recommended"
],
"parserOptions": {
"sourceType": "module",
"project": [
"./tsconfig.json",
"modules/*/tsconfig.json"
]
},
"plugins": [
"only-warn",
"security-node"
],
"rules": {
// TODO: TINY-11727: Remove when tinymce eslint plugin is updated to have this setting on by default
"@typescript-eslint/no-floating-promises": [
"error",
{
"ignoreVoid": false
}
],
"@typescript-eslint/camelcase": "off", // leave off
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/require-await": "off",
"no-empty": "off",
"no-underscore-dangle": "off",
"one-var": "off",
"prefer-rest-params": "off",
"prefer-spread": "off",
"max-len": [
"warn",
260
],
"security-node/non-literal-reg-expr": "off",
"security-node/detect-crlf": "off",
"security-node/detect-possible-timing-attacks": "off"
},
"overrides": [
{
"files": [
"**/demo/*.ts"
],
"rules": {
"@typescript-eslint/no-floating-promises": "off"
}
}
]
}