Skip to content

Commit

Permalink
feat(eslint): Added the React version settings to preset
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Aug 4, 2024
1 parent 0ed671e commit 42df9e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/eslint/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export function getStormConfig(
...unicorn.configs["flat/recommended"].rules,

// Banner
...banner.configs!["recommended"]![1].rules,
...banner.configs!["recommended"]![1]?.rules,

...stormRules,

Expand Down Expand Up @@ -274,6 +274,12 @@ export function getStormConfig(
"jsx-a11y": jsxA11y
};

typescriptConfig.settings = {
react: {
version: "detect"
}
};

typescriptConfig.rules = {
...typescriptConfig.rules,

Expand Down

0 comments on commit 42df9e8

Please sign in to comment.