-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
46 lines (46 loc) · 1.6 KB
/
.eslintrc.json
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
{
"extends": "plugin:@tinymce/standard",
"parserOptions": {
"sourceType": "module",
"project": [
"./tsconfig.json"
]
},
"rules": {
"@typescript-eslint/member-ordering": "off",
"comma-dangle": ["error", "never"],
"import/order": ["error", {
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"]
}],
"@tinymce/no-unimported-promise": "off",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-implied-eval": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-call": "error",
"@typescript-eslint/no-unsafe-return": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/strict-boolean-expressions": "error",
"@typescript-eslint/naming-convention": [
"error",
{ "selector": "enumMember", "format": ["PascalCase"] }
],
"no-console": "off",
"no-underscore-dangle": "off",
"max-len": ["warn", 160],
"prefer-arrow-callback": "error",
"camelcase": "error",
"no-fallthrough": "error",
"no-invalid-this": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"prefer-promise-reject-errors": "error",
"@tinymce/prefer-fun": "off"
},
"settings": {
"import/internal-regex": "^(ephox|tinymce)/.*"
}
}