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.

csscomb doesn't work

See original GitHub issue

Hi,

I’ve tried to configure lint-staged to clean scss files with csscomb. Here is my conf:

"scripts": {
    "lint-staged": "lint-staged"
  },
  "pre-commit": "lint-staged",
  "lint-staged": {
    "*.scss": [
      "csscomb",
      "git add"
    ]
  }

If I run csscomb <file.scss> it works like a charm. But if I exec ./node_modules/.bin/lint-staged (or commit), the task run and never ends:

avr -11-2017 19-09-39

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
matthewnessworthycommented, Oct 17, 2017

In order to get this to work for me instead of "csscomb --tty-mode", I used "csscomb --tty-mode --", (note the trailing -- in the command)

3reactions
abelmokademcommented, Aug 3, 2017

For future reference, the command works fine if you use it with the --tty-mode option.

Example:

  "lint-staged": {
    "src/**/*.{js,scss}": [
      "csscomb --tty-mode",
      "prettier --write",
      "git add"
    ]
  },
Read more comments on GitHub >

github_iconTop Results From Across the Web

csscomb error · Issue #54 · mrmlnc/vscode-csscomb - GitHub
the csscomb extension does not work. and the console is no message.
Read more >
grunt csscomb doesn't work - Stack Overflow
You missed a : in css module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), less: { development: ...
Read more >
Csscomb does not work for sass | Sololearn: Learn to code for ...
I can not configure csscomb for sass, the documentation says that it supports all preprocessors. I did everything according to the instructions.
Read more >
CSScomb settings for Drupal (CSS formatting and sort tool)
CSScomb formats and sorts CSS properties in css, scss, sass or less files. An explanation of the options can be found at ...
Read more >
grunt-csscomb@4.0.0 - Snyk Vulnerability Database
This does not include vulnerabilities belonging to this package's dependencies. Does your project rely on vulnerable package dependencies?
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