Skip to content

Commit 8c6ccf4

Browse files
committed
chore: remove eslint-plugin-unicorn
1 parent 164aeac commit 8c6ccf4

File tree

3 files changed

+4
-509
lines changed

3 files changed

+4
-509
lines changed

eslint.config.mjs

-15
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
import globals from "globals";
33
import pluginJs from "@eslint/js";
44
import tseslint from "typescript-eslint";
5-
import eslintPluginUnicorn from "eslint-plugin-unicorn";
65

76
export 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
];

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
"@types/typescript-4.7": "npm:typescript@4.7.x",
7373
"changelogen": "^0.5.5",
7474
"eslint": "9.x",
75-
"eslint-plugin-unicorn": "^55.0.0",
7675
"globals": "^15.9.0",
7776
"prettier": "^3.3.3",
7877
"prettier-plugin-jsdoc": "^1.3.0",

0 commit comments

Comments
 (0)