Skip to content

Commit

Permalink
build: ignore importing React for certain files (temporarily, storybo…
Browse files Browse the repository at this point in the history
…ok and test related)
  • Loading branch information
YossiSaadi committed May 21, 2024
1 parent c7b42e2 commit c5dbbdf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/core/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,23 @@ module.exports = {
"react-hooks/rules-of-hooks": "off",
"react/jsx-key": "off"
}
},
// TODO This entire block should be removed and fixed, unless we move to React 17+
{
files: [
"*.stories.@(js|jsx|ts|tsx)",
"*.stories.helpers.@(js|jsx|ts|tsx)",
"**/__stories__/**/*.{js,jsx,ts,tsx}",
"*.test.@(js|jsx|ts|tsx)",
"**/__tests__/**/*.{js,jsx,ts,tsx}",
"src/storybook/stand-alone-documentaion/**/*.{js,jsx,ts,tsx}",
"src/storybook/patterns/**/*.{js,jsx,ts,tsx}",
"src/storybook/components/**/*.{js,jsx,ts,tsx}",
"src/storybook/decorators/**/*.{js,jsx,ts,tsx}"
],
rules: {
"react/react-in-jsx-scope": "off"
}
}
],
env: {
Expand Down

0 comments on commit c5dbbdf

Please sign in to comment.