Steps to repro:
- Install addon for your project with
ember install ember-cli-workbox.
- Ensure you have valid
.eslintrc.js in project root.
- Either run
ember s or ember build.
Environment
- Docker image
node:10-slim
ember-cli@3.10.1
ember-cli-eslint@5.1.0
ember-source@3.10.1
eslint@5.16.0
eslint-plugin-ember@6.5.1
broccoli-lint-eslint@5.0.0
Using Yarn workspaces: https://yarnpkg.com/en/docs/workspaces
Result:
Build Error (broccoli-persistent-filter:EslintValidationFilter) in app/instance-initializers/sw.js
No ESLint configuration found.
Workaround 1:
Disable hinting in your project's ember-cli-build.js:
app = new EmberApp(defaults, {
hinting: false,
...
})
Workaround 2:
Add the following path to .eslintignore in project's root directory:
PS
Production build works out of the box as it should.
Steps to repro:
ember install ember-cli-workbox..eslintrc.jsin project root.ember sorember build.Environment
node:10-slimember-cli@3.10.1ember-cli-eslint@5.1.0ember-source@3.10.1eslint@5.16.0eslint-plugin-ember@6.5.1broccoli-lint-eslint@5.0.0Using Yarn workspaces: https://yarnpkg.com/en/docs/workspaces
Result:
Workaround 1:
Disable hinting in your project's
ember-cli-build.js:Workaround 2:
Add the following path to
.eslintignorein project's root directory:PS
Production build works out of the box as it should.