From 4c3265e2c9b844dd0d1c748b9c43f89016d9c7de Mon Sep 17 00:00:00 2001 From: tw0517tw Date: Tue, 30 Mar 2021 11:54:15 +0800 Subject: [PATCH] fix: turn off react rules that conflict with prettier --- CHANGELOG.md | 1 - rules/react.js | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d1f3bd..68015e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,5 @@ # CHANGELOG - ## 0.26.1 / 2021-03-30 - [deps] update `eslint-config-yoctol-base` to `0.24.1` diff --git a/rules/react.js b/rules/react.js index 6e19f93..439b9bf 100644 --- a/rules/react.js +++ b/rules/react.js @@ -43,5 +43,11 @@ module.exports = { // https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'error', + + // turn off react rules that will conflict with prettier + 'react/jsx-curly-newline': 'off', + 'react/jsx-indent': 'off', + 'react/jsx-one-expression-per-line': 'off', + 'react/jsx-wrap-multilines': 'off', }, };