DEV: Introduce stylelint (#29852)

Stylelint is a css linter: https://stylelint.io/

As part of this change we have added two javascript scripts:

```
pnpm lint:css
pnpm lint:css:fix
```

Look at `.vscode/settings.json.sample` and `.vscode/extensions.json` for
configuration in VSCode.

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
This commit is contained in:
David Taylor
2025-01-20 15:27:42 +00:00
committed by GitHub
parent 89df65e843
commit d88ee33eb6
297 changed files with 3174 additions and 793 deletions

View File

@ -658,7 +658,7 @@ RSpec.describe Stylesheet::Manager do
).compile(force: true)
expect(stylesheet).not_to include("--primary: #CC0000;")
expect(stylesheet).to include("--primary: #222222;") # from base scheme
expect(stylesheet).to include("--primary: #222;") # from base scheme
end
it "uses the correct scheme when a valid scheme id is used" do