-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy patheslint.config.mjs
51 lines (51 loc) · 1.42 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import tseslint from '@typescript-eslint/eslint-plugin';
import eslintParser from "@typescript-eslint/parser"
import js from "@eslint/js";
import love from 'eslint-config-love'
import globals from 'globals'
export default [
js.configs.recommended,
{
languageOptions: {
parser: eslintParser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
tsconfigRootDir: import.meta.dirname,
},
projectService: {
defaultProject: true,
},
globals: { ...globals.browser, ...globals.node }
}
},
{
...love,
files: ['**/*.js', '**/*.ts'],
},
{
plugins: {
"@typescript-eslint": tseslint
},
rules: {
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'no-mixed-operators': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'complexity': 'off',
'guard-for-in': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
'@typescript-eslint/init-declarations': 'off',
"semi": "off",
'no-console': 'off',
'eqeqeq': 'error',
'eslint-comments/require-description': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
}
},
{
ignores: ["**/dist/","**/temp/","**/cache/",]
}
]