https://github.com/idrinth-api-bench/duplicate-style-check
This small library checks media queries for duplicate style definitions.
https://github.com/idrinth-api-bench/duplicate-style-check
cli css static-analyzer
Last synced: 11 months ago
JSON representation
This small library checks media queries for duplicate style definitions.
- Host: GitHub
- URL: https://github.com/idrinth-api-bench/duplicate-style-check
- Owner: idrinth-api-bench
- License: mit
- Created: 2024-01-07T05:10:08.000Z (over 2 years ago)
- Default Branch: the-one
- Last Pushed: 2025-08-08T17:43:09.000Z (11 months ago)
- Last Synced: 2025-08-08T19:35:34.469Z (11 months ago)
- Topics: cli, css, static-analyzer
- Language: TypeScript
- Homepage:
- Size: 87.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Duplicate Style Check
This small tool checks for two cases of duplication so far:
- a rule's property has been defined before in the same media set
- a rule's property duplicates the value of the media query less rule
## Usage
Run `ilcd folder` or skip the folder and link the cwd recursively. The `node_modules` are ignored as file origin.
Add a `.idrinth-duplicate-style-check.json` configuration file in the cwd to define entry points to get better results, example:
```json
{
"entrypoints": [
"index.css",
"src/hidden.css"
]
}
```
And yes, this can be run with npx as well: `npx @idrinth/duplicate-style-check`