Skip to content

Commit

Permalink
feat(eslint-plugin): correct eslint-plugin-react-prefer-function-comp…
Browse files Browse the repository at this point in the history
…onent config path
  • Loading branch information
light-of-tech committed Feb 7, 2025
1 parent 9cc0a0e commit 151a3e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/eslint-config/js.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ const jsConfig = [
{
caseSensitiveStrict: true,
// https://github.com/import-js/eslint-plugin-import/issues/3140#issuecomment-2591619825
ignore: ['typescript-eslint']
ignore: [
'typescript-eslint',
'eslint-plugin-react-prefer-function-component'
]
}
],
'import/newline-after-import': ['error', {considerComments: true}],
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/react.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {FlatCompat} from '@eslint/eslintrc'
import js from '@eslint/js'
import reactPlugin from 'eslint-plugin-react'
import jsxA11y from 'eslint-plugin-jsx-a11y'
import preferFC from 'eslint-plugin-react-prefer-function-component'
import preferFC from 'eslint-plugin-react-prefer-function-component/config'
import storybook from 'eslint-plugin-storybook'
import eslintConfigPrettier from 'eslint-config-prettier'
import ssrFriendly from 'eslint-plugin-ssr-friendly'
Expand Down

0 comments on commit 151a3e1

Please sign in to comment.