mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-10 14:01:22 -06:00
After some discussion in #1166, I realized that our prettier workflow is somewhat broken! This PR fixes it, by: - separating Stylelint & Prettier (and removing `stylelint-prettier`) to clearly separate linting versus formatting - this is also helpful for the upcoming upgrading of Stylelint - having Prettier ignore `assets/js/zzzz-search-data.json`; on `main`, `npm run format` fails because of this file (Prettier doesn't know how to interpret the front matter) - change `npm test` to run both Stylelint and Prettier on CI (uses `npm-run-all` utility - had to add one `// prettier-ignore` in `_includes/mermaid_config.js`, which I think is reasonably placed - removing an unused `script` (that doesn't work!) This is a no-op on the site itself, just for our dev environment/CI. Ref: https://github.com/just-the-docs/just-the-docs/pull/1166#discussion_r1110397592. --- Separately, upgrading to Stylelint 15 will come with another interaction - the [deprecation of stylistic rules](https://stylelint.io/migration-guide/to-15#deprecated-stylistic-rules) + shift to Prettier should be nice!
11 lines
253 B
Plaintext
11 lines
253 B
Plaintext
package-lock.json
|
|
_site
|
|
assets/css/just-the-docs-default.scss
|
|
assets/css/just-the-docs-light.scss
|
|
assets/css/just-the-docs-dark.scss
|
|
assets/js/vendor/lunr.min.js
|
|
assets/js/search-data.json
|
|
assets/js/zzzz-search-data.json
|
|
assets/js/just-the-docs.js
|
|
*.md
|