Skip to content

Commit 11a16f4

Browse files
committed
feat: upgrade parser & plugin to v2.17.0
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.
1 parent 477351a commit 11a16f4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"TypeScript"
5656
],
5757
"dependencies": {
58-
"@typescript-eslint/parser": "^2.16.0",
58+
"@typescript-eslint/parser": "^2.17.0",
5959
"eslint-config-standard": "^14.1.0"
6060
},
6161
"peerDependencies": {
@@ -64,14 +64,14 @@
6464
"eslint-plugin-node": ">=9.1.0",
6565
"eslint-plugin-promise": ">=4.2.1",
6666
"eslint-plugin-standard": ">=4.0.0",
67-
"@typescript-eslint/eslint-plugin": ">=2.16.0"
67+
"@typescript-eslint/eslint-plugin": ">=2.17.0"
6868
},
6969
"devDependencies": {
7070
"@commitlint/cli": "^8.2.0",
7171
"@commitlint/config-conventional": "^8.2.0",
7272
"@commitlint/travis-cli": "^8.2.0",
7373
"@types/node": "^13.1.0",
74-
"@typescript-eslint/eslint-plugin": "^2.16.0",
74+
"@typescript-eslint/eslint-plugin": "^2.17.0",
7575
"ava": "^3.1.0",
7676
"editorconfig-checker": "^3.0.3",
7777
"eslint": "^6.7.2",

src/index.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ test('export', (t): void => {
3333
rules: {
3434
'brace-style': 'off',
3535
camelcase: 'off',
36+
'default-param-last': 'off',
3637
indent: 'off',
3738
'no-array-constructor': 'off',
3839
'no-duplicate-class-members': 'off',
@@ -102,6 +103,7 @@ test('export', (t): void => {
102103
'@typescript-eslint/no-misused-new': 'error',
103104
'@typescript-eslint/no-misused-promises': 'error',
104105
'@typescript-eslint/no-namespace': 'error',
106+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
105107
'@typescript-eslint/no-non-null-assertion': 'error',
106108
'@typescript-eslint/no-this-alias': ['error', { allowDestructuring: true }],
107109
'@typescript-eslint/no-throw-literal': 'error',

src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export = {
3636
// Rules replaced by @typescript-eslint versions:
3737
...fromEntries(equivalents.map((name) => [name, 'off'])),
3838
camelcase: 'off',
39+
'default-param-last': 'off',
3940
'no-use-before-define': 'off',
4041

4142
// @typescript-eslint versions of Standard.js rules:
@@ -90,6 +91,7 @@ export = {
9091
'@typescript-eslint/no-misused-new': 'error',
9192
'@typescript-eslint/no-misused-promises': 'error',
9293
'@typescript-eslint/no-namespace': 'error',
94+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
9395
'@typescript-eslint/no-non-null-assertion': 'error',
9496
'@typescript-eslint/no-this-alias': ['error', { allowDestructuring: true }],
9597
'@typescript-eslint/no-unnecessary-type-assertion': 'error',

0 commit comments

Comments
 (0)