Skip to content

Commit 8847141

Browse files
TylerJDevaprendendofelipe
authored andcommitted
Add meta information
1 parent c37dd0d commit 8847141

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'),
@@ -27,3 +30,5 @@ module.exports = {
2730
},
2831
getFlatConfigs,
2932
}
33+
34+
module.exports = plugin

0 commit comments

Comments
 (0)