From 09dcfb0a00af06be374218e6aec01fd3607da4f8 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 2 May 2018 23:27:19 +0100 Subject: [PATCH] relax lint for jsx-curly-spacing and arrow-parens --- .eslintrc.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index c6aeb0d1be..12ccd0e337 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -50,7 +50,12 @@ module.exports = { // // // https://github.com/yannickcr/eslint-plugin-react/blob/HEAD/docs/rules/jsx-curly-spacing.md - "react/jsx-curly-spacing": ["error", {"when": "never", "children": {"when": "always"}}], + // + // Disabled for now - if anything we'd like to *enforce* spacing in JSX + // curly brackets for legibility, but in practice it's not clear that the + // consistency particularly improves legibility here. --Matthew + // + // "react/jsx-curly-spacing": ["error", {"when": "never", "children": {"when": "always"}}], // Assert spacing before self-closing JSX tags, and no spacing before or // after the closing slash, and no spacing after the opening bracket of @@ -88,7 +93,6 @@ module.exports = { "valid-jsdoc": ["warn"], "new-cap": ["warn"], "key-spacing": ["warn"], - "arrow-parens": ["warn"], "prefer-const": ["warn"], // crashes currently: https://github.com/eslint/eslint/issues/6274