Skip to content

Commit

Permalink
Fix react rule by moving to react config
Browse files Browse the repository at this point in the history
@rrees from CXT informed me that it was causing issues on all their
non-react projects.
  • Loading branch information
ccouzens committed Apr 16, 2024
1 parent 1ceb913 commit 2630bb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ module.exports = {
],
'curly': ['error', 'all'],
'key-spacing': 'error',
'react/jsx-curly-brace-presence': [
'error',
{ props: 'never', children: 'never', propElementValues: 'always' },
],

// -- Typescript
'@typescript-eslint/ban-types': [
Expand Down
4 changes: 4 additions & 0 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ module.exports = {
'react/destructuring-assignment': 'off',
'react/require-default-props': 'off',
'@studysync/persnickety/jsx-child-location': 'error',
'react/jsx-curly-brace-presence': [
'error',
{ props: 'never', children: 'never', propElementValues: 'always' },
],
}
}

0 comments on commit 2630bb4

Please sign in to comment.