forked from antfu/eslint-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.ts
43 lines (42 loc) · 1.26 KB
/
eslint.config.ts
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
import { nirtamir2 } from "./src";
export default nirtamir2(
{
vue: true,
react: true,
solid: true,
svelte: true,
astro: true,
typescript: true,
formatters: false,
stylistic: false,
},
[
{
rules: {
"@typescript-eslint/init-declarations": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-expressions": "off",
"github/array-foreach": "off",
"github/no-then": "off",
"sonarjs/no-duplicate-string": "off",
"sonarjs/no-gratuitous-expressions": "off",
"sonarjs/no-nested-template-literals": "off",
"sonarjs/cognitive-complexity": "off",
"sonarjs/no-nested-conditional": "off",
"sonarjs/no-commented-code": "off",
"unicorn/consistent-destructuring": "off",
"unicorn/import-style": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-await-expression-member": "off",
"unicorn/no-object-as-default-parameter": "off",
"unicorn/no-process-exit": "off",
"unicorn/prefer-module": "off",
},
},
{
ignores: ["fixtures/input", "_fixtures"],
},
],
);