22import globals from "globals" ;
33import pluginJs from "@eslint/js" ;
44import tseslint from "typescript-eslint" ;
5- import eslintPluginUnicorn from "eslint-plugin-unicorn" ;
65
76export default [
87 { files : [ "**/*.{js,mjs,cjs,ts}" ] } ,
98 { ignores : [ "**/dist/" , "test/projects/" ] } ,
109 { languageOptions : { globals : globals . node } } ,
1110 pluginJs . configs . recommended ,
1211 ...tseslint . configs . recommended ,
13- eslintPluginUnicorn . configs [ "flat/recommended" ] ,
1412 {
1513 rules : {
1614 "@typescript-eslint/no-empty-object-type" : [ "error" , { allowInterfaces : "with-single-extends" } ] ,
@@ -30,19 +28,6 @@ export default [
3028 rules : {
3129 // fix these warnings
3230 "@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" ,
4631 } ,
4732 } ,
4833] ;
0 commit comments