forked from tinymce/tinymce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
51 lines (51 loc) · 1.83 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
47
48
49
50
51
{
"extends": "plugin:@tinymce/standard",
"parserOptions": {
"sourceType": "module",
"project": [
"./tsconfig.json",
"modules/*/tsconfig.json"
]
},
"rules": {
"@typescript-eslint/camelcase": "off", // leave off
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-module-boundary-types": [ "error", { "allowArgumentsExplicitlyTypedAsAny": true } ],
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off", // to be investigated later, produces different results on a uncompiled environment
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "off",
"arrow-body-style": "off", // Disabled as it causes readability issues in more complex cases
"arrow-spacing": "error",
"comma-dangle": ["error", {
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"dot-location": ["error", "property"],
"import/order": ["error", {
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"]
}],
"no-empty": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-nested-ternary": "error",
"one-var": "off",
"prefer-arrow-callback": "error",
"prefer-rest-params": "off",
"prefer-spread": "off",
"max-len": ["warn", 260],
"space-before-blocks": "error",
"valid-typeof": "error"
},
"settings": {
"import/internal-regex": "^(ephox|tinymce)/.*"
}
}