Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm test failure on eslint #66

Closed
YasharF opened this issue Jun 15, 2019 · 2 comments
Closed

npm test failure on eslint #66

YasharF opened this issue Jun 15, 2019 · 2 comments

Comments

@YasharF
Copy link

YasharF commented Jun 15, 2019

The eslint rule is "Disallow shorthand properties that override related longhand properties.".

The test failure is by:
1514df5#diff-c8a07c8225c0af21bdd6c40b67170518R26

More about the eslint rule: https://stylelint.io/user-guide/rules/declaration-block-no-shorthand-property-overrides/

$ npm run test

> gatsby-starter-gcn@2.0.5 test /mnt/c/temp/gatsby-starter-gcn
> npm run lint:css && npm run lint:js && npm run check-pretty


> gatsby-starter-gcn@2.0.5 lint:css /mnt/c/temp/gatsby-starter-gcn
> stylelint 'src/**/*.js'


src/styles/global.js
 25:5  ✖  Unexpected shorthand "font"   declaration-block-no-shorthand-property-overrides
          after "font-size"

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! gatsby-starter-gcn@2.0.5 lint:css: `stylelint 'src/**/*.js'`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the gatsby-starter-gcn@2.0.5 lint:css 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/user/.npm/_logs/2019-06-15T17_41_23_017Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! gatsby-starter-gcn@2.0.5 test: `npm run lint:css && npm run lint:js && npm run check-pretty`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the gatsby-starter-gcn@2.0.5 test 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/user/.npm/_logs/2019-06-15T17_41_23_058Z-debug.log
@ryanwiemer
Copy link
Owner

Thank you for the detailed info. I will take a look at this.

@ryanwiemer
Copy link
Owner

@YasharF This should be resolved as of v2.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants