Skip to content

Commit

Permalink
feat: upgrade parser & plugin to v2.17.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE: new rule @typescript-eslint/no-non-null-asserted-optional-chain
typescript-eslint/typescript-eslint#1469

BREAKING CHANGE: [no-extra-non-null-assertion] flag optional chain after a non-null assertion
typescript-eslint/typescript-eslint#1460

Closes #218.
  • Loading branch information
mightyiam committed Feb 11, 2020
1 parent 477351a commit 11a16f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -55,7 +55,7 @@
"TypeScript"
],
"dependencies": {
"@typescript-eslint/parser": "^2.16.0",
"@typescript-eslint/parser": "^2.17.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.16.0"
"@typescript-eslint/eslint-plugin": ">=2.17.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.16.0",
"@typescript-eslint/eslint-plugin": "^2.17.0",
"ava": "^3.1.0",
"editorconfig-checker": "^3.0.3",
"eslint": "^6.7.2",
Expand Down
2 changes: 2 additions & 0 deletions src/index.test.ts
Expand Up @@ -33,6 +33,7 @@ test('export', (t): void => {
rules: {
'brace-style': 'off',
camelcase: 'off',
'default-param-last': 'off',
indent: 'off',
'no-array-constructor': 'off',
'no-duplicate-class-members': 'off',
Expand Down Expand Up @@ -102,6 +103,7 @@ test('export', (t): void => {
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-namespace': 'error',
'@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-throw-literal': 'error',
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Expand Up @@ -36,6 +36,7 @@ export = {
// Rules replaced by @typescript-eslint versions:
...fromEntries(equivalents.map((name) => [name, 'off'])),
camelcase: 'off',
'default-param-last': 'off',
'no-use-before-define': 'off',

// @typescript-eslint versions of Standard.js rules:
Expand Down Expand Up @@ -90,6 +91,7 @@ export = {
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-namespace': 'error',
'@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-type-assertion': 'error',
Expand Down

0 comments on commit 11a16f4

Please sign in to comment.