ember-octane-blueprint
ember-octane-blueprint copied to clipboard
ESLint errors on a newly generated Octane app
Running npm run lint:jsyields these errors:
eslint .
/octane-preview/.eslintrc.js
45:40 error "eslint-plugin-node" is not published node/no-unpublished-require
/octane-preview/config/environment.js
54:37 error Empty block statement no-empty
/octane-preview/ember-cli-build.js
3:26 error "ember-cli" is not published node/no-unpublished-require
✖ 3 problems (3 errors, 0 warnings)
I think this is fine for pre-octane release. Once octane goes stable, we should def make sure there are no lint errors / no unpublished packages referenced.
The two no-unpublished-requires are because we don't have everything in the .npmignore properly, we should resync with ember-cli's blueprint
FWIW this does still seem to be an issue:
$ npm run lint:js
> [email protected] lint:js /home/gabriel/repos/test-octane
> eslint .
/home/gabriel/repos/test-octane/.eslintrc.js
45:40 error "eslint-plugin-node" is not published node/no-unpublished-require
/home/gabriel/repos/test-octane/config/environment.js
47:37 error Empty block statement no-empty
/home/gabriel/repos/test-octane/ember-cli-build.js
3:26 error "ember-cli" is not published node/no-unpublished-require
✖ 3 problems (3 errors, 0 warnings)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] lint:js: `eslint .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] lint:js script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/gabriel/.npm/_logs/2019-06-26T00_23_07_249Z-debug.log
This has been fixed!
Thanks!