forked from tinymce/tinymce
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.ts
More file actions
52 lines (50 loc) · 1.47 KB
/
eslint.config.ts
File metadata and controls
52 lines (50 loc) · 1.47 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
import tinyPlugin from '@tinymce/eslint-plugin';
import onlyWarn from 'eslint-plugin-only-warn';
import { defineConfig } from "eslint/config";
export default defineConfig(
[
tinyPlugin.configs.editor,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: "."
},
},
plugins: {
onlyWarn,
},
rules: {
"@typescript-eslint/no-import-type-side-effects": "error",
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/consistent-type-imports": ["error", { fixStyle: 'inline-type-imports' }],
"@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
],
},
},
{
files: [
"**/demo/*.ts"
],
rules: {
"@typescript-eslint/no-floating-promises": "off",
}
}
]
)