From 9e889e71e080c5bf32b1283fce1aada475132141 Mon Sep 17 00:00:00 2001 From: Thom Blake Date: Mon, 19 Jun 2017 21:42:49 -0700 Subject: [PATCH 1/2] Allow passthrough of rulesDir option to broccoli-lint-eslint Fixes #150 --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index c466a973..b10b3a6e 100644 --- a/index.js +++ b/index.js @@ -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); From 9ef12b882e87b40fefeb24fc8ca9e234953a1a12 Mon Sep 17 00:00:00 2001 From: Thom Blake Date: Mon, 26 Jun 2017 15:19:01 -0700 Subject: [PATCH 2/2] Add option to README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 92089db9..9dea3180 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,7 @@ let app = new EmberApp(defaults, { eslint: { testGenerator: 'qunit', group: true, + rulesDir: 'eslint_rules', } }); ``` @@ -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