diff --git a/package.json b/package.json index c60636f..bc20999 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "@devmy/eslint-plugin", "version": "1.0.0", + "private": false, "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,6 +20,9 @@ "lint:fix": "eslint 'src/**/*.{js,jsx,ts,tsx,html}' --fix", "release": "semantic-release" }, + "publishConfig": { + "access": "public" + }, "keywords": [ "ESLint", "ESLint plugin", @@ -63,7 +67,6 @@ "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-sonarjs": "^3.0.0", "eslint-plugin-unicorn": "^56.0.1", - "eslint-plugin-unused-imports": "^4.1.4", "jiti": "^2.4.1", "typescript-eslint": "8.17.0" }, @@ -82,5 +85,6 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0" - } + }, + "packageManager": "npm@10.8.1" } diff --git a/src/configs/recommended.ts b/src/configs/recommended.ts index 5819f22..0388901 100644 --- a/src/configs/recommended.ts +++ b/src/configs/recommended.ts @@ -4,7 +4,6 @@ import { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; import simpleImportSort from 'eslint-plugin-simple-import-sort'; import sonar from "eslint-plugin-sonarjs"; import eslintPluginUnicorn from 'eslint-plugin-unicorn'; -import unusedImports from 'eslint-plugin-unused-imports'; import tsEslint from 'typescript-eslint'; import { ignores } from '../utils'; @@ -16,7 +15,6 @@ export default tsEslint.config({ sonar, unicorn: eslintPluginUnicorn, 'simple-import-sort': simpleImportSort, - 'unused-imports': unusedImports, '@stylistic': stylisticTs }, files: ['**/*.ts'], @@ -55,10 +53,11 @@ export default tsEslint.config({ 'no-magic-numbers': [ "error", { + "detectObjects": false, "ignoreArrayIndexes": true, "ignoreDefaultValues": true, "ignoreClassFieldInitialValues": true, - "ignore": [0, 1] + "ignore": [0, 1] } ], 'no-multi-assign': 'error', @@ -70,16 +69,6 @@ export default tsEslint.config({ 'simple-import-sort/imports': 'error', 'yoda': 'error', 'no-unused-vars': 'off', - 'unused-imports/no-unused-imports': 'error', - 'unused-imports/no-unused-vars': [ - 'warn', - { - 'vars': 'all', - 'varsIgnorePattern': '^_', - 'args': 'after-used', - 'argsIgnorePattern': '^_', - }, - ], "unicorn/better-regex": "error", "unicorn/explicit-length-check": "error", "unicorn/no-abusive-eslint-disable": "error",