Questions tagged [csslint]

csslint is a program used to parse CSS and flag syntax errors, anti-patterns, and redundant declarations.

csslint is open-source and has command-line, browser, and IDE interfaces.

79 questions
1
vote
1 answer

vsCode and cssComb

Have used Brackets, but had some problems. Now trying to get into vsCode. I am a bit confused by the instructions available for setting up and using cssComb within vsCode. Tried to use it from F1 but it gave me the error : "command…
Bob Sharp
  • 11
  • 3
1
vote
1 answer

How to find Duplicate selectors between multiple css files using stylelint

I want to find duplicate selectors between multiple css files. i can't merge those files into single one. as i need to results for each file, which will be easy for removing duplicates.
Sivanatarajan
  • 86
  • 1
  • 10
1
vote
0 answers

Travis sonar scanner install third party plugin

I need to activate the plugin https://github.com/racodond/sonar-css-plugin to lint css files on my project. You can see the full source code here: https://github.com/meilleur-monde/wp-quotes-widget I don't know how to activate this plugin. do I…
fchastanet
  • 49
  • 1
  • 8
1
vote
1 answer

Csslint in Visual Studio gives be an overqualified-elements warning

I have the eonasdan datetime picker installed on my project. It works fine, but I had a problem when used in a table as the headings took on the colours of the table headings. Using an answer to this question I used the following css to fix the…
Andrew
  • 127
  • 2
  • 9
1
vote
1 answer

What is the definition/meaning of 'qualified' in the context of CSS? (csslint.net warning)

What is the meaning of 'qualified'? I'm getting this warning from csslint.net: "Disallow qualified headings: Heading (h1) should not be qualified)." The problem code in question: .Layer2_InfoText1 h1 { margin:1.3rem; } What does this mean, and…
Frank
  • 95
  • 1
  • 8
1
vote
1 answer

Possible to use stylelint for internal and inline stylesheets?

I'm able to use stylelint for .css files according to their usage guide. Is there any way to use it for inline and internal stylesheets? I could write code to collect all those by parsing my HTML documents... is that my only option? Do I have to use…
at.
  • 50,922
  • 104
  • 292
  • 461
1
vote
0 answers

Gulp Failure (Mean.io, npm) Due to CSSLint

I am trying to get a Mean.io project running. I made some simple HTML changes and some simple controller changes just to learn how the project was set up. It was early enough in learning how to get the project set up that I didn't check anything…
1
vote
0 answers

scsslint ColorVariable and sass palettes

I have a problem with scsslint in this variable ColorVariable: Color literals like blue should only be used in variable declarations; they should be referred to via variable everywhere else. I have this sass palette: $color-palettes: ( …
raduken
  • 2,091
  • 16
  • 67
  • 105
1
vote
1 answer

wro4j CSS Lint Adding Custom Rules

Our team wants to use the wro4j tool, and we have gotten it setup and able to run the csslint and jslint. We would like to create our own custom CSS rules, but we can't find any documentation on where the csslint rules are stored and how to create…
1
vote
1 answer

Sublime Text 3 CSSLint Package not using .csslintrc

I'm trying to use CSSLint with Sublime Text 3, but I can't seem to get it to use the .csslintrc file I've got in my project root. Originally I thought it would be in JSON format, but then it turned out you have to use a command line syntax, so as…
mtpultz
  • 17,267
  • 22
  • 122
  • 201
1
vote
1 answer

How to set `.sublimelinterrc` with CSSlint preferences for SublimeLinter?

I'm trying to configure a .sublimelinterrc file for SublimeLinter and CSSlint, I've wrote a rules list example but it won't work and continues to lint it with default rules, this is my config: { "linters":{ "csslint": { "@disable":…
vitto
  • 19,094
  • 31
  • 91
  • 130
1
vote
1 answer

How to set mapping for grunt-lesslint

I've got lots of imports in my main.less file, and lesslint imports/lints them all properly, but the problem is - I can't see any mapping for linting errors, so I can't understand which of less files contains the error. Is there any idea how to set…
1
vote
1 answer

CSSlint 'overqualified' error with unknown tokens ''

For some reason when I run Css lint with Rhino I get the following errors: I'm working with: Windows server Server 2008 Visual Studio 2012 (MVC 4) Java version "1.7.0_21" rhino version 1_6R7 csslint-rhino.js from this url:…
Daan van Hulst
  • 1,426
  • 15
  • 32
0
votes
0 answers

window.CSSLint not defined, CodeMirror CSS linting cannot run. Angular 15

How to define CSSLint in Angular 15? for CodeMirror 5 Css lint is not working for my codemirror 5 editor
0
votes
0 answers

Circleci buld should fail if css_lint returns errors

I have a rails application with CircleCI setup. I am using a gem called css_lint which returns the list of errors if the commit contains any CSS file error. Errors are returned but the build does not fail. I am also using set -e in the beginning.…
Sachin Singh
  • 7,107
  • 6
  • 40
  • 80