mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-16 16:12:23 -06:00
This is an internal change that only affects developers of our theme. This PR: - **upgrades `Stylelint` to `v15`!** - among other things, this leads to the deprecation of many stylistic rules, which overlap with Prettier - it also sees the addition of new rules that catch more errors, especially `declaration-property-value-no-unknown`! - upgrades the accompanying standard config (the SCSS one extends the first-party one); this new config disables the deprecated rules that overlap with Prettier - removes a now-unneeded plugin that disables overlapping rules - moves the `stylelint` config object to `package.json` - now we have one less file (particularly important since people still clone this repo) There were very few new changes; I combined one string that had a dangling `+` in an SCSS warning, and have temporarily disabled the `at-rule-empty-line-before` rule (which also picks up on SCSS `@includes`).
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "just-the-docs",
|
|
"version": "0.3.3",
|
|
"description": "A modern Jekyll theme for documentation",
|
|
"repository": "just-the-docs/just-the-docs",
|
|
"license": "MIT",
|
|
"bugs": "https://github.com/just-the-docs/just-the-docs/issues",
|
|
"devDependencies": {
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^2.8.4",
|
|
"stylelint": "^15.2.0",
|
|
"stylelint-config-standard-scss": "^7.0.1"
|
|
},
|
|
"scripts": {
|
|
"lint": "npm-run-all --parallel --continue-on-error lint:*",
|
|
"lint:css": "stylelint '**/*.scss'",
|
|
"lint:formatting": "prettier --check '**/*.{scss,js,json}'",
|
|
"format": "prettier --write '**/*.{scss,js,json}'",
|
|
"test": "npm run lint"
|
|
},
|
|
"stylelint": {
|
|
"ignoreFiles": [
|
|
"assets/css/just-the-docs-default.scss",
|
|
"assets/css/just-the-docs-light.scss",
|
|
"assets/css/just-the-docs-dark.scss",
|
|
"_sass/vendor/**/*.scss"
|
|
],
|
|
"extends": [
|
|
"stylelint-config-standard-scss"
|
|
],
|
|
"rules": {
|
|
"alpha-value-notation": null,
|
|
"at-rule-empty-line-before": null,
|
|
"color-function-notation": null,
|
|
"no-descending-specificity": null,
|
|
"scss/no-global-function-names": null
|
|
}
|
|
}
|
|
}
|