Skip to content

Commit

Permalink
Support eslint flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed Sep 4, 2023
1 parent 6b95a02 commit 0102dc8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/flat.js
@@ -0,0 +1,9 @@
const importPlugin = require('../lib/index');

module.exports = [
{
plugins: {
import: importPlugin,
},
},
];
3 changes: 3 additions & 0 deletions src/index.js
Expand Up @@ -68,4 +68,7 @@ export const configs = {
'react-native': require('../config/react-native'),
electron: require('../config/electron'),
typescript: require('../config/typescript'),

// flat config support
flat: require('../config/flat'),
};

0 comments on commit 0102dc8

Please sign in to comment.