Skip to content

Commit

Permalink
chore: get exported meta data from package.json
Browse files Browse the repository at this point in the history
Make sure `package.json` is used as the single source of truth for the
package's name & version.
  • Loading branch information
bryan-hoang committed Aug 28, 2023
1 parent aa4fd7a commit 5eb48db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
// ------------------------------------------------------------------------------

module.exports.meta = {
name: 'eslint-plugin-distributive',
version: '1.0.0',
name: require('../package.json').name,
version: require('../package.json').version,
}

// import all rules in lib/rules
Expand Down

0 comments on commit 5eb48db

Please sign in to comment.