diff --git a/dist/package.json b/dist/package.json index 585b60f..6cfcbe6 100644 --- a/dist/package.json +++ b/dist/package.json @@ -1,15 +1,15 @@ { "name": "@aet/eslint-rules", - "version": "0.0.1-beta.43", + "version": "0.0.2", "license": "UNLICENSED", "peerDependencies": { - "eslint": "^8.52.0", + "eslint": "^8.53.0", "typescript": "^5.2.2" }, "dependencies": { - "@types/eslint": "^8.44.6", - "@typescript-eslint/eslint-plugin": "6.9.1", - "@typescript-eslint/parser": "6.9.1", + "@types/eslint": "^8.44.7", + "@typescript-eslint/eslint-plugin": "6.10.0", + "@typescript-eslint/parser": "6.10.0", "aria-query": "^5.3.0", "axe-core": "4.8.2", "axobject-query": "^4.0.0", @@ -22,8 +22,9 @@ "eslint-define-config": "^1.24.1", "eslint-import-resolver-node": "^0.3.9", "eslint-module-utils": "^2.8.0", + "eslint-plugin-unicorn": "^49.0.0", "estraverse": "^5.3.0", - "fast-glob": "^3.3.1", + "fast-glob": "^3.3.2", "get-tsconfig": "^4.7.2", "ignore": "^5.2.4", "is-core-module": "^2.13.1", diff --git a/patch/eslint-plugin-react.patch b/patch/eslint-plugin-react.patch index 9cad475..d97d49c 100644 --- a/patch/eslint-plugin-react.patch +++ b/patch/eslint-plugin-react.patch @@ -338,34 +338,6 @@ index 55073bfe..efc07af1 100644 const astUtil = require('./ast'); const isCreateElement = require('./isCreateElement'); -diff --git a/package.json b/package.json -index 702b9f6f..f34d71d3 100644 ---- a/package.json -+++ b/package.json -@@ -25,22 +25,14 @@ - "homepage": "https://github.com/jsx-eslint/eslint-plugin-react", - "bugs": "https://github.com/jsx-eslint/eslint-plugin-react/issues", - "dependencies": { -- "array-includes": "^3.1.6", -- "array.prototype.flatmap": "^1.3.1", -- "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "es-iterator-helpers": "^1.0.13", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", -- "object.entries": "^1.1.6", -- "object.fromentries": "^2.0.6", -- "object.hasown": "^1.1.2", -- "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.4", -- "semver": "^6.3.1", -- "string.prototype.matchall": "^4.0.8" -+ "semver": "^6.3.1" - }, - "devDependencies": { - "@babel/core": "^7.22.10", diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index 39187b7f..00000000 diff --git a/src/index.ts b/src/index.ts index 6faf454..966d7e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -88,6 +88,7 @@ export function extendConfig({ ...eslintRules, ...typescriptRules, 'import/export': off, + 'import/no-duplicates': error, 'import/order': [error, { groups: ['builtin', 'external'] }], ...(hasReact && { ...reactRules, diff --git a/src/presets/eslint.ts b/src/presets/eslint.ts index 47b51f4..94414d4 100644 --- a/src/presets/eslint.ts +++ b/src/presets/eslint.ts @@ -9,7 +9,7 @@ export const eslintRules: Partial = { 'no-console': warn, 'no-constant-condition': [error, { checkLoops: false }], 'no-debugger': warn, - 'no-duplicate-imports': error, + 'no-duplicate-imports': off, 'no-empty': [error, { allowEmptyCatch: true }], 'no-inner-declarations': off, 'no-lonely-if': error,