Skip to content

Commit

Permalink
Scripts: Update stylelint dependency and the default config (WordPres…
Browse files Browse the repository at this point in the history
…s#64828)

* update stylelint deps to latest and convert deprecated rules to @Stylistic

* prevent extra rules being added

* fix rule name change

* fix scss overwrite bug

* fix stylelint disables/enables

* migrate stylistic styles to separate configs to make it easy to opt out for consumers

* fix: switch stylistic config dep for plugin

* use require.resolve for stylelint recommended config

* fix stylelint unit tests

* fix global mocks for node env

* use correct configs for tests

* add type checking for configs

* convert tests to esm

* remove unnecessary await

* fix stylelint tests

* remove experimental-vm-modules flag

* revert jest globals changes

* move utils to folder

* update readme

* update changelogs

---------

Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl>

Unlinked contributors: 75th, vicobot-0815.

Co-authored-by: mikeybinns <mikeybinns@git.wordpress.org>
Co-authored-by: gziolo <gziolo@git.wordpress.org>
Co-authored-by: jacobcassidy <jacobcassidy@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: paulschreiber <paulschreiber@git.wordpress.org>
Co-authored-by: stein2nd <stein2nd@git.wordpress.org>
  • Loading branch information
7 people committed Sep 12, 2024
1 parent f1403c4 commit d649865
Show file tree
Hide file tree
Showing 43 changed files with 1,505 additions and 873 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ module.exports = {
},
],
'no-restricted-syntax': [ 'error', ...restrictedSyntax ],
'jsdoc/check-tag-names': [
'error',
{
definedTags: [ 'jest-environment' ],
},
],
},
overrides: [
{
Expand Down
6 changes: 3 additions & 3 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@wordpress/stylelint-config/scss",
"extends": "@wordpress/stylelint-config/scss-stylistic",
"rules": {
"at-rule-empty-line-before": null,
"at-rule-no-unknown": null,
Expand All @@ -21,7 +21,7 @@
}
],
"font-weight-notation": null,
"max-line-length": null,
"@stylistic/max-line-length": null,
"no-descending-specificity": null,
"property-disallowed-list": [
[ "order" ],
Expand All @@ -34,7 +34,7 @@
"value-keyword-case": null,
"scss/operator-no-unspaced": null,
"scss/selector-no-redundant-nesting-selector": null,
"scss/at-import-partial-extension": null,
"scss/load-partial-extension": null,
"scss/no-global-function-names": null,
"scss/comment-no-empty": null,
"scss/at-extend-no-missing-placeholder": null,
Expand Down
Loading

0 comments on commit d649865

Please sign in to comment.