From c2c38d4f656dc25b98884ecae761d2c04073f94b Mon Sep 17 00:00:00 2001 From: "Shahar Or (mightyiam)" Date: Tue, 12 Nov 2019 21:22:47 +0700 Subject: [PATCH] feat: upgrade typescript-eslint packages v2.2 BREAKING CHANGE: brace-style now supports TypeScript syntax. --- package.json | 4 ++-- src/index.test.ts | 2 ++ src/index.ts | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 417fef1da..49482a29e 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "TypeScript" ], "dependencies": { - "@typescript-eslint/parser": "^2.1.0", + "@typescript-eslint/parser": "^2.2.0", "eslint-config-standard": "^14.0.0" }, "peerDependencies": { @@ -71,7 +71,7 @@ "@commitlint/config-conventional": "^8.2.0", "@commitlint/travis-cli": "^8.2.0", "@types/node": "^12.7.9", - "@typescript-eslint/eslint-plugin": "^2.1.0", + "@typescript-eslint/eslint-plugin": "^2.2.0", "ava": "^2.4.0", "editorconfig-checker": "^3.0.3", "eslint": "^6.5.1", diff --git a/src/index.test.ts b/src/index.test.ts index f4ba562bb..7d37c7c61 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -10,6 +10,7 @@ test('export', (t): void => { files: ['*.ts', '*.tsx'], parser: '@typescript-eslint/parser', rules: { + 'brace-style': 'off', camelcase: 'off', indent: 'off', 'no-array-constructor': 'off', @@ -22,6 +23,7 @@ test('export', (t): void => { 'require-await': 'off', '@typescript-eslint/adjacent-overload-signatures': 'error', '@typescript-eslint/array-type': ['error', { default: 'array-simple' }], + '@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }], '@typescript-eslint/camelcase': ['error', { properties: 'never' }], '@typescript-eslint/consistent-type-assertions': [ 'error', diff --git a/src/index.ts b/src/index.ts index 43d00fb92..818edd909 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,6 +10,7 @@ export = { 'no-undef': 'off', // Rules replaced by @typescript-eslint versions: + 'brace-style': 'off', camelcase: 'off', indent: 'off', 'no-array-constructor': 'off', @@ -21,6 +22,7 @@ export = { 'require-await': 'off', // @typescript-eslint versions of Standard.js rules: + '@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }], '@typescript-eslint/camelcase': ['error', { properties: 'never' }], '@typescript-eslint/indent': ['error', 2, { SwitchCase: 1,