Skip to content

Commit

Permalink
feat: upgrade parser & plugin to v2.19.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE: new rule @typescript-eslint/no-unnecessary-boolean-literal-compare
typescript-eslint/typescript-eslint#242

BREAKING CHANGE: new rule @typescript-eslint/no-dupe-class-members
https://github.com/typescript-eslint/typescript-eslint/blob/v2.19.0/packages/eslint-plugin/docs/rules/no-dupe-class-members.md

BREAKING CHANGE: new rule @typescript-eslint/switch-exhaustiveness-check
https://github.com/typescript-eslint/typescript-eslint/blob/v2.19.0/packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.md

Closes #223.
  • Loading branch information
mightyiam committed Feb 4, 2020
1 parent 309376f commit 053b740
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -55,7 +55,7 @@
"TypeScript"
],
"dependencies": {
"@typescript-eslint/parser": "^2.18.0",
"@typescript-eslint/parser": "^2.19.0",
"eslint-config-standard": "^14.1.0"
},
"peerDependencies": {
Expand All @@ -64,14 +64,14 @@
"eslint-plugin-node": ">=9.1.0",
"eslint-plugin-promise": ">=4.2.1",
"eslint-plugin-standard": ">=4.0.0",
"@typescript-eslint/eslint-plugin": ">=2.18.0"
"@typescript-eslint/eslint-plugin": ">=2.19.0"
},
"devDependencies": {
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@commitlint/travis-cli": "^8.2.0",
"@types/node": "^13.1.0",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/eslint-plugin": "^2.19.0",
"ava": "^3.1.0",
"editorconfig-checker": "^3.0.3",
"eslint": "^6.7.2",
Expand Down
4 changes: 3 additions & 1 deletion src/index.test.ts
Expand Up @@ -37,7 +37,7 @@ test('export', (t): void => {
'default-param-last': 'off',
indent: 'off',
'no-array-constructor': 'off',
'no-duplicate-class-members': 'off',
'no-dupe-class-members': 'off',
'no-throw-literal': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
Expand Down Expand Up @@ -90,6 +90,7 @@ test('export', (t): void => {
}
],
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/no-dupe-class-members': 'error',
'@typescript-eslint/no-dynamic-delete': 'error',
'@typescript-eslint/no-empty-function': ['error', {
allow: [
Expand All @@ -111,6 +112,7 @@ test('export', (t): void => {
'@typescript-eslint/no-this-alias': ['error', { allowDestructuring: true }],
'@typescript-eslint/no-throw-literal': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
'@typescript-eslint/no-unused-vars': ['error', { vars: 'all', args: 'none', ignoreRestSiblings: true }],
'@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false, enums: false, variables: false, typedefs: false }],
'@typescript-eslint/no-unused-expressions': ['error', { allowShortCircuit: true, allowTaggedTemplates: true, allowTernary: true }],
Expand Down
5 changes: 2 additions & 3 deletions src/index.ts
Expand Up @@ -5,6 +5,7 @@ const equivalents = [
'brace-style',
'indent',
'no-array-constructor',
'no-dupe-class-members',
'no-throw-literal',
'no-unused-vars',
'no-unused-expressions',
Expand All @@ -31,9 +32,6 @@ export = {
// TypeScript has this functionality by default:
'no-undef': 'off',

// Incompatible with TypeScript function overloads:
'no-duplicate-class-members': 'off',

// Rules replaced by @typescript-eslint versions:
...fromEntries(equivalents.map((name) => [name, 'off'])),
camelcase: 'off',
Expand Down Expand Up @@ -96,6 +94,7 @@ export = {
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-this-alias': ['error', { allowDestructuring: true }],
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-function-type': 'error',
Expand Down

0 comments on commit 053b740

Please sign in to comment.