Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
helloyou2012 committed Jun 26, 2019
1 parent 167922b commit d345ec0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ $ npm install --save-dev eslint eslint-plugin-commonjs
All rules are off by default. However, you may configure them manually in your .eslintrc.(yml|json|js).

```yaml
---
env:
node: true

plugins:
- commonjs

rules:
commonjs/no-duplicate-exports: 2
# etc...
```
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module.exports = {
'no-duplicate-exports': require('./no-duplicate-exports')
rules: {
'no-duplicate-exports': require('./no-duplicate-exports')
}
};

0 comments on commit d345ec0

Please sign in to comment.