Skip to content

Commit

Permalink
Re-enabled React hooks ESLint plugin (#15)
Browse files Browse the repository at this point in the history
* Re-enabled React hooks ESLint plugin

* Updated package lock

* Reorder RSS feed link tag to match others
  • Loading branch information
jwngr authored Sep 25, 2024
1 parent d894af7 commit 24ade45
Show file tree
Hide file tree
Showing 4 changed files with 321 additions and 612 deletions.
5 changes: 5 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import eslint from '@eslint/js';
import eslintPluginAstro from 'eslint-plugin-astro';
import reactHooks from 'eslint-plugin-react-hooks';
import tseslint from 'typescript-eslint';

export default tseslint.config(
Expand All @@ -17,8 +18,12 @@ export default tseslint.config(
{
files: ['**/*.{js,jsx,ts,tsx,astro,mjs}'],
ignores: ['**/dist'],
plugins: {
'react-hooks': reactHooks,
},
rules: {
'@typescript-eslint/no-extraneous-class': 'off',
...reactHooks.configs.recommended.rules,
},
}
);
Loading

0 comments on commit 24ade45

Please sign in to comment.