Skip to content

Commit

Permalink
fix: turn off react rules that conflict with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
tw0517tw committed Mar 30, 2021
1 parent 978247e commit 4c3265e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# CHANGELOG


## 0.26.1 / 2021-03-30

- [deps] update `eslint-config-yoctol-base` to `0.24.1`
Expand Down
6 changes: 6 additions & 0 deletions rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
};

0 comments on commit 4c3265e

Please sign in to comment.