diff --git a/package.json b/package.json index 5e0e4e2..363a506 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@domoapps/eslint-config", - "version": "1.2.3", + "version": "2.0.0", "main": "src/index.js", "sideEffects": false, "repository": "git@github.com:DomoApps/eslint-config.git", @@ -11,12 +11,12 @@ "test:watch": "yarn run test" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^3.1.0", - "@typescript-eslint/parser": "^3.1.0", + "@typescript-eslint/eslint-plugin": "^8.1.0", + "@typescript-eslint/parser": "^8.1.0", "eslint": "*", - "eslint-config-prettier": "^6.5.0", - "eslint-plugin-prettier": "^3.1.1", - "eslint-plugin-react": "^7.16.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-react": "^7.35.0", "prettier": "*" } } diff --git a/src/index.js b/src/index.js index 0d00bd6..9b6537a 100644 --- a/src/index.js +++ b/src/index.js @@ -52,17 +52,9 @@ module.exports = { '@typescript-eslint/member-ordering': 'error', 'max-classes-per-file': ['error', 1], '@typescript-eslint/adjacent-overload-signatures': 'error', - '@typescript-eslint/ban-types': [ - 'error', - { - types: { - Object: 'Use {} instead', - Array: 'Use [] instead', - String: 'Use string instead', - Number: 'Use number instead', - }, - }, - ], + "@typescript-eslint/no-unsafe-function-type": "error", + "@typescript-eslint/no-empty-object-type": "error", + "@typescript-eslint/no-wrapper-object-types": "error", '@typescript-eslint/no-empty-interface': 'error', '@typescript-eslint/no-namespace': ['error', { allowDeclarations: true }], '@typescript-eslint/no-non-null-assertion': 'error',