Skip to content

Commit

Permalink
refactor: remove eslint rule react-refresh/only-export-components
Browse files Browse the repository at this point in the history
  • Loading branch information
Beraliv committed Dec 11, 2024
1 parent 7d73d94 commit d020547
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ export default tseslint.config(
},
rules: {
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"@typescript-eslint/no-empty-object-type": ["off"],
},
}
Expand Down
1 change: 0 additions & 1 deletion src/contexts/UserInputContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ interface UserInputContextType {
target: InputType | undefined;
}

// eslint-disable-next-line react-refresh/only-export-components
export const UserInputContext = createContext<UserInputContextType>({
setSource: noop,
setTarget: noop,
Expand Down
1 change: 0 additions & 1 deletion src/utils/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ type MapConfigWithoutExample = "empty";

type MapConfig = MapConfigWithExample | MapConfigWithoutExample;

// eslint-disable-next-line react-refresh/only-export-components
const DistributiveConditionalTypes = () => (
<Link
href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types"
Expand Down

0 comments on commit d020547

Please sign in to comment.