From 0b150441e2ee09ae957148bccb62a2fda47b2cd4 Mon Sep 17 00:00:00 2001 From: "Shahar Or (mightyiam)" Date: Fri, 17 Jan 2020 15:42:17 +0700 Subject: [PATCH] feat: upgrade plugin & parser to v2.16.0 BREAKING CHANGE: new rule @typescript-eslint/default-param-last BREAKING CHANGE: handle JSX attributes in @typescript-eslint/no-unnecessary-type-assertion Closes #207. --- package.json | 6 +++--- src/index.test.ts | 1 + src/index.ts | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1ee71dd60..750a4883f 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "TypeScript" ], "dependencies": { - "@typescript-eslint/parser": "^2.15.0", + "@typescript-eslint/parser": "^2.16.0", "eslint-config-standard": "^14.1.0" }, "peerDependencies": { @@ -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.15.0" + "@typescript-eslint/eslint-plugin": ">=2.16.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.15.0", + "@typescript-eslint/eslint-plugin": "^2.16.0", "ava": "^2.4.0", "editorconfig-checker": "^3.0.3", "eslint": "^6.7.2", diff --git a/src/index.test.ts b/src/index.test.ts index 9d0dcf367..f018f20e7 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -55,6 +55,7 @@ test('export', (t): void => { } ], '@typescript-eslint/consistent-type-definitions': ['error', 'interface'], + '@typescript-eslint/default-param-last': 'error', '@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true, allowHigherOrderFunctions: true, diff --git a/src/index.ts b/src/index.ts index 41f5899a5..fadffb9b1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -57,6 +57,7 @@ export = { } ], '@typescript-eslint/consistent-type-definitions': ['error', 'interface'], + '@typescript-eslint/default-param-last': 'error', '@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true, allowHigherOrderFunctions: true,