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 10, 2024 via pnpm

stylelint 15.10.3

A mighty CSS linter that helps you avoid errors and enforce conventions.
Package summary
Share
5
issues
1
high severity
license
1
1
moderate severity
meta
1
3
low severity
license
3
10
licenses
135
MIT
23
ISC
2
CC0-1.0
10
other licenses
BSD-2-Clause
2
BSD-3-Clause
2
Apache-2.0
2
MIT-0
1
+ 3 more
Package created
11 Dec 2014
Version published
18 Aug 2023
Maintainers
6
Total deps
170
Direct deps
40
License
MIT

Issues

5

1 high severity issue

high
Recommendation: Read and validate the license terms
via: meow@10.1.5
Collapse
Expand

1 moderate severity issue

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

3 low severity issues

low
Recommendation: Read and validate the license terms
via: css-tree@2.3.1
Recommendation: Read and validate the license terms
via: meow@10.1.5
Recommendation: Read and validate the license terms
via: meow@10.1.5
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
135 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
@types/minimist@1.2.5
@types/normalize-package-data@2.4.4
ajv@8.12.0
ansi-regex@5.0.1
ansi-styles@3.2.1
ansi-styles@4.3.0
array-union@2.1.0
arrify@1.0.1
astral-regex@2.0.0
balanced-match@1.0.2
balanced-match@2.0.0
brace-expansion@1.1.11
braces@3.0.2
callsites@3.1.0
camelcase-keys@7.0.2
camelcase@6.3.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
concat-map@0.0.1
cosmiconfig@8.3.6
css-functions-list@3.2.1
css-tree@2.3.1
cssesc@3.0.0
debug@4.3.4
decamelize-keys@1.1.1
decamelize@1.2.0
decamelize@5.0.1
dir-glob@3.0.1
emoji-regex@8.0.0
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@6.0.1
fill-range@7.0.1
find-up@5.0.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
23 Packages, Including:
fastq@1.17.1
flatted@3.3.1
fs.realpath@1.0.0
glob-parent@5.1.2
glob@7.2.3
hosted-git-info@4.1.0
inflight@1.0.6
inherits@2.0.4
ini@1.3.8
isexe@2.0.0
lru-cache@6.0.0
minimatch@3.1.2
once@1.4.0
picocolors@1.0.0
rimraf@3.0.2
semver@7.6.0
signal-exit@4.1.0
style-search@0.1.0
which@1.3.1
wrappy@1.0.2
write-file-atomic@5.0.1
yallist@4.0.0
yargs-parser@20.2.9

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
2 Packages, Including:
mdn-data@2.0.30
spdx-license-ids@3.0.17

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
2 Packages, Including:
normalize-package-data@3.0.3
uri-js@4.4.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

Apache 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
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
2 Packages, Including:
spdx-correct@3.2.0
validate-npm-package-license@3.0.4

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 Attribution 3.0 Unported

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-exceptions@2.5.0

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@1.4.0
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

40
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
cosmiconfig8.3.618.95 kBMIT
prod
css-functions-list3.2.15.93 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-cache6.0.17.61 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
import-lazy4.0.02.17 kBMIT
prod
imurmurhash0.1.44.21 kBMIT
prod
is-plain-object5.0.03.33 kBMIT
prod
known-css-properties0.28.07.09 kBMIT
prod
mathml-tag-names2.1.33.03 kBMIT
prod
meow10.1.57.57 kBMIT
prod
1
2
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-parser6.0.02.54 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-ansi6.0.11.99 kBMIT
prod
style-search0.1.05.49 kBISC
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.