Skip to content

Commit

Permalink
Replace ban-types rules. Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge committed Aug 14, 2024
1 parent 514d6d0 commit 7b3357e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@domoapps/eslint-config",
"version": "1.2.3",
"version": "2.0.0",
"main": "src/index.js",
"sideEffects": false,
"repository": "[email protected]:DomoApps/eslint-config.git",
Expand All @@ -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": "*"
}
}
14 changes: 3 additions & 11 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 7b3357e

Please sign in to comment.