From 46ba4fedb768991902d83c68e59f93dd55727d1c Mon Sep 17 00:00:00 2001 From: zepumph Date: Fri, 26 Feb 2021 11:20:25 -0900 Subject: [PATCH] remove block-spacing from format rules, https://github.com/phetsims/phet-info/issues/156 --- eslint/format_eslintrc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eslint/format_eslintrc.js b/eslint/format_eslintrc.js index efcdbe09..5b659895 100644 --- a/eslint/format_eslintrc.js +++ b/eslint/format_eslintrc.js @@ -36,7 +36,9 @@ module.exports = { // enforce spacing inside single-line blocks // https://eslint.org/docs/rules/block-spacing - 'block-spacing': [ 'error', 'always' ], + // Leave it off because Webstorm doesn't add spacing to `() => {this.pLDChanged = true;}` to make it `() => { this.pLDChanged = true; } + // TODO: perhaps update webstorm rules, https://github.com/phetsims/phet-info/issues/150 + // 'block-spacing': [ 'error', 'always' ], // enforce or disallow capitalization of the first letter of a comment // https://eslint.org/docs/rules/capitalized-comments