Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 28, 2024 via pnpm

stylelint 16.2.1

A mighty CSS linter that helps you avoid errors and enforce conventions.
Package summary
Share
2
issues
1
moderate severity
meta
1
1
low severity
license
1
7
licenses
102
MIT
9
ISC
2
BSD-3-Clause
4
other licenses
MIT-0
1
Python-2.0
1
CC0-1.0
1
BSD-2-Clause
1
Package created
11 Dec 2014
Version published
1 Feb 2024
Maintainers
6
Total deps
117
Direct deps
38
License
MIT

Issues

2

1 moderate severity issue

moderate
via: postcss-resolve-nested-selector@0.1.1
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: css-tree@2.3.1
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
102 Packages, Including:
@babel/code-frame@7.24.2
@babel/helper-validator-identifier@7.22.20
@babel/highlight@7.24.2
@csstools/css-parser-algorithms@2.6.1
@csstools/css-tokenizer@2.2.4
@csstools/media-query-list-parser@2.1.9
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
ajv@8.12.0
ansi-regex@5.0.1
ansi-regex@6.0.1
ansi-styles@3.2.1
ansi-styles@4.3.0
array-union@2.1.0
astral-regex@2.0.0
balanced-match@2.0.0
braces@3.0.2
callsites@3.1.0
chalk@2.4.2
color-convert@1.9.3
color-convert@2.0.1
color-name@1.1.3
color-name@1.1.4
colord@2.9.3
cosmiconfig@9.0.0
css-functions-list@3.2.2
css-tree@2.3.1
cssesc@3.0.0
debug@4.3.4
dir-glob@3.0.1
emoji-regex@8.0.0
env-paths@2.2.1
error-ex@1.3.2
escape-string-regexp@1.0.5
fast-deep-equal@3.1.3
fast-glob@3.3.2
fastest-levenshtein@1.0.16
file-entry-cache@8.0.0
fill-range@7.0.1
flat-cache@4.0.1
global-modules@2.0.0
global-prefix@3.0.0
globby@11.1.0
globjoin@0.1.4
has-flag@3.0.0
has-flag@4.0.0
html-tags@3.3.1
ignore@5.3.1
import-fresh@3.3.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
9 Packages, Including:
fastq@1.17.1
flatted@3.3.1
glob-parent@5.1.2
ini@1.3.8
isexe@2.0.0
picocolors@1.0.0
signal-exit@4.1.0
which@1.3.1
write-file-atomic@5.0.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
source-map-js@1.2.0
table@6.8.2

MIT No Attribution

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
@csstools/selector-specificity@3.0.3

Python License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
state-changes
1 Packages, Including:
argparse@2.0.1

Creative Commons Zero v1.0 Universal

Public Domain
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
mdn-data@2.0.30

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
uri-js@4.4.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

38
All Dependencies CSV
β“˜ This is a list of stylelint 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@csstools/css-parser-algorithms2.6.144.46 kBMIT
prod peer
@csstools/css-tokenizer2.2.460.21 kBMIT
prod peer
@csstools/media-query-list-parser2.1.9109.82 kBMIT
prod
@csstools/selector-specificity3.0.39.93 kBMIT-0
prod
balanced-match2.0.02.66 kBMIT
prod
colord2.9.331.95 kBMIT
prod
cosmiconfig9.0.028.97 kBMIT
prod
css-functions-list3.2.229.67 kBMIT
prod
css-tree2.3.1272.24 kBMIT
prod
1
debug4.3.412.94 kBMIT
prod
fast-glob3.3.224.37 kBMIT
prod
fastest-levenshtein1.0.165.96 kBMIT
prod
file-entry-cache8.0.05.38 kBMIT
prod
global-modules2.0.02.71 kBMIT
prod
globby11.1.06.23 kBMIT
prod
globjoin0.1.42.25 kBMIT
prod
html-tags3.3.12.58 kBMIT
prod
ignore5.3.114.1 kBMIT
prod
imurmurhash0.1.44.21 kBMIT
prod
is-plain-object5.0.03.33 kBMIT
prod
known-css-properties0.29.07.69 kBMIT
prod
mathml-tag-names2.1.33.03 kBMIT
prod
meow13.2.088.9 kBMIT
prod
micromatch4.0.514.09 kBMIT
prod
normalize-path3.0.03.48 kBMIT
prod
picocolors1.0.02.35 kBISC
prod
postcss-resolve-nested-selector0.1.11.88 kBMIT
prod
1
postcss-safe-parser7.0.02.55 kBMIT
prod
postcss-selector-parser6.0.16181.61 kBMIT
prod peer
postcss-value-parser4.2.07.81 kBMIT
prod
postcss8.4.38193.21 kBMIT
prod peer
resolve-from5.0.02.28 kBMIT
prod
string-width4.2.32.33 kBMIT
prod
strip-ansi7.1.02.12 kBMIT
prod
supports-hyperlinks3.0.03.21 kBMIT
prod
svg-tags1.0.02.65 kBMIT
prod
table6.8.2326.88 kBBSD-3-Clause
prod
write-file-atomic5.0.14.3 kBISC
prod

Visualizations

Frequently Asked Questions

What does stylelint do?

Stylelint is a robust and customizable CSS linter that aids in the prevention of errors and enforcement of conventions in your stylesheets. With over 100 built-in rules for modern CSS syntax and features, Stylelint ensures your code is not only valid but also consistent and adheres to best practices. It even possesses the capability to fix problems automatically when possible. Extensible through plugins, Stylelint caters to bespoke requirements and supports languages like SCSS, Sass, Less, and SugarSS. With its emphasis on conventions, Stylelint can help disallow specific units, enforce naming patterns, set limits like the number of ID selectors, and specify notations for modern color functions.

How do you use stylelint?

To start using Stylelint, you'll need to first install it in your project. Use npm or yarn to add it as a development dependency:

// with npm
npm install stylelint --save-dev

// with yarn
yarn add stylelint --dev

Once installed, create a configuration file (.stylelintrc) in your project root. This file will contain rules that Stylelint will enforce:

// .stylelintrc
{
  "rules": {
    "block-no-empty": true,
    "color-no-invalid-hex": true,
    // add more rules as per your requirement
  }
}

You can lint your stylesheet files using the Stylelint command followed by the file or directory path:

// Lint a single file
npx stylelint "path/to/file.css"

// Lint an entire directory
npx stylelint "path/to/directory/*.css"

Stylelint can also be integrated with build systems like Gulp, Grunt, and webpack through respective plugins. Moreover, many popular text editors have Stylelint plugins that provide linting inside the editor itself.

Where are the stylelint docs?

The complete documentation for Stylelint can be found on their GitHub repository under the "docs" directory. The documentation is comprehensive, offering guidance on getting started, customizing, configuring, and detailed information about all the rules. There are also guides for ignoring code, using the CLI, and for the Node.js API. Overall, the docs serve as an in-depth resource for everything you need to know about Stylelint.