Skip to content

Commit 9f4f82c

Browse files
committed
Fix Eslint config so that it uses rules from .prettierrc
1 parent e2d93c8 commit 9f4f82c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import js from '@eslint/js';
22
import prettier from 'eslint-config-prettier';
3+
import prettierPlugin from 'eslint-plugin-prettier';
34
import react from 'eslint-plugin-react';
45
import reactHooks from 'eslint-plugin-react-hooks';
56
import globals from 'globals';
@@ -31,6 +32,7 @@ export default [
3132
{
3233
plugins: {
3334
'react-hooks': reactHooks,
35+
prettier: prettierPlugin,
3436
},
3537
rules: {
3638
'react-hooks/rules-of-hooks': 'error',

0 commit comments

Comments
 (0)