CSS modules shareable config for stylelint
Installations
npm install stylelint-config-css-modules
Releases
Unable to fetch releases
Developer
pascalduez
Developer Guide
Module System
ESM
Min. Node Version
Typescript Support
No
Node Version
21.1.0
NPM Version
10.2.0
Statistics
112 Stars
102 Commits
2 Forks
5 Watching
2 Branches
2 Contributors
Updated on 22 Oct 2024
Languages
JavaScript (73.82%)
CSS (21.72%)
SCSS (4.46%)
Total Downloads
Cumulative downloads
Total Downloads
50,021,967
Last day
-16.5%
59,202
Compared to previous day
Last week
6.3%
334,515
Compared to previous week
Last month
18%
1,360,995
Compared to previous month
Last year
22.4%
15,039,479
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Dev Dependencies
6
Optional Dependencies
1
stylelint-config-css-modules
CSS modules shareable config for stylelint.
Tweaks stylelint rules to accept css modules specific syntax.
This is useful as an override of pre-defined rules, for instance the stylelint-config-standard.
Installation
npm install stylelint-config-css-modules --save-dev
# or
pnpm install stylelint-config-css-modules --save-dev
# or
yarn add stylelint-config-css-modules --dev
stylelint-config-css-modules
comes withstylelint-scss
asoptionalDependencies
, if you're not using SCSS and want to strip it from your node_modules just:
npm install stylelint-config-css-modules --save-dev --no-optional
# or
pnpm install stylelint-config-css-modules --save-dev --no-optional
# or
yarn add stylelint-config-css-modules --dev --ignore-optional
Usage
1{ 2 "extends": [ 3 "stylelint-config-standard", 4 "stylelint-config-css-modules" 5 ] 6}
Examples
1@value colors: './colors.css'; 2@value primary, secondary from colors; 3 4.base { 5 content: 'base'; 6 color: primary; 7} 8 9.composed { 10 composes: base; 11} 12 13.composedWith { 14 compose-with: base; 15} 16 17.flexible { 18 composes: flex from './utils.css'; 19 flex-direction: column; 20} 21 22:global(.js) .progressive { 23 display: block; 24} 25 26:export { 27 black: #000; 28 white: #111; 29}
SCSS
Using SCSS along with configs such as stylelint-config-standard-scss means you should necessarily have stylelint-scss installed.
1{ 2 "extends": [ 3 "stylelint-config-standard-scss", 4 "stylelint-config-css-modules" 5 ] 6}
Credits
Licence
stylelint-config-css-modules is unlicensed.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: UNLICENSE:0
- Info: FSF or OSI recognized license: The Unlicense: UNLICENSE:0
Reason
1 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
Reason
4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
Reason
Found 0/29 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/pascalduez/stylelint-config-css-modules/ci.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/pascalduez/stylelint-config-css-modules/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/pascalduez/stylelint-config-css-modules/ci.yml/main?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 3 are checked with a SAST tool
Score
3.6
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More