Skip to content

Conversation

neoncube2
Copy link

@neoncube2 neoncube2 commented Sep 28, 2025

eslint-plugin-react-compiler

Added eslint-plugin-react-compiler, to provide additional linting warnings related to React.

.eslintignore deprecation warning
Fixed the following warning, by merging the contents of .eslintignore into eslint.config.js:

(node:20184) ESLintIgnoreWarning: The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files

Typescript compile error
Fixed some new Typescript compile errors that were caused by updating packages.

It looks like JSX now needs to be referenced as React.JSX

useRef() now requires an initial value, otherwise we get an error like this:

src/useElementRef.ts:5:15 - error TS2554: Expected 1 arguments, but got 0.

5   const ref = useRef<HTMLDivElement>();
                ~~~~~~

  node_modules/.pnpm/@[email protected]/node_modules/@types/react/index.d.ts:1728:24
    1728     function useRef<T>(initialValue: T): RefObject<T>;
                                ~~~~~~~~~~~~~~~
    An argument for 'initialValue' was not provided.

…cript compile errors. Fixed .eslintignore deprecation warning
@neoncube2
Copy link
Author

Whoops, it looks like some of this PR is a duplicate of #210 XD

If you'd like to merge that one first and have me rebase, just let me know. Or I think you could merge this PR and close that one, either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant