Skip to content

Commit

Permalink
chore: remove eslint-plugin-unicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpza committed Sep 2, 2024
1 parent 164aeac commit 8c6ccf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 509 deletions.
15 changes: 0 additions & 15 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintPluginUnicorn from "eslint-plugin-unicorn";

export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ ignores: ["**/dist/", "test/projects/"] },
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
eslintPluginUnicorn.configs["flat/recommended"],
{
rules: {
"@typescript-eslint/no-empty-object-type": ["error", { allowInterfaces: "with-single-extends" }],
Expand All @@ -30,19 +28,6 @@ export default [
rules: {
// fix these warnings
"@typescript-eslint/no-explicit-any": "warn",
"unicorn/consistent-function-scoping": "warn",
"unicorn/explicit-length-check": "warn",
"unicorn/import-style": "warn",
"unicorn/no-array-reduce": "warn",
"unicorn/no-nested-ternary": "warn",
"unicorn/prefer-regexp-test": "warn",
"unicorn/prefer-string-slice": "warn",
// disable strict rules/not applicable
"unicorn/empty-brace-spaces": "off", // conflict with prettier
"unicorn/no-array-callback-reference": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-ternary": "off",
"unicorn/prevent-abbreviations": "off",
},
},
];
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"@types/typescript-4.7": "npm:[email protected]",
"changelogen": "^0.5.5",
"eslint": "9.x",
"eslint-plugin-unicorn": "^55.0.0",
"globals": "^15.9.0",
"prettier": "^3.3.3",
"prettier-plugin-jsdoc": "^1.3.0",
Expand Down
Loading

0 comments on commit 8c6ccf4

Please sign in to comment.