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

Allow passthrough of rulesDir option to broccoli-lint-eslint #197

Merged
merged 2 commits into from
Jul 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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