From f599da90d1c721f5eea74466115c35484b27770e Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 2 Feb 2020 17:55:25 +0700 Subject: [PATCH] Add `@typescript-eslint/comma-spacing` rule https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-spacing.md --- index.js | 8 ++++++++ package.json | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index bfd571d..d0a9347 100644 --- a/index.js +++ b/index.js @@ -85,6 +85,14 @@ module.exports = { allowSingleLine: false } ], + 'comma-spacing': 'off', + '@typescript-eslint/comma-spacing': [ + 'error', + { + before: false, + after: true + } + ], 'default-param-last': 'off', '@typescript-eslint/default-param-last': 'error', '@typescript-eslint/consistent-type-assertions': [ diff --git a/package.json b/package.json index 7903665..2c6860c 100644 --- a/package.json +++ b/package.json @@ -43,15 +43,15 @@ "simple" ], "devDependencies": { - "@typescript-eslint/eslint-plugin": "^2.17.0", - "@typescript-eslint/parser": "^2.17.0", + "@typescript-eslint/eslint-plugin": "^2.18.0", + "@typescript-eslint/parser": "^2.18.0", "ava": "^2.4.0", "eslint": "^6.8.0", "temp-write": "^4.0.0", "typescript": "^3.7.5" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": ">=2.17.0", + "@typescript-eslint/eslint-plugin": ">=2.18.0", "eslint": ">=6.6.0", "typescript": ">=3.5.3" }