-
Notifications
You must be signed in to change notification settings - Fork 10
/
eslint.config.mjs
42 lines (41 loc) · 1.06 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
import love from "eslint-config-love";
export default [
love,
{
files: ['**/*.cjs', '**/*.mjs', '**/*.js', '**/*.ts'],
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['eslint.config.js', 'eslint.config.mjs', '*.js', '*.mjs'],
defaultProject: './tsconfig.json',
},
},
},
rules: {
"no-console": [
"error",
{
allow: ["error", "warn"],
},
],
"prefer-destructuring": "off",
"no-magic-numbers": "off",
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
allowString: true,
allowNumber: true,
allowNullableObject: true,
},
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/prefer-destructuring": "off",
"@typescript-eslint/no-magic-numbers": "off"
},
},
{
ignores: ["lib/**"],
},
];