Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #197 from thomblake/add_rulesdir_option
Browse files Browse the repository at this point in the history
Allow passthrough of rulesDir option to broccoli-lint-eslint
  • Loading branch information
Turbo87 authored Jul 2, 2017
2 parents c28982c + 9ef12b8 commit 991dcd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ let app = new EmberApp(defaults, {
eslint: {
testGenerator: 'qunit',
group: true,
rulesDir: 'eslint_rules',
}
});
```
Expand All @@ -139,6 +140,8 @@ let app = new EmberApp(defaults, {
- `group` can be set to `false` to go back to the previous behavior where
every generated test was contained in its own separate module.

- `rulesDir` is the name of the directory for your custom eslint rules.
It defaults to `'eslint_rules'`.

### On Build Files

Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ module.exports = {
testGenerator: this.options.testGenerator || this._testGenerator,
group: (this.options.group !== false) ? type : undefined,

options: {
rulesDir: this.options.rulesDir || 'eslint_rules'
},

console: {
log: function(message) {
ui.writeLine(message);
Expand Down

0 comments on commit 991dcd0

Please sign in to comment.