2
2
import globals from "globals" ;
3
3
import pluginJs from "@eslint/js" ;
4
4
import tseslint from "typescript-eslint" ;
5
- import eslintPluginUnicorn from "eslint-plugin-unicorn" ;
6
5
7
6
export default [
8
7
{ files : [ "**/*.{js,mjs,cjs,ts}" ] } ,
9
8
{ ignores : [ "**/dist/" , "test/projects/" ] } ,
10
9
{ languageOptions : { globals : globals . node } } ,
11
10
pluginJs . configs . recommended ,
12
11
...tseslint . configs . recommended ,
13
- eslintPluginUnicorn . configs [ "flat/recommended" ] ,
14
12
{
15
13
rules : {
16
14
"@typescript-eslint/no-empty-object-type" : [ "error" , { allowInterfaces : "with-single-extends" } ] ,
@@ -30,19 +28,6 @@ export default [
30
28
rules : {
31
29
// fix these warnings
32
30
"@typescript-eslint/no-explicit-any" : "warn" ,
33
- "unicorn/consistent-function-scoping" : "warn" ,
34
- "unicorn/explicit-length-check" : "warn" ,
35
- "unicorn/import-style" : "warn" ,
36
- "unicorn/no-array-reduce" : "warn" ,
37
- "unicorn/no-nested-ternary" : "warn" ,
38
- "unicorn/prefer-regexp-test" : "warn" ,
39
- "unicorn/prefer-string-slice" : "warn" ,
40
- // disable strict rules/not applicable
41
- "unicorn/empty-brace-spaces" : "off" , // conflict with prettier
42
- "unicorn/no-array-callback-reference" : "off" ,
43
- "unicorn/prefer-module" : "off" ,
44
- "unicorn/prefer-ternary" : "off" ,
45
- "unicorn/prevent-abbreviations" : "off" ,
46
31
} ,
47
32
} ,
48
33
] ;
0 commit comments