ember-octane-blueprint icon indicating copy to clipboard operation
ember-octane-blueprint copied to clipboard

ESLint errors on a newly generated Octane app

Open Alonski opened this issue 7 years ago • 5 comments

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)

Alonski avatar Mar 07 '19 16:03 Alonski

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.

NullVoxPopuli avatar Mar 14 '19 20:03 NullVoxPopuli

The two no-unpublished-requires are because we don't have everything in the .npmignore properly, we should resync with ember-cli's blueprint

rwjblue avatar Mar 15 '19 00:03 rwjblue

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

gabrielgrant avatar Jun 26 '19 00:06 gabrielgrant

This has been fixed!

chancancode avatar Aug 22 '19 20:08 chancancode

Thanks!

Alonski avatar Aug 23 '19 08:08 Alonski