question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem linting CSS

See original GitHub issue

I checked out the project, run the setup. Then, when I run the command npm run test (which calls npm run lint:css) it fails when compiling the css files.

app/components/A/styles.css
 2:10  ✖  Expected "ADDD" to be "addd"      unit-case
 2:10  ✖  Unexpected unknown unit "ADDD"    unit-no-unknown
 6:10  ✖  Expected "CC0E5" to be "cc0e5"    unit-case
 6:10  ✖  Unexpected unknown unit "CC0E5"   unit-no-unknown

app/components/Button/styles.css
 24:21  ✖  Expected "ADDD" to be "addd"     unit-case

npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/Cellar/node/6.2.0/bin/node" "/usr/local/bin/npm" "run" "lint:css"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! react-boilerplate@3.0.0 lint:css: `stylelint ./app/**/*.css`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the react-boilerplate@3.0.0 lint:css script 'stylelint ./app/**/*.css'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     stylelint ./app/**/*.css
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-boilerplate
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-boilerplate
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/thijs/Projects/react-boilerplate/npm-debug.log

npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/Cellar/node/6.2.0/bin/node" "/usr/local/bin/npm" "run" "lint"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! react-boilerplate@3.0.0 lint: `npm run lint:js && npm run lint:css`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-boilerplate@3.0.0 lint script 'npm run lint:js && npm run lint:css'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run lint:js && npm run lint:css
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-boilerplate
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-boilerplate
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/thijs/Projects/react-boilerplate/npm-debug.log

npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/Cellar/node/6.2.0/bin/node" "/usr/local/bin/npm" "run" "test"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! react-boilerplate@3.0.0 pretest: `npm run lint`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-boilerplate@3.0.0 pretest script 'npm run lint'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run lint
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-boilerplate
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-boilerplate
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/thijs/Projects/react-boilerplate/npm-debug.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jwinncommented, May 18, 2016

@DonHansDampf I noticed this as well. 😄. Unfortunately, stylelint doesn’t allow for ignoring/warning (instead of erroring out) if there are no matching files. Glad to hear everything is working besides that though.

0reactions
lock[bot]commented, May 30, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Lint
Beware of broken box sizing · Require properties appropriate for display · Disallow duplicate properties · Disallow empty rules · Require use of...
Read more >
How to CSS Lint & Auto-fix using Stickler and Stylelint - Medium
The main purpose of linting is to analyse the internal structure of components or a system through well-defined rules or expectations about how ......
Read more >
CSS lint throwing error - Stack Overflow
csslint.net is throwing errors for the following css and I don't know why. This is pretty normal for css I think. I got...
Read more >
Lint your CSS with stylelint
The conditions are ripe for a mighty new stylesheet linter — powered by PostCSS and inspired by the best features of scss-lint and...
Read more >
VS Code tips — The built-in CSS linter - YouTube
Today's VS Code tip: CSS lintingVS Code's built-in css support can lint your css to catch potential problems and enforce style conventions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found