Skip to content

Commit bd27eeb

Browse files
committed
chore: update lint to use esm-only module
1 parent b538264 commit bd27eeb

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.eslint.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
]

.eslintrc.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ const {getGlobals} = require('eslint-plugin-mdx')
33
module.exports = {
44
root: true,
55
ignorePatterns: ['.cache/', 'public/'],
6-
plugins: ['primer-react', 'github'],
6+
plugins: ['primer-react'], // github plugin now comes from flat config
77
extends: [
88
'@npmcli',
99
'react-app',
10-
// 'react-app/jest',
1110
'eslint:recommended',
1211
'plugin:react/recommended',
13-
'plugin:github/react',
12+
// 'plugin:github/react', // REMOVED: now handled by flat config
1413
'plugin:react-hooks/recommended',
1514
'prettier',
1615
],

0 commit comments

Comments
 (0)