Skip to content

Commit 0102dc8

Browse files
committed
Support eslint flat config
1 parent 6b95a02 commit 0102dc8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Diff for: config/flat.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const importPlugin = require('../lib/index');
2+
3+
module.exports = [
4+
{
5+
plugins: {
6+
import: importPlugin,
7+
},
8+
},
9+
];

Diff for: src/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,7 @@ export const configs = {
6868
'react-native': require('../config/react-native'),
6969
electron: require('../config/electron'),
7070
typescript: require('../config/typescript'),
71+
72+
// flat config support
73+
flat: require('../config/flat'),
7174
};

0 commit comments

Comments
 (0)