Gathering detailed insights and metrics for stylelint-no-unresolved-module
Gathering detailed insights and metrics for stylelint-no-unresolved-module
Gathering detailed insights and metrics for stylelint-no-unresolved-module
Gathering detailed insights and metrics for stylelint-no-unresolved-module
Ensures that module (import-like or `url`) can be resolved to a module on the file system.
npm install stylelint-no-unresolved-module
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
9 Stars
36 Commits
1 Watchers
2 Branches
1 Contributors
Updated on Apr 20, 2025
Latest Version
2.3.0
Package Id
stylelint-no-unresolved-module@2.3.0
Unpacked Size
89.13 kB
Size
14.05 kB
File Count
22
NPM Version
10.2.4
Node Version
18.19.1
Published on
Aug 23, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
32
Ensures that module (import-like or url
) can be resolved to a module on the
file system.
Nodes which are considered "modules":
@import
at-rule in CSS and SCSS files (including pkg:
URLs)@use
and @forward
at-rule as
Sass modules (including
pkg:
URLs)url
declaration value for
various declaration propertiesFeatures:
enhanced-resolve
to resolve
each resource1npm install stylelint-no-unresolved-module --save
Add this config to your .stylelintrc
:
1{ 2 "plugins": ["stylelint-no-unresolved-module"], 3 "rules": { 4 "plugin/no-unresolved-module": { 5 "alias": { 6 "assets": "pebbles" 7 }, 8 "modules": ["node_modules", "local_modules"] 9 } 10 } 11}
Assuming file system like this:
.
├── package.json
├── index.css
├── milo/
│ └── macy.css
├── node_modules/
│ └── josie/
│ ├── package.json
│ ├── rusty.css
│ └── index.css
└── local_modules/
├── pebbles/
│ └── tucker.png
└── shelby/
└── shelby.css
Assuming code is run from ./index.css
:
1/** 2 * These resources can be resolved */ 3 4@import url('josie'); 5@import url('shelby/shelby.css'); 6@import url('./milo/macy.css'); 7 8body { 9 background: url('assets/tucker.jpg'); 10} 11 12/** 13 * These resources can’t be resolved */ 14 15@import url('shelby'); 16@import url('josie/misty.css'); 17@import url('./milo/index.css'); 18 19body { 20 background: url('assets/sandy.jpg'); 21}
Plugin accepts either boolean (true
) or object configuration.
If boolean, it will use default configuration:
node_modules
for non-relative resource pathsIf object configuration, following properties are valid:
Type: string
Default: process.cwd()
Root directory from where to start resolving resources. If it’s not defined, directory of file will be used. Useful for situations where you don’t have original file.
Type: Object
A list of module alias configurations or an object which maps key to value. See original documentation.
Type: string[]
A list of directories to resolve modules from. See original documentation.
Type: string[]
A list of root paths. See original documentation.
MIT © Ivan Nikolić
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
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