-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
28 lines (27 loc) · 1.16 KB
/
eslint.config.mjs
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
import eslint from '@eslint/js';
import pluginSecurity from 'eslint-plugin-security';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
pluginSecurity.configs.recommended,
...tseslint.configs.recommended,
{
ignores: ['**/*.js', '**/*.cjs', '**/*.mjs'],
rules: {
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'security/detect-object-injection': 'off',
'security/detect-unsafe-regex': 'off',
'security/detect-possible-timing-attacks': 'off',
'security/detect-non-literal-regexp': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'no-useless-escape': 'off',
},
}
);