File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change
1
+ import github from 'eslint-plugin-github'
2
+
3
+ export default [
4
+ // Don't use spread operator - these aren't arrays
5
+ github . getFlatConfigs ( ) . react ,
6
+ {
7
+ // This lets your .eslintrc.js handle most configuration
8
+ ignores : [ '.cache/**' , 'public/**' ]
9
+ }
10
+ ]
Original file line number Diff line number Diff line change @@ -3,14 +3,13 @@ const {getGlobals} = require('eslint-plugin-mdx')
3
3
module . exports = {
4
4
root : true ,
5
5
ignorePatterns : [ '.cache/' , 'public/' ] ,
6
- plugins : [ 'primer-react' , ' github' ] ,
6
+ plugins : [ 'primer-react' ] , // github plugin now comes from flat config
7
7
extends : [
8
8
'@npmcli' ,
9
9
'react-app' ,
10
- // 'react-app/jest',
11
10
'eslint:recommended' ,
12
11
'plugin:react/recommended' ,
13
- 'plugin:github/react' ,
12
+ // 'plugin:github/react', // REMOVED: now handled by flat config
14
13
'plugin:react-hooks/recommended' ,
15
14
'prettier' ,
16
15
] ,
You can’t perform that action at this time.
0 commit comments