Skip to content

Commit

Permalink
fix: do not allow importing dev deps from lib/bin (#67)
Browse files Browse the repository at this point in the history
## References
Refs npm/template-oss#316
Needed by npm/node-semver#559
  • Loading branch information
tjenkinson authored May 9, 2023
1 parent 7bdc142 commit 653976f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ module.exports = {
'no-global-assign': 'off',
'no-extend-native': 'off',
},
}, {
files: ['lib/**', 'bin/**'],
rules: {
'import/no-extraneous-dependencies': ['error', { devDependencies: false }],
},
}],
rules: {
'accessor-pairs': 'error',
Expand Down

0 comments on commit 653976f

Please sign in to comment.