Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new package @wordpress/stylelint config #22777

Merged
merged 355 commits into from
Dec 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
355 commits
Select commit Hold shift + click to select a range
2a8cb6d
chore(package): update stylelint to version 7.0.0 (#83)
ntwb Jul 20, 2016
1c5d175
fix: Deprecated `no-missing-eof-newline` rule. Use the new `no-missin…
ntwb Jul 20, 2016
90cc185
fix: Fixed font-family-name-quotes` test warning message in `values.j…
ntwb Jul 20, 2016
f432fe9
feat: Add `property-no-unknown` rule. (#86)
ntwb Jul 20, 2016
553397b
Update install instructions to add `--save-dev`
ntwb Aug 21, 2016
82a8f7e
chore(package): update stylelint to version 7.2.0 (#87)
ntwb Sep 10, 2016
d15a1c3
chore(package): update AVA to version 0.16.0 (#88)
ntwb Sep 10, 2016
9adab0f
chore(package): update eslint-config-stylelint to version 4.0.0 (#89)
ntwb Sep 10, 2016
3a5c26b
chore(package): update ESLint to version 3.0.0 (#90)
ntwb Sep 10, 2016
eebd971
feat: Add `at-rule-no-unknown` rule. (#91)
ntwb Sep 10, 2016
2def9cd
feat: Add `selector-class-pattern` and `selector-id-pattern` rules. (…
ntwb Sep 10, 2016
078ac5f
Prepare 9.0.0
ntwb Sep 10, 2016
b70ece2
Merge branch 'master' of github.com:ntwb/stylelint-config-wordpress
ntwb Sep 10, 2016
413e48e
feat: Add SCSS preset config (#96)
ntwb Sep 30, 2016
8261a33
Prepare 9.1.0
ntwb Sep 30, 2016
db3001e
Prepare 9.1.1
ntwb Sep 30, 2016
da15333
refactor: Use ECMAScript 8/2017, use async/await instead of returning…
ntwb Nov 6, 2016
5321d45
chore(package): update dependencies (#100)
greenkeeper[bot] Nov 6, 2016
fa79be4
chore: Add NodeJS 7 to Travis & AppVeyor CI test matrix's (#102)
ntwb Nov 6, 2016
bac1b91
chore(package): update stylelint to version 7.5.0 (#103)
ntwb Nov 6, 2016
430bf84
chore: Add NodeJS 7.x changelog note
ntwb Nov 6, 2016
0dcd082
feat: Add `selector-no-empty` rule. (#104)
ntwb Nov 6, 2016
08333a3
chore(package): Update `eslint-plugin-ava` to version 4.0.0 (#105)
ntwb Nov 6, 2016
4f55051
fix: SCSS: Dissalow `@debug` at-rules.
ntwb Nov 7, 2016
b27c6fc
fix: SCSS: Add `scss/selector-no-redundant-nesting-selector` rule.
ntwb Nov 7, 2016
c7b5e4b
Update ava to the latest version 🚀 (#109)
greenkeeper[bot] Nov 17, 2016
269a04f
chore(package): update npm-run-all to version 4.0.0 (#111)
greenkeeper[bot] Jan 1, 2017
34a2b85
Update eslint-config-stylelint to the latest version 🚀 (#110)
greenkeeper[bot] Apr 13, 2017
4c65b5b
chore: bump minimum NodeJS requirement to 6.9.1 and drop NodeJS 4.x (…
ntwb Apr 13, 2017
d991aa9
chore: Update remark and remark plugin packages (#120)
ntwb Apr 13, 2017
37730f4
Update ava to the latest version 🚀 (#112)
greenkeeper[bot] Apr 13, 2017
187c465
Updated and removed deprecated stylelint rules for 8.0 (#116)
harleyoliver Apr 13, 2017
2433933
chore: Add require NodeJS 6.x LTS changelog note
ntwb Apr 13, 2017
00802b6
chore: Update changelog for changes made in #116
ntwb Apr 13, 2017
69d62c4
refactor: Switch from AVA to Jest for tests. (#122)
ntwb Apr 15, 2017
c54a3bb
chore(package): update stylelint to version 7.10.1 (#123)
ntwb Apr 15, 2017
1429be8
chore(package): update stylelint-scss to version 1.4.4 (#124)
ntwb Apr 15, 2017
dd921e8
chore(package): update eslint to version 3.19.0 (#125)
ntwb Apr 15, 2017
8fb34e4
refactor: Switch from eslint-plugin-ava to eslint-plugin-jest. (#126)
ntwb Apr 15, 2017
7e7624d
Fixed: Added `stylelint-scss` plugin @if/@else placement rules. (#127)
ntwb Apr 15, 2017
d63184d
fix: Ignore proprietary `DXImageTransform.Microsoft` MS filters (#128)
ntwb Apr 18, 2017
2171fe9
docs: Update CHANEGLOG
ntwb Apr 18, 2017
e0338ab
Merge branch 'master' of github.com:ntwb/stylelint-config-wordpress
ntwb Apr 18, 2017
f29e418
feat: Prepare `10.0.0` release.
ntwb Apr 21, 2017
f8d792e
fix: Remove stylelint v8 deprecated rule `rule-non-nested-empty-line-…
ntwb Apr 21, 2017
cb183fc
feat: Prepare `10.0.1` release.
ntwb Apr 21, 2017
8a0789d
fix: Add `@import` to `ignoreAtRules` option in `at-rule-empty-line-b…
ntwb Apr 29, 2017
e34cdba
feat: Prepare `10.0.2` release.
ntwb Apr 29, 2017
93948e8
chore(package): update eslint-plugin-jest to version 20.0.0 (#134)
greenkeeper[bot] May 7, 2017
0a8af0c
chore(package): update jest to version 20.0.0 (#135)
greenkeeper[bot] May 7, 2017
d8bc909
docs: Update docs to reflect the new repository home
ntwb May 11, 2017
be07ad0
fix: Add `declaration-property-unit-whitelist` rule to enforce unitle…
ntwb May 15, 2017
5d0ad4d
fix: Include CSS config `at-rule-empty-line-before` options in SCSS c…
ntwb May 15, 2017
3674231
Fix: Allow `px` units in `line-height` values for the `declaration-pr…
ntwb May 16, 2017
4b2f202
feat: Prepare `11.0.0` release.
ntwb May 16, 2017
7b8f792
Updated README section links (#141)
hbrok May 25, 2017
ecbccfd
chore: Add NodeJS v8 to Travis CI build matrix (#143)
ntwb May 31, 2017
6ab31cb
chore: Switch from Node.js "current v7.x branch to v8.x for AppVeyor …
ntwb Jun 24, 2017
a7bc80f
chore: Drop Node.js v7.x branch from Travis CI (#146)
ntwb Jun 24, 2017
3a35b75
refactor: Switch to shared `recommended` config from `eslint-plugin-w…
ntwb Jun 24, 2017
71679c4
chore: Update ESLint to version 4.1.0
ntwb Jun 24, 2017
4fe31eb
chore: Add a `dry-release` npm task (#149)
ntwb Jul 2, 2017
9f41778
chore: Move ESLint config from `package.json` to `.eslintrc.json` fil…
ntwb Jul 3, 2017
dff948f
chore: Use the latest npm for all Node.js Travis CI jobs
ntwb Jul 16, 2017
ef00061
chore: Add npm 5's `package-lock.json` file
ntwb Jul 16, 2017
de5445c
chore: Add Greenkeeper support for npm 5.x's `package-lock.json` file.
ntwb Jul 16, 2017
d46fc16
tests: Add Jest snapshot tests
ntwb Jul 16, 2017
b86f29e
tests: Update Jest snapshots
ntwb Jul 16, 2017
e96ee67
chore(package): update stylelint to version 8.0.0
greenkeeper[bot] Jul 16, 2017
5c671cd
fix: Add initial support for long comments in headers of WordPress th…
ntwb Jul 16, 2017
41f0c46
tests: Add some bbPress Jest snapshot tests.
ntwb Jul 16, 2017
bde556b
tests: Update Jest SCSS tests to use SCSS config
ntwb Jul 16, 2017
e24d4b5
tests: Update Jest SCSS test snapshots
ntwb Jul 16, 2017
5edb86a
tests: Add some BuddyPress Jest snapshot tests.
ntwb Jul 16, 2017
ab7150b
chore: Use the `runInBand` flag for Jest Travis CI jonbs
ntwb Jul 16, 2017
2d8e9e9
tests: Update snapshots
ntwb Jul 18, 2017
6a78ed0
tests: Update tests to account for new rules introduced in `stylelint…
ntwb Jul 18, 2017
3787d8d
chore: Add `stylelint-config-recommended` extend base configuration f…
ntwb Jul 18, 2017
2f1a10c
docs: Update CHANGELOG with `stylelint-config-recommended` changes
ntwb Jul 18, 2017
550d81c
docs: Remove the styleguide from the repo.
ntwb Jul 18, 2017
d26626d
refactor: Use `scss/at-rule-no-unknown` in `scss` shared config.
ntwb Jul 18, 2017
6dacec1
feat: Prepare `12.0.0` release.
ntwb Jul 18, 2017
f0f63c6
chore(package): update remark-cli to version 4.0.0
greenkeeper[bot] Jul 20, 2017
7462eb3
chore: Update `package-lock.json`
ntwb Jul 21, 2017
dfe0447
chore(package): update remark-preset-lint-recommended to version 3.0.0
greenkeeper[bot] Jul 23, 2017
301c17f
chore: Update `package-lock.json`
ntwb Jul 24, 2017
c104688
fix(package): update stylelint-scss to version 2.0.0
greenkeeper[bot] Jul 29, 2017
e241c86
chore: Update `package-lock.json`
ntwb Aug 1, 2017
7d96c1e
chore: Add `stylelint-find-rules`
ntwb Aug 8, 2017
5dce976
chore(package): update stylelint-find-rules to version 1.0.1
greenkeeper[bot] Aug 10, 2017
55097af
chore: Update package-lock.json
ntwb Aug 11, 2017
9145c9c
chore: Updated `stylelint` peer dependency version to `^8.0.0`.
ntwb Aug 25, 2017
b822e86
chore(package): update jest to version 21.0.0
greenkeeper[bot] Sep 4, 2017
0f0661d
chore: Update `package-lock.json`
ntwb Sep 10, 2017
777aff7
chore(package): update eslint-plugin-jest to version 21.0.0
greenkeeper[bot] Sep 4, 2017
2f72b5b
chore: Update `package-lock.json`
ntwb Sep 10, 2017
f801a68
tests: Remove Jest snapshots (#176)
ntwb Oct 30, 2017
e3a8e58
docs: Update CHANGELOG
ntwb Oct 30, 2017
a8e3382
Use toHaveLength() in tests
GaryJones Jan 6, 2018
c678e16
chore: Remove Greenkeeper lock file configuration from `.travis.yml`
ntwb Jan 6, 2018
1b32394
chore: Remove `package-lock.json`
ntwb Jan 6, 2018
56c4b81
chore: Add `package-lock.json` to `.gitignore`
ntwb Jan 6, 2018
0e8eb40
chore: Add `.npmrc` file to prevent npm creating a `packake-lock.json…
ntwb Jan 6, 2018
5d0ce9b
chore(package): update jest to version 22.0.0
greenkeeper[bot] Dec 18, 2017
48ec301
chore: update `.editorconfig` per upstream WordPress' `.eitorconfig`
ntwb Jan 17, 2018
b96a124
chore: use tabs for indentaion in `package.json` per WordPress coding…
ntwb Jan 17, 2018
41abc86
chore: use tabs for indentaion in `.eslintrc.json` per WordPress codi…
ntwb Jan 17, 2018
b5728cf
chore: use `* text=auto` in `.gitattributes`
ntwb Jan 17, 2018
155ec7e
chore(package): update remark-cli to version 5.0.0
greenkeeper[bot] Jan 20, 2018
b49e16f
chore: standardize Jest tests
ntwb Mar 17, 2018
a88e1c0
chore: add commitlint
ntwb Mar 17, 2018
fc77753
chore: bump minimum Nod.js required version to `8.9.3`
ntwb Mar 17, 2018
23287cc
test: improved `no-duplicate-selectors` tests
ntwb Mar 19, 2018
34471bf
feat: update `stylelint` to `9.1.3`
ntwb Mar 19, 2018
b8d5e3c
chore: updated `stylelint-config-recommended` to `2.1.0`
ntwb Mar 19, 2018
7fb6cff
chore: updated: `stylelint-scss` to `2.1.0`
ntwb Mar 19, 2018
9fe73d2
feat: update `selector-pseudo-element-colon-notation` to use `double`
ntwb Mar 19, 2018
8a49f46
feat: prepare `13.0.0` release
ntwb Mar 19, 2018
d55d19b
fix(package): update stylelint-scss to version 3.0.0
greenkeeper[bot] Mar 31, 2018
f0e6f0f
docs: update changelog
ntwb Apr 3, 2018
20604ed
test: add SCSS tests for _extends_ shared configs
ntwb Apr 3, 2018
86488ad
docs: update changelog
ntwb Apr 3, 2018
6fde670
test: standardize invalid tests warnings test name verbiage
ntwb Apr 3, 2018
c7678d4
test: use Jest snapshots for invalid tests
ntwb Apr 3, 2018
a68b316
feat: the `/scss` config now extends `stylelint-config-recommended-scss`
ntwb Apr 3, 2018
c013232
feat: update `stylelint` to `9.2.0`
ntwb Apr 3, 2018
7712280
docs: add basic _extends_ shared config references
ntwb Apr 3, 2018
ee81e90
Update to node 10 in .travis.yml
greenkeeper[bot] May 17, 2018
7c4aade
Drop Node.js v9.x
ntwb May 17, 2018
a6d87e3
Update appveyor.yml
ntwb May 17, 2018
ae564f4
chore(package): update @commitlint/cli to version 7.0.0
greenkeeper[bot] Jun 2, 2018
3098437
chore(package): update @commitlint/config-conventional to version 7.0…
ntwb Jun 4, 2018
910ab70
chore(package): update npmpub to version 4.0.1
greenkeeper[bot] Jun 8, 2018
f50e319
feat: update stylelint to `9.5.0`
ntwb Aug 19, 2018
1d6aad3
chore: update ESLint to `5.4.0`
ntwb Aug 19, 2018
5494bec
chore: update Jest to `23.5.0`
ntwb Aug 19, 2018
d49ff69
chore: update `eslint-plugin-jest` to `21.21.0`
ntwb Aug 19, 2018
8c82d0a
chore: update `npmpub` to `4.1.0`
ntwb Aug 19, 2018
9a2bcf1
chore: update `npm-run-all` to `4.1.3`
ntwb Aug 19, 2018
8736082
chore: update `stylelint-find-rules` to `1.1.1`
ntwb Aug 19, 2018
65f250d
chore: update remark presets: • `remark-preset-lint-consistent` to `2…
ntwb Aug 19, 2018
ce8d973
feat: update `stylelint-scss` to `3.3.0`
ntwb Aug 19, 2018
416ec14
chore: add `npm-package-json-lint`
ntwb Aug 19, 2018
7a87ab0
chore: add `@wordpress/npm-package-json-lint-config`
ntwb Aug 19, 2018
29ee796
chore: update `package.json` property order
ntwb Aug 19, 2018
3488c1c
feat: Prepare `13.1.0` release (#208)
ntwb Aug 19, 2018
b72a63c
chore(package): update husky to version 1.1.2 (#210)
ntwb Oct 17, 2018
f6359de
chore(package): update remark-cli to version 6.0.0 (#211)
greenkeeper[bot] Oct 22, 2018
37850fd
chore(package): update eslint-plugin-jest to version 22.0.0 (#212)
greenkeeper[bot] Nov 7, 2018
5432cb1
Update stylelint-find-rules to the latest version 🚀 (#213)
greenkeeper[bot] Dec 12, 2018
be4fceb
chore(package): update stylelint to version 10.0.1 (#215)
ntwb Apr 17, 2019
5e83957
chore: update @commitlint
ntwb Apr 17, 2019
dcd9b8b
chore: update `stylelint-config-recommended` to v2.2.0
ntwb Apr 18, 2019
6e15b7f
chore: update `stylelint-scss` to v3.6.0
ntwb Apr 18, 2019
0383daa
chore: update devDependencies
ntwb Apr 18, 2019
140d322
feat: prepare `14.0.0` release
ntwb Apr 18, 2019
31688b2
chore(package): update husky to version 2.2.0
greenkeeper[bot] May 2, 2019
f71b28c
chore: update `husky.hooks` config in `package.json`
ntwb May 7, 2019
0fec4a8
chore(package): update @wordpress/npm-package-json-lint-config to ver…
greenkeeper[bot] Jun 12, 2019
482ec97
chore(package): update husky to version 3.0.1
greenkeeper[bot] Jul 18, 2019
9c42a37
test: fix type in snapshot test
ntwb Jul 19, 2019
ec0d641
chore(package): update @commitlint/cli to version 8.0.0
greenkeeper[bot] May 31, 2019
be73b6a
chore(package): update @commitlint/config-conventional to version 8.0.0
ntwb Aug 16, 2019
ee894b6
chore(package): update remark-cli to version 7.0.0
greenkeeper[bot] Jul 20, 2019
f7285ae
chore(package): update packages to latest versions
ntwb Aug 16, 2019
15833fd
chore(package): restore peerDependencies stylelint versions
ntwb Aug 16, 2019
569d161
chore(node): bump minimum Node.JS to LTS version 10.x
ntwb Aug 16, 2019
cec3f98
ci: use `npm test` to include lint tasks in CI jobs
ntwb Aug 16, 2019
ea2dd05
docs: nocapital_S_dangit
ntwb Aug 16, 2019
52a7c27
chore(package): update npmpub to version 5.0.0
greenkeeper[bot] Sep 20, 2019
07d12ce
fix(package): update stylelint-config-recommended to version 3.0.0
greenkeeper[bot] Sep 15, 2019
b39e191
chore(package): update stylelint to version 11.0.0
greenkeeper[bot] Sep 15, 2019
f47746e
chore: update `peerDependencies` for stylelint 11.0.0
ntwb Oct 5, 2019
0d90048
docs: update changelog
ntwb Oct 5, 2019
808ecbe
docs: fix stylelint removed compat version
ntwb Oct 5, 2019
34de7c8
Update stylelint-config-recommended-scss to the latest version 🚀 (#238)
greenkeeper[bot] Oct 5, 2019
5457b97
Update eslint to the latest version 🚀 (#233)
greenkeeper[bot] Oct 5, 2019
651b58c
docs: update changelog
ntwb Oct 5, 2019
52c2fd1
chore: bump dependencies
ntwb Oct 5, 2019
c2ce2ab
chore: add Node.js v12 to Travis CI test matrix, remove 8.x, min 10.x
ntwb Oct 5, 2019
ae58016
feat: prepare `15.0.0` release
ntwb Oct 5, 2019
2408939
Merge pull request #241 from WordPress-Coding-Standards/update/find-r…
ntwb Oct 6, 2019
9162884
Update npm-package-json-lint to the latest version 🚀 (#242)
ntwb Oct 7, 2019
7cbfa39
Use `@wordpress/scripts` (#231)
ntwb Nov 24, 2019
401fdb4
chore: update `stylelint` to 12.0.0
ntwb Nov 30, 2019
a25e6e2
chore: update `stylelint-scss` to 3.13.0
ntwb Nov 30, 2019
322e749
chore: update `stylelint-config-recommended-scss` to 4.1.0
ntwb Nov 30, 2019
5b5493b
chore: update `husky` to 3.1.0
ntwb Nov 30, 2019
b2999e5
chore: update `remark-cli` to 7.0.1
ntwb Nov 30, 2019
9d9feee
chore: update `@wordpress/scripts` to 6.0.0
ntwb Nov 30, 2019
1a5238c
Fixed: `selector-class-*` regex to account for numerals, case de… (#247)
ntwb Nov 30, 2019
0d04ca7
ci: add Windows to Travis CI (#248)
ntwb Nov 30, 2019
f2ca6f0
chore: remove AppVeyor (#249)
ntwb Nov 30, 2019
083e16b
feat: prepare `16.0.0` release
ntwb Dec 29, 2019
6365c77
test: update comment fof scss-invalid test to eslint-jsdoc warnings
ntwb Dec 29, 2019
3da024e
feat: prepare `16.0.0` release
ntwb Dec 31, 2019
c7961e2
fix: npm script temp workaround
ntwb Dec 31, 2019
ff48bd5
Merge pull request #251 from WordPress-Coding-Standards/greenkeeper/@…
ntwb Jan 1, 2020
e364be5
Revert "fix: npm script temp workaround"
ntwb Jan 1, 2020
c5b97be
Update husky to the latest version 🚀 (#252)
ntwb Jan 9, 2020
d094e6b
Merge pull request #255 from WordPress-Coding-Standards/greenkeeper/s…
ntwb Feb 25, 2020
76c9b7e
Merge pull request #254 from WordPress-Coding-Standards/greenkeeper/@…
ntwb Mar 9, 2020
523b67e
chore(package): update @wordpress/scripts to version 7.1.2
ntwb Mar 9, 2020
831d43c
chore(package): update stylelint-scss to version 3.14.2
ntwb Mar 9, 2020
45c1c14
chore(package): update stylelint-config-recommended-scss to version 4…
ntwb Mar 9, 2020
792d818
chore(package): update husky to version 4.2.3
ntwb Mar 9, 2020
e094f58
chore(package): update @commitlint/cli to version 8.3.5
ntwb Mar 9, 2020
a7ad586
chore(package): update @commitlint/config-conventional to version 8.3.4
ntwb Mar 9, 2020
1de6126
Merge pull request #256 from WordPress-Coding-Standards/greenkeeper/r…
ntwb Mar 30, 2020
f12d76f
Merge pull request #258 from WordPress-Coding-Standards/greenkeeper/r…
ntwb Mar 30, 2020
36a5b38
Merge pull request #257 from WordPress-Coding-Standards/greenkeeper/r…
ntwb Mar 30, 2020
45a445f
Merge pull request #260 from WordPress-Coding-Standards/greenkeeper/@…
ntwb Apr 16, 2020
595df6d
Merge pull request #264 from WordPress-Coding-Standards/greenkeeper/@…
ntwb May 31, 2020
9d0d278
chore: update `stylelint-scss` to 3.17.2
ntwb May 31, 2020
beb5ed4
feat: prepare `17.0.0` release
ntwb May 31, 2020
06d1097
refactor: rename `stylelint-config-wordpress` to `stylelint-config`
ntwb May 31, 2020
e2b0dc5
refactor: rename `stylelint-config-wordpress` to `@wordpress/stylelin…
ntwb May 31, 2020
f4056da
refactor: remove `@commitlint` from `@wordpress/stylelint-config`
ntwb May 31, 2020
2176040
refactor: remove `husky` from `@wordpress/stylelint-config`
ntwb May 31, 2020
8d3e8fe
refactor: trim npm package keywords from `@wordpress/stylelint-config`
ntwb May 31, 2020
ea2ecef
refactor: remove `.editorconfig` from `@wordpress/stylelint-config`
ntwb May 31, 2020
bc3a534
refactor: remove `npmpub` from `@wordpress/stylelint-config`
ntwb May 31, 2020
8d017f3
refactor: remove `eslintConfig` from `@wordpress/stylelint-config`
ntwb May 31, 2020
f41fa54
refactor: remove `remarkConfig` from `@wordpress/stylelint-config`
ntwb May 31, 2020
26e52c8
refactor: remove `remark` from `@wordpress/stylelint-config`
ntwb May 31, 2020
fdd35d4
refactor: remove `engines` from `@wordpress/stylelint-config`
ntwb May 31, 2020
c3427d5
refactor: remove `prettier.config.js` from `@wordpress/stylelint-config`
ntwb May 31, 2020
f5e6d31
refactor: remove `.gitattributes` from `@wordpress/stylelint-config`
ntwb May 31, 2020
13b52fd
refactor: remove `.gitignore` from `@wordpress/stylelint-config`
ntwb May 31, 2020
af27f79
refactor: remove `.travis.yml` from `@wordpress/stylelint-config`
ntwb May 31, 2020
d265c5a
tests: refactor tests in `@wordpress/stylelint-config`
ntwb May 31, 2020
05ab441
chore: add `.stylelintignore` for _invalid_ scss test fixtures in `@w…
ntwb May 31, 2020
9f35bce
Revert "chore: add `.stylelintignore` for _invalid_ scss test fixture…
ntwb May 31, 2020
32fe96a
chore: add `.stylelintrc.json` for test fixtures in `@wordpress/style…
ntwb May 31, 2020
88b1482
tests: update Jest snapshots in `@wordpress/stylelint-config`
ntwb May 31, 2020
c6bed96
docs: update `docs/manifest.json` for `@wordpress/stylelint-config`
ntwb May 31, 2020
811ee50
chore: update `@wordpress/stylelint-config` package description
ntwb May 31, 2020
a8c44ae
chore: remove `devDependencies` from `@wordpress/stylelint-config`
ntwb May 31, 2020
67e2ff9
chore: remove package `scripts` from `@wordpress/stylelint-config`
ntwb May 31, 2020
e88910a
chore: remove superfluous `.stylelintignore` from `@wordpress/styleli…
ntwb May 31, 2020
1db4034
chore: add Lerna `publishConfig` to `@wordpress/stylelint-config`
ntwb Jun 1, 2020
3d956d6
Merge branch 'master' into try/stylelint-config-package
ocean90 Dec 14, 2020
a1ab9ef
Update Jest snapshots
ocean90 Dec 14, 2020
64007e5
Backfill release dates in changelog
ocean90 Dec 15, 2020
64a43f8
Update package author
ocean90 Dec 15, 2020
8eec3d6
Update readme
ocean90 Dec 15, 2020
490cde8
Update comment to use renamed package name
ocean90 Dec 17, 2020
3c4ab8f
Rename tests to match other packages
ocean90 Dec 17, 2020
3aa8939
Remove stylelint `^10.1.0`, `^11.0.0`, and `^12.0.0` as peer dependency.
ocean90 Dec 17, 2020
0605d8b
Merge branch 'master' into try/stylelint-config-package
ocean90 Dec 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,12 @@
"markdown_source": "../packages/shortcode/README.md",
"parent": "packages"
},
{
"title": "@wordpress/stylelint-config",
"slug": "packages-stylelint-config",
"markdown_source": "../packages/stylelint-config/README.md",
"parent": "packages"
},
{
"title": "@wordpress/token-list",
"slug": "packages-token-list",
Expand Down
1 change: 1 addition & 0 deletions packages/stylelint-config/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
250 changes: 250 additions & 0 deletions packages/stylelint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
<!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/master/packages#maintaining-changelogs. -->

## Unreleased

### Breaking Change

- Removed stylelint `^10.1.0`, `^11.0.0`, and `^12.0.0` as peer dependency.

### Internal
ocean90 marked this conversation as resolved.
Show resolved Hide resolved

- Imported from `WordPress-Coding-Standards/stylelint-config-wordpress` repository to `WordPress/gutenberg` ([#22777](https://github.com/WordPress/gutenberg/pull/22777))

## 17.0.0 (2020-05-31)

- Updated: `stylelint-scss` to `3.17.2`.
- Updated: `stylelint` to `13.0.0`.

## 16.0.0 (2019-12-31)

- Fixed: `selector-class-pattern` rule regex to account for numerals, case detection, and ensure kebab-case over snake_case.
- Fixed: `selector-id-pattern` rule regex to account for numerals, case detection, and ensure kebab-case over snake_case.
- Updated: `stylelint-config-recommended-scss` to `4.1.0`.
- Updated: `stylelint-find-rules` to `2.2.0`.
- Updated: `stylelint-scss` to `3.13.0`.
- Updated: `stylelint` to `11.0.0`.

## 15.0.0 (2019-10-05)

- Added: NodeJS 12.x.x support.
- Updated: `stylelint` to `11.0.0`.
- Removed: `stylelint < 10.1.0` compatibility.
- Updated: `stylelint-config-recommended` to `3.0.0`.
- Updated: `stylelint-config-recommended-scss` to `4.0.0`.
- Updated: Bump minimum Node.js required version to `10.0.0`.

## 14.0.0 (2019-04-18)

- Updated: `stylelint` to `10.0.0`.
- Updated: `stylelint-scss` to `3.6.0`.
- Updated: `stylelint-config-recommended` to `2.2.0`.

## 13.1.0 (2018-08-19)

- Added: Added SCSS _shared config_ `extends` tests.
- Changed: `stylelint-config-wordpress/scss` now extends [`stylelint-config-recommended-scss`](https://github.com/kristerkari/stylelint-config-recommended-scss) (the net result of this change results in no rule changes for this SCSS config).
- Updated: `stylelint-scss` to `3.3.0`.
- Updated: `stylelint` to `9.5.0`.

## 13.0.0 (2018-03-19)

- Added: stylelint `9.1.3` support.
- Changed: Updated `stylelint` peer dependency version to `^9.1.3`.
- Changed: Improved `no-duplicate-selectors` tests.
- Removed: Jest snapshots.
- Removed: `stylelint < 9.1.3` compatibility.
- Updated: `selector-pseudo-element-colon-notation` to use `double`
- Updated: `stylelint-config-recommended` to `2.1.0`.
- Updated: `stylelint-scss` to `2.1.0`.
- Updated: Bump minimum Node.js required version to `8.9.3`.

## 12.0.0 (2017-07-18)

- Changed: `stylelint-config-wordpress` now extends [`stylelint-config-recommended`](https://github.com/stylelint/stylelint-config-recommended), which turns on the `at-rule-no-unknown`, `block-no-empty`, `comment-no-empty`, `declaration-block-no-ignored-properties`, `declaration-block-no-redundant-longhand-properties`, `font-family-no-duplicate-names`, `media-feature-name-no-unknown`, `no-empty-source` rule. These rules are part of stylelint's [possible errors](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/rules.md#possible-errors) rules.
- Removed: `stylelint-scss < 1.5.1` compatibility.
- Removed: Removed style guide docs.
- Removed: `at-rule-no-unknown` custom `ignoreAtRules` options in `stylelint-config-wordpress/scss` shared config.
- Added: `scss/at-rule-no-unknown` rule in `stylelint-config-wordpress/scss` shared config.
- Added: NodeJS 8.x.x support.
- Added: npm 5.x.x support.
- Added: Jest snapshots to help detect and prevent regressions.

## 11.0.0 (2017-05-16)

- Added: `declaration-property-unit-whitelist` rule to allow `px` and exclude `%` and `em` units in `line-height` values.
- Changed: Relocated repo to https://github.com/WordPress-Coding-Standards.
- Fixed: Include CSS config `at-rule-empty-line-before` rules in SCSS config.

## 10.0.2 (2017-04-29)

- Added: Added `import` to `ignoreAtRules` option in `at-rule-empty-line-before` rule for SCSS config.

## 10.0.1 (2017-04-21)

- Removed: `rule-non-nested-empty-line-before` rule from SCSS config. This rule is deprecated in stylelint v8, the new `rule-empty-line-before` rule already exists in the primary config.

## 10.0.0 (2017-04-21)

- Added: `scss/selector-no-redundant-nesting-selector` rule in `stylelint-config-wordpress/scss` shared config.
- Added: `selector-no-empty` rule.
- Added: NodeJS 7.x.x support
- Fixed: Added `stylelint-scss` plugin @if/@else placement rules.
- Fixed: Ignore `relative` keyword names in `font-weight-notation` rule.
- Fixed: Ignore proprietary `DXImageTransform.Microsoft` MS filters
- Fixed: Removed `@debug` from `ignoreAtRules` array of `at-rule-no-unknown` rule in `stylelint-config-wordpress/scss` chared config.
- Deprecated `blockless-group` option for `at-rule-empty-line-before` rule. Use the new `blockless-after-blockless` option instead.
- Deprecated `media-feature-no-missing-punctuation` rule.
- Deprecated `rule-nested-empty-line-before` and `rule-non-nested-empty-line-before` rules. Use the new `rule-empty-line-before` rule instead.
- Deprecated `selector-no-empty` rule.
- Refactor: Switch from AVA to Jest for tests.
- Refactor: Switch from eslint-plugin-ava to eslint-plugin-jest.
- Removed: `stylelint < 7.10.1` compatibility.
- Removed: `stylelint-scss < 1.4.4` compatibility.
- Removed: NodeJS 4.x support, `stylelint` and `stylelint-config-wordpress` now require NodeJS > 6.9.1 LTS or greater

## 9.1.1 (2016-09-30)

- Fixed: Re-releasing failed npmjs.com 9.1.0 release as 9.1.1.

## 9.1.0 (2016-09-30)

- Added: `stylelint-config-wordpress/scss` preset.

## 9.0.0 (2016-09-10)

- Removed: `stylelint < 7.2.0` compatibility.
- Removed: NodeJS 0.12.x support, `stylelint` and `stylelint-config-wordpress` now require NodeJS > 4.2.1 LTS or greater
- Added: `at-rule-no-unknown` rule.
- Added: `selector-attribute-quotes` rule.
- Added: `font-weight-notation` rule.
- Added: `max-line-length` rule.
- Added: `property-no-unknown` rule.
- Added: `selector-class-pattern` rule.
- Added: `selector-id-pattern` rule.
- Deprecated `no-missing-eof-newline` rule. Use the new `no-missing-end-of-source-newline` rule instead.
- Fixed `font-family-name-quotes` test warning message in `values.js`.

## 8.0.0 (2016-06-14)

- Removed: `stylelint < 6.6.0` compatibility.
- Removed: `number-zero-length-no-unit` rule.
- Added: `length-zero-no-unit` rule.
- Added: `value-keyword-case` rule.

## 7.1.1 (2016-05-30)

- Fixed: Re-releasing failed npmjs.com 7.0.0 release as 7.1.1.

## 7.1.0 (2016-05-30)

- Fixed: `font-family-name-quotes` rule deprecated option `double-where-recommended` to new `always-where-recommended` option.
- Fixed: `function-url-quotes` rule deprecated option `none` to new `never` option.
- Removed: `stylelint < 6.5.1` compatibility.
- Changed: Improved tests and documentation.
- Added: `comment-empty-line-before` rule.

## 7.0.0 (2016-05-20)

- Added: `keyframe-declaration-no-important` rule.
- Added: `selector-pseudo-class-no-unknown` rule.
- Added: `selector-pseudo-element-no-unknown` rule.
- Added: `selector-type-no-unknown` rule.

## 6.0.0 (2016-05-17)

- Added: `at-rule-name-space-after` rule.
- Added: `no-extra-semicolons` rule.
- Added: `selector-attribute-operator-space-after` rule.
- Added: `selector-attribute-operator-space-before` rule.
- Added: `selector-max-empty-liness` rule.

## 5.0.0 (2016-04-24)

- Added: `at-rule-name-case` rule.
- Added: `declaration-block-no-duplicate-properties` rule.
- Added: `function-max-empty-lines` rule.
- Added: `function-name-case` rule.
- Added: `property-case` rule.
- Added: `selector-attribute-brackets-space-inside` rule.
- Added: `selector-pseudo-class-case` rule.
- Added: `selector-pseudo-class-parentheses-space-inside` rule.
- Added: `selector-pseudo-element-case` rule.
- Added: `shorthand-property-no-redundant-values` rule.
- Added: `unit-case` rule.
- Added: `unit-no-unknown` rule.

## 4.0.0 (2016-03-25)

- Removed: `stylelint < 5.2.0` compatibility.
- Added: `at-rule-semicolon-newline-after` rule.
- Added: `selector-type-case` rule.

## 3.0.1 (2016-03-10)

- Added: `stylelint` version `^4.5.0` as a peer dependency to `peerDependencies` in `package.json`

## 3.0.0 (2016-03-08)

- Removed: `stylelint < 4.5.0` compatibility.
- Deprecated: `rule-no-shorthand-property-overrides` rule. Use the new `declaration-block-no-shorthand-property-overrides` rule instead.
- Deprecated: `rule-trailing-semicolon` rule. Use the new `declaration-block-trailing-semicolon` rule instead.
- Added: `color-named` rule.
- Added: `declaration-block-no-shorthand-property-overrides` rule.
- Added: `declaration-block-trailing-semicolon` rule.
- Added: `string-no-newline` rule.

## 2.1.0 (2016-03-03)

- Added: `max-empty-lines` rule, limits the number of adjacent empty lines to 2.
- Changed: `rule-nested-empty-line-before` rule option `ignore: ["after-comment"]`.
- Removed all vendor prefixes, lets autoprefixer handle vendor prefixes:
- Removed: `at-rule-no-vendor-prefix`
- Removed: `media-feature-name-no-vendor-prefix`
- Removed: `property-no-vendor-prefix`
- Removed: `selector-no-vendor-prefix`
- Removed: `value-no-vendor-prefix`

## 2.0.2 (2016-02-17)

- Fixed another npmjs.com release issue

## 2.0.1 (2016-02-17)

- Fixed npmjs.com release

## 2.0.0 (2016-02-17)

- Removed: `media-query-parentheses-space-inside` rule.
- Removed: `stylelint < 4.3.4` compatibility.
- Added: `font-family-name-quotes` rule with double quotes where recommended option.
- Added: `media-feature-no-missing-punctuation` rule.
- Added: `no-invalid-double-slash-comments` rule.

## 1.1.1 (2016-01-19)

- Changed: `rule-non-nested-empty-line-before` with option `ignore: ["after-comment"],`.

## 1.1.0 (2016-01-18)

- Added: `selector-pseudo-element-colon-notation` with option `single`

## 1.0.1 (2015-12-11)

- Changed: config syntax.

## 1.0.0 (2015-12-11)

- Removed: `stylelint < 3.0.0` compatibility.
- Changed: renamed the `function-space-after` rule to `function-whitespace-after`.
- Changed: `at-rule-empty-line-before` with option `ignore: ["after-comment"],`.
- Changed: `declaration-colon-space-after` with option `always-single-line`.
- Added: `declaration-colon-newline-after` with option `always-multi-line`.
- Added: `function-linear-gradient-no-nonstandard-direction`.

## 0.2.0 (2015-09-04)

- Fixed: No quotes for URLs -> `"function-url-quotes": [ 2, "none" ]`.

## 0.1.0 (2015-08-01)

Initial release.
22 changes: 22 additions & 0 deletions packages/stylelint-config/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this license file necessary? It looks like a standard one. I have no idea myself, just asking. We don't put copies for "GPL-2.0-or-later" in other packages.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, I'm not sure either. Wondering who would be best to answer this?

At least the license itself says, that it should be included. But the copyright info is actually a bit odd. 🤷🏻‍♂️


Copyright (c) 2015 stylelint

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

57 changes: 57 additions & 0 deletions packages/stylelint-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# stylelint config

[stylelint](https://stylelint.io/) configuration rules to ensure your CSS is compliant with the [WordPress CSS Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/css/).

## Installation

```bash
$ npm install @wordpress/stylelint-config --save-dev
```

## Usage

If you've installed `@wordpress/stylelint-config` locally within your project, just set your `stylelint` config to:

```json
{
"extends": "@wordpress/stylelint-config"
}
```

If you've globally installed `@wordpress/stylelint-config` using the `-g` flag, then you'll need to use the absolute path to `@wordpress/stylelint-config` in your config:

```json
{
"extends": "/absolute/path/to/@wordpress/stylelint-config"
}
```

## Presets

In addition to the default preset, there is also a SCSS preset. This preset extends both `@wordpress/stylelint-config` and [`stylelint-config-recommended-scss`](https://github.com/kristerkari/stylelint-config-recommended-scss).

### SCSS

```json
{
"extends": [ "@wordpress/stylelint-config/scss" ]
}
```

## Extending the config

Simply add a `"rules"` key to your config and add your overrides there.

For example, to change the `indentation` to four spaces and turn off the `number-leading-zero` rule:

```json
{
"extends": "@wordpress/stylelint-config",
"rules": {
"indentation": 4,
"number-leading-zero": null
}
}
```

<br/><br/><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p>
Loading