Skip to content

chore: revert stylelint config file to JS#245

Merged
thescientist13 merged 1 commit intomasterfrom
chore/stylelint-no-config-found
Feb 7, 2026
Merged

chore: revert stylelint config file to JS#245
thescientist13 merged 1 commit intomasterfrom
chore/stylelint-no-config-found

Conversation

@thescientist13
Copy link
Member

Related Issue

N / A

Observed from time to time that I would get this error running styleline

➜  wcc git:(chore/vitest-unit-testing) ✗ npm run lint

> wc-compiler@0.19.0 lint
> npm run lint:js && npm run lint:ls && npm run lint:css


> wc-compiler@0.19.0 lint:js
> eslint


> wc-compiler@0.19.0 lint:ls
> ls-lint


> wc-compiler@0.19.0 lint:css
> stylelint "./docs/**/*.css"

ConfigurationError: No configuration provided for /Users/owenbuckley/Workspace/project-evergreen/wcc/docs/components/capability-box/capability-box.module.css
    at getConfigForFile (file:///Users/owenbuckley/Workspace/project-evergreen/wcc/node_modules/stylelint/lib/getConfigForFile.mjs:76:9)
    at async postProcessStylelintResult (file:///Users/owenbuckley/Workspace/project-evergreen/wcc/node_modules/stylelint/lib/standalone.mjs:381:24)
    at async file:///Users/owenbuckley/Workspace/project-evergreen/wcc/node_modules/stylelint/lib/standalone.mjs:280:5
    at async Promise.all (index 4)
    at async standalone (file:///Users/owenbuckley/Workspace/project-evergreen/wcc/node_modules/stylelint/lib/standalone.mjs:295:22)

Summary of Changes

  1. Revert stylelint config to JS

Per stylelint/stylelint#3625, issue is probably that a TS configuration file is not well supported. But after renaming, it just worked

➜  wcc git:(chore/vitest-unit-testing) ✗ npm run lint

> wc-compiler@0.19.0 lint
> npm run lint:js && npm run lint:ls && npm run lint:css


> wc-compiler@0.19.0 lint:js
> eslint


> wc-compiler@0.19.0 lint:ls
> ls-lint


> wc-compiler@0.19.0 lint:css
> stylelint "./docs/**/*.css"

Copy link
Member Author

@thescientist13 thescientist13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, seems I am not alone and this is known issue

@thescientist13 thescientist13 changed the title chore: revert stylelint config to JS chore: revert stylelint config file to JS Feb 7, 2026
@thescientist13 thescientist13 merged commit b38a580 into master Feb 7, 2026
17 of 18 checks passed
@thescientist13 thescientist13 deleted the chore/stylelint-no-config-found branch February 7, 2026 00:39
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in [WCC] General Activities Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant