-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheslint.config.js
61 lines (59 loc) · 2.24 KB
/
eslint.config.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
const baseConfig = require('@enonic/eslint-config');
const { plugin: tsPlugin } = require('typescript-eslint');
module.exports = [
...baseConfig, // This includes the extended configuration from @enonic/eslint-config
{
files: ["**/*.ts", "**/*.tsx"], // Apply rules to TypeScript files
languageOptions: {
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
}
},
plugins: {
'@typescript-eslint': tsPlugin,
},
rules: {
'no-control-regex': 'off',
'constructor-super': 'error',
'prefer-const': 'off',
'no-plusplus': 'off',
'no-extra-boolean-cast': 'off',
'no-prototype-builtins': 'off',
'no-useless-escape': 'off',
'no-empty-pattern': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/no-implied-eval': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'comma-dangle': 'off',
'@typescript-eslint/member-ordering': 'off',
'spaced-comment': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-base-to-string': 'off',
},
},
{
ignores: [
"**/node_modules/",
"**/build/",
"**/dist/",
"**/.xp/",
"**/*.js",
"**/*.d.ts",
"**/spec/**/*",
"**/bin/"
]
}
];