Skip to content

Commit

Permalink
feat: rule @typescript-eslint/prefer-ts-expect-error
Browse files Browse the repository at this point in the history
BREAKING CHANGE: add rule @typescript-eslint/prefer-ts-expect-error
BREAKING CHANGE: bump typescript peerDep to `>=3.9`
  • Loading branch information
mightyiam committed May 16, 2020
1 parent 821005e commit b10a230
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"eslint-plugin-node": ">=9.1.0",
"eslint-plugin-promise": ">=4.2.1",
"eslint-plugin-standard": ">=4.0.0",
"typescript": ">=3.8",
"typescript": ">=3.9",
"@typescript-eslint/eslint-plugin": ">=2.33.0"
},
"devDependencies": {
Expand All @@ -89,7 +89,7 @@
"read-pkg-up": "^7.0.1",
"standard-version": "^7.1.0",
"tsconfigs": "^4.0.2",
"typescript": "3.8.3"
"typescript": "3.9.2"
},
"files": [
"lib/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ test('export', (t): void => {
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-readonly': 'error',
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
'@typescript-eslint/prefer-ts-expect-error': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }],
'@typescript-eslint/restrict-plus-operands': ['error', { checkCompoundAssignments: true }],
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export = {
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-readonly': 'error',
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
'@typescript-eslint/prefer-ts-expect-error': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',
'@typescript-eslint/restrict-plus-operands': ['error', { checkCompoundAssignments: true }],
Expand Down

0 comments on commit b10a230

Please sign in to comment.