Skip to content

Commit be1c7a6

Browse files
TylerJDevaprendendofelipe
authored andcommitted
Add meta information
1 parent f0ca502 commit be1c7a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
const {name, version} = require('../package.json')
2+
13
const getFlatConfigs = () => ({
24
recommended: require('./configs/flat/recommended'),
35
})
46

5-
module.exports = {
7+
const plugin = {
8+
meta: {name, version},
69
rules: {
710
'direct-slot-children': require('./rules/direct-slot-children'),
811
'no-deprecated-entrypoints': require('./rules/no-deprecated-entrypoints'),
@@ -28,3 +31,5 @@ module.exports = {
2831
},
2932
getFlatConfigs,
3033
}
34+
35+
module.exports = plugin

0 commit comments

Comments
 (0)