From fe2242a1e1257dd97854acd28fd03724afda3c23 Mon Sep 17 00:00:00 2001 From: "Shahar Or (mightyiam)" Date: Tue, 4 Feb 2020 21:56:48 +0700 Subject: [PATCH] feat: upgrade parser & plugin to v2.18.0 BREAKING CHANGE: new rule @typescript-eslint/prefer-as-const https://github.com/typescript-eslint/typescript-eslint/pull/1431 Closes #218. --- package.json | 6 +++--- src/index.test.ts | 2 ++ src/index.ts | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 10008303..db5e3199 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "TypeScript" ], "dependencies": { - "@typescript-eslint/parser": "^2.17.0", + "@typescript-eslint/parser": "^2.18.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.17.0" + "@typescript-eslint/eslint-plugin": ">=2.18.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.17.0", + "@typescript-eslint/eslint-plugin": "^2.18.0", "ava": "^3.1.0", "editorconfig-checker": "^3.0.3", "eslint": "^6.7.2", diff --git a/src/index.test.ts b/src/index.test.ts index c932359e..6a2f7aaa 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -33,6 +33,7 @@ test('export', (t): void => { rules: { 'brace-style': 'off', camelcase: 'off', + 'comma-spacing': 'off', 'default-param-last': 'off', indent: 'off', 'no-array-constructor': 'off', @@ -49,6 +50,7 @@ test('export', (t): void => { '@typescript-eslint/array-type': ['error', { default: 'array-simple' }], '@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }], '@typescript-eslint/camelcase': ['error', { properties: 'never', genericType: 'always' }], + '@typescript-eslint/comma-spacing': ['error', { before: false, after: true }], '@typescript-eslint/consistent-type-assertions': [ 'error', { diff --git a/src/index.ts b/src/index.ts index 41eb6256..45ac54fd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ import { rules as standardRules } from 'eslint-config-standard/eslintrc.json' const equivalents = [ + 'comma-spacing', 'brace-style', 'indent', 'no-array-constructor',