Skip to content

Commit

Permalink
break: Upgrade to stylelint 15, drop deprecated rules (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
styu committed Feb 12, 2024
1 parent d664e23 commit 00e970b
Show file tree
Hide file tree
Showing 103 changed files with 877 additions and 971 deletions.
913 changes: 450 additions & 463 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/resolve-patch-30be4b7474-c1dcb46225.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"test": "stylelint test/*.css && stylelint test/*.scss --config sass.js"
},
"dependencies": {
"stylelint-config-standard": "^24.0.0",
"stylelint-order": "^5.0.0"
"stylelint-config-standard": "^34.0.0",
"stylelint-order": "^6.0.4"
},
"peerDependencies": {
"postcss": "^8.4.5",
"postcss-scss": "^4.0.2",
"stylelint": "^14.2.0"
"stylelint": "^15.11.0"
},
"peerDependenciesMeta": {
"postcss": {
Expand All @@ -25,13 +25,13 @@
}
},
"optionalDependencies": {
"stylelint-scss": "^4.1.0"
"stylelint-scss": "^5.3.2"
},
"devDependencies": {
"postcss": "^8.4.5",
"postcss-scss": "^4.0.2",
"stylelint": "^14.2.0",
"stylelint-scss": "^4.1.0"
"postcss": "^8.4.35",
"postcss-scss": "^4.0.9",
"stylelint": "^15.11.0",
"stylelint-scss": "^5.3.2"
},
"author": "Palantir",
"license": "Apache-2.0",
Expand Down
15 changes: 0 additions & 15 deletions stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,23 @@ module.exports = {
rules: {
"at-rule-no-unknown": true,
"at-rule-no-vendor-prefix": true,
"block-opening-brace-space-before": "always-multi-line",
"color-hex-length": "long",
"color-named": "never",
"declaration-block-no-duplicate-properties": true,
"declaration-block-semicolon-newline-after": "always",
"declaration-block-semicolon-newline-before": "never-multi-line",
"declaration-colon-newline-after": null,
"declaration-colon-space-after": "always-single-line",
"declaration-empty-line-before": ["never", {
ignore: ["after-declaration"],
}],
"declaration-no-important": true,
"font-family-name-quotes": "always-unless-keyword",
"font-weight-notation": "numeric",
"function-max-empty-lines": 1,
"function-url-quotes": "always",
"indentation": [4, {
// align multiline property values
ignore: ["value"],
}],
"length-zero-no-unit": true,
"max-empty-lines": 3,
"max-line-length": 100,
"max-nesting-depth": 4,
"media-feature-name-no-vendor-prefix": true,
"no-descending-specificity": null,
"no-duplicate-selectors": true,
"no-unknown-animations": true,
"number-max-precision": 8,
"number-no-trailing-zeros": true,
"property-no-unknown": true,
"property-no-vendor-prefix": true,
"rule-empty-line-before": ["always-multi-line", {
Expand All @@ -70,11 +57,9 @@ module.exports = {
// :global and :export are used by css modules
"ignorePseudoClasses": ["global", "export"]
}],
"string-quotes": "double",
"time-min-milliseconds": 100,
"unit-disallowed-list": ["pt"],
"value-keyword-case": "lower",
"value-list-comma-newline-before": "never-multi-line",
"value-no-vendor-prefix": true,
"order/order": [
[
Expand Down

0 comments on commit 00e970b

Please sign in to comment.