fix(lint): Add more stylelint rules

This commit is contained in:
Peter deHaan 2022-06-17 13:19:38 -07:00
Родитель 7ee7b688d1
Коммит e6f74e0936
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 653A957633833BD8
3 изменённых файлов: 291 добавлений и 9 удалений

Просмотреть файл

@ -1,10 +1,14 @@
{
"extends": [
"stylelint-config-prettier",
"stylelint-config-recommended-scss"
],
"ignoreFiles": [
"../packages/**/tailwind.out.scss"
],
"extends": "stylelint-config-prettier",
"rules": {
"declaration-empty-line-before": "never",
"no-descending-specificity": null,
"selector-max-id": [
2,
{
@ -12,7 +16,10 @@
"severity": "warning"
}
],
"at-rule-no-unknown": [
"scss/at-extend-no-missing-placeholder": null,
"scss/at-import-partial-extension": null,
"scss/at-rule-no-unknown": [
true,
{
"ignoreAtRules": [

Просмотреть файл

@ -74,8 +74,10 @@
"eslint-plugin-jest": "^24.5.2",
"eslint-plugin-react": "^7.26.1",
"json": "^11.0.0",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2"
"postcss": "^8.4.14",
"stylelint": "^14.9.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-recommended-scss": "^6.0.0"
},
"workspaces": [
"packages/*"

283
yarn.lock
Просмотреть файл

@ -3215,6 +3215,16 @@ __metadata:
languageName: node
linkType: hard
"@csstools/selector-specificity@npm:^2.0.1":
version: 2.0.1
resolution: "@csstools/selector-specificity@npm:2.0.1"
peerDependencies:
postcss: ^8.3
postcss-selector-parser: ^6.0.10
checksum: 08ec92e6746c6c23a8baca12805619e8fec9e41c33376272d6fcc4705fe9e35307d1577c2624e71f6fb3ec2d3188de25806b0e3127efd53e41641c3bf297926d
languageName: node
linkType: hard
"@dannycoates/elliptic@npm:^6.4.2":
version: 6.4.2
resolution: "@dannycoates/elliptic@npm:6.4.2"
@ -14565,7 +14575,7 @@ __metadata:
languageName: node
linkType: hard
"braces@npm:^3.0.1, braces@npm:~3.0.2":
"braces@npm:^3.0.1, braces@npm:^3.0.2, braces@npm:~3.0.2":
version: 3.0.2
resolution: "braces@npm:3.0.2"
dependencies:
@ -16346,6 +16356,13 @@ __metadata:
languageName: node
linkType: hard
"colord@npm:^2.9.2":
version: 2.9.2
resolution: "colord@npm:2.9.2"
checksum: 2aa6a9b3abbce74ba3c563886cfeb433ea0d7df5ad6f4a560005eddab1ddf7c0fc98f39b09b599767a19c86dd3837b77f66f036e479515d4b17347006dbd6d9f
languageName: node
linkType: hard
"colorette@npm:2.0.16, colorette@npm:^2.0.14":
version: 2.0.16
resolution: "colorette@npm:2.0.16"
@ -17248,6 +17265,13 @@ __metadata:
languageName: node
linkType: hard
"css-functions-list@npm:^3.1.0":
version: 3.1.0
resolution: "css-functions-list@npm:3.1.0"
checksum: 8a7c9d4ae57cb2f01500263e65a21372048d359ca7aa6430a32a736fe2a421decfebe45e579124b9a158ec68aba2eadcd733e568495a7698240d9607d31f681b
languageName: node
linkType: hard
"css-has-pseudo@npm:^0.10.0":
version: 0.10.0
resolution: "css-has-pseudo@npm:0.10.0"
@ -20752,6 +20776,19 @@ __metadata:
languageName: node
linkType: hard
"fast-glob@npm:^3.2.11, fast-glob@npm:^3.2.9":
version: 3.2.11
resolution: "fast-glob@npm:3.2.11"
dependencies:
"@nodelib/fs.stat": ^2.0.2
"@nodelib/fs.walk": ^1.2.3
glob-parent: ^5.1.2
merge2: ^1.3.0
micromatch: ^4.0.4
checksum: f473105324a7780a20c06de842e15ddbb41d3cb7e71d1e4fe6e8373204f22245d54f5ab9e2061e6a1c613047345954d29b022e0e76f5c28b1df9858179a0e6d7
languageName: node
linkType: hard
"fast-json-parse@npm:^1.0.3":
version: 1.0.3
resolution: "fast-json-parse@npm:1.0.3"
@ -23226,11 +23263,13 @@ fsevents@~2.1.1:
node-fetch: ^2.6.1
nps: ^5.10.0
pm2: ^5.1.2
postcss: ^8.4.14
prettier: ^2.3.1
replace-in-file: ^6.1.0
semver: ^7.3.5
stylelint: ^13.13.1
stylelint: ^14.9.1
stylelint-config-prettier: ^8.0.2
stylelint-config-recommended-scss: ^6.0.0
languageName: unknown
linkType: soft
@ -23866,6 +23905,20 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"globby@npm:^11.1.0":
version: 11.1.0
resolution: "globby@npm:11.1.0"
dependencies:
array-union: ^2.1.0
dir-glob: ^3.0.1
fast-glob: ^3.2.9
ignore: ^5.2.0
merge2: ^1.4.1
slash: ^3.0.0
checksum: b4be8885e0cfa018fc783792942d53926c35c50b3aefd3fdcfb9d22c627639dc26bd2327a40a0b74b074100ce95bb7187bfeae2f236856aa3de183af7a02aea6
languageName: node
linkType: hard
"globby@npm:^6.1.0":
version: 6.1.0
resolution: "globby@npm:6.1.0"
@ -25286,7 +25339,7 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"html-tags@npm:^3.0.0":
"html-tags@npm:^3.0.0, html-tags@npm:^3.2.0":
version: 3.2.0
resolution: "html-tags@npm:3.2.0"
checksum: a0c9e96ac26c84adad9cc66d15d6711a17f60acda8d987218f1d4cbaacd52864939b230e635cce5a1179f3ddab2a12b9231355617dfbae7945fcfec5e96d2041
@ -25811,6 +25864,13 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"ignore@npm:^5.2.0":
version: 5.2.0
resolution: "ignore@npm:5.2.0"
checksum: 6b1f926792d614f64c6c83da3a1f9c83f6196c2839aa41e1e32dd7b8d174cef2e329d75caabb62cb61ce9dc432f75e67d07d122a037312db7caa73166a1bdb77
languageName: node
linkType: hard
"immediate@npm:~3.0.5":
version: 3.0.6
resolution: "immediate@npm:3.0.6"
@ -26937,6 +26997,13 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"is-plain-object@npm:^5.0.0":
version: 5.0.0
resolution: "is-plain-object@npm:5.0.0"
checksum: e32d27061eef62c0847d303125440a38660517e586f2f3db7c9d179ae5b6674ab0f469d519b2e25c147a1a3bc87156d0d5f4d8821e0ce4a9ee7fe1fcf11ce45c
languageName: node
linkType: hard
"is-potential-custom-element-name@npm:^1.0.1":
version: 1.0.1
resolution: "is-potential-custom-element-name@npm:1.0.1"
@ -29549,6 +29616,13 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"known-css-properties@npm:^0.25.0":
version: 0.25.0
resolution: "known-css-properties@npm:0.25.0"
checksum: 1e6860b9cb8f671fc913f0a94a04c278769d9d8ac69f7975986440ef19825bdc26d8833e59ef7ef7ec3d4984e28e4f73e7bf99b9deb24803841d39135c26a1e6
languageName: node
linkType: hard
"labeled-stream-splicer@npm:^2.0.0":
version: 2.0.2
resolution: "labeled-stream-splicer@npm:2.0.2"
@ -30931,6 +31005,13 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"merge2@npm:^1.4.1":
version: 1.4.1
resolution: "merge2@npm:1.4.1"
checksum: 7268db63ed5169466540b6fb947aec313200bcf6d40c5ab722c22e242f651994619bcd85601602972d3c85bd2cc45a358a4c61937e9f11a061919a1da569b0c2
languageName: node
linkType: hard
"merge@npm:^2.1.1":
version: 2.1.1
resolution: "merge@npm:2.1.1"
@ -30993,6 +31074,16 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"micromatch@npm:^4.0.5":
version: 4.0.5
resolution: "micromatch@npm:4.0.5"
dependencies:
braces: ^3.0.2
picomatch: ^2.3.1
checksum: 02a17b671c06e8fefeeb6ef996119c1e597c942e632a21ef589154f23898c9c6a9858526246abb14f8bca6e77734aa9dcf65476fca47cedfb80d9577d52843fc
languageName: node
linkType: hard
"miller-rabin@npm:^4.0.0":
version: 4.0.1
resolution: "miller-rabin@npm:4.0.1"
@ -32138,6 +32229,15 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"nanoid@npm:^3.3.4":
version: 3.3.4
resolution: "nanoid@npm:3.3.4"
bin:
nanoid: bin/nanoid.cjs
checksum: 2fddd6dee994b7676f008d3ffa4ab16035a754f4bb586c61df5a22cf8c8c94017aadd360368f47d653829e0569a92b129979152ff97af23a558331e47e37cd9c
languageName: node
linkType: hard
"nanomatch@npm:^1.2.9":
version: 1.2.13
resolution: "nanomatch@npm:1.2.13"
@ -34268,7 +34368,7 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"picomatch@npm:^2.3.0":
"picomatch@npm:^2.3.0, picomatch@npm:^2.3.1":
version: 2.3.1
resolution: "picomatch@npm:2.3.1"
checksum: 050c865ce81119c4822c45d3c84f1ced46f93a0126febae20737bd05ca20589c564d6e9226977df859ed5e03dc73f02584a2b0faad36e896936238238b0446cf
@ -35567,6 +35667,15 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"postcss-safe-parser@npm:^6.0.0":
version: 6.0.0
resolution: "postcss-safe-parser@npm:6.0.0"
peerDependencies:
postcss: ^8.3.3
checksum: 06c733eaad83a3954367e7ee02ddfe3796e7a44d4299ccf9239f40964a4daac153c7d77613f32964b5a86c0c6c2f6167738f31d578b73b17cb69d0c4446f0ebe
languageName: node
linkType: hard
"postcss-sass@npm:^0.4.4":
version: 0.4.4
resolution: "postcss-sass@npm:0.4.4"
@ -35586,6 +35695,15 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"postcss-scss@npm:^4.0.2":
version: 4.0.4
resolution: "postcss-scss@npm:4.0.4"
peerDependencies:
postcss: ^8.3.3
checksum: b4f240dd5eeb0c21738b673d9caf9a06b9a6db665a5b1c815ee4ca10c4c74a67c54f11cd5a4970dea98475cbb9e6d846e05dd3e48924189c2ecbf1f50cd44aa4
languageName: node
linkType: hard
"postcss-selector-matches@npm:^4.0.0":
version: 4.0.0
resolution: "postcss-selector-matches@npm:4.0.0"
@ -35638,6 +35756,16 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"postcss-selector-parser@npm:^6.0.10":
version: 6.0.10
resolution: "postcss-selector-parser@npm:6.0.10"
dependencies:
cssesc: ^3.0.0
util-deprecate: ^1.0.2
checksum: 46afaa60e3d1998bd7adf6caa374baf857cc58d3ff944e29459c9a9e4680a7fe41597bd5b755fc81d7c388357e9bf67c0251d047c640a09f148e13606b8a8608
languageName: node
linkType: hard
"postcss-svgo@npm:^4.0.2":
version: 4.0.2
resolution: "postcss-svgo@npm:4.0.2"
@ -35684,6 +35812,13 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"postcss-value-parser@npm:^4.2.0":
version: 4.2.0
resolution: "postcss-value-parser@npm:4.2.0"
checksum: 819ffab0c9d51cf0acbabf8996dffbfafbafa57afc0e4c98db88b67f2094cb44488758f06e5da95d7036f19556a4a732525e84289a425f4f6fd8e412a9d7442f
languageName: node
linkType: hard
"postcss-values-parser@npm:^2.0.0, postcss-values-parser@npm:^2.0.1":
version: 2.0.1
resolution: "postcss-values-parser@npm:2.0.1"
@ -35750,6 +35885,17 @@ fsevents@~2.1.1:
languageName: node
linkType: hard
"postcss@npm:^8.4.14":
version: 8.4.14
resolution: "postcss@npm:8.4.14"
dependencies:
nanoid: ^3.3.4
picocolors: ^1.0.0
source-map-js: ^1.0.2
checksum: fe58766ff32e4becf65a7d57678995cfd239df6deed2fe0557f038b47c94e4132e7e5f68b5aa820c13adfec32e523b693efaeb65798efb995ce49ccd83953816
languageName: node
linkType: hard
"prebuild-install@npm:^7.1.0":
version: 7.1.0
resolution: "prebuild-install@npm:7.1.0"
@ -39521,7 +39667,7 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"signal-exit@npm:^3.0.6":
"signal-exit@npm:^3.0.6, signal-exit@npm:^3.0.7":
version: 3.0.7
resolution: "signal-exit@npm:3.0.7"
checksum: a2f098f247adc367dffc27845853e9959b9e88b01cb301658cfe4194352d8d2bb32e18467c786a7fe15f1d44b233ea35633d076d5e737870b7139949d1ab6318
@ -39836,6 +39982,13 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"source-map-js@npm:^1.0.2":
version: 1.0.2
resolution: "source-map-js@npm:1.0.2"
checksum: c049a7fc4deb9a7e9b481ae3d424cc793cb4845daa690bc5a05d428bf41bf231ced49b4cf0c9e77f9d42fdb3d20d6187619fc586605f5eabe995a316da8d377c
languageName: node
linkType: hard
"source-map-loader@npm:^1.1.1":
version: 1.1.1
resolution: "source-map-loader@npm:1.1.1"
@ -40849,6 +41002,43 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"stylelint-config-recommended-scss@npm:^6.0.0":
version: 6.0.0
resolution: "stylelint-config-recommended-scss@npm:6.0.0"
dependencies:
postcss-scss: ^4.0.2
stylelint-config-recommended: ^7.0.0
stylelint-scss: ^4.0.0
peerDependencies:
stylelint: ^14.4.0
checksum: a7254f4e8fc8c25990ad0fade6c3a7e663e867d4f4f92175919de26315a7283e7dd7dc10ef5f7f3a2f7fb76b3aeb5b428c4f3417b2d526868bb9db40c85270b3
languageName: node
linkType: hard
"stylelint-config-recommended@npm:^7.0.0":
version: 7.0.0
resolution: "stylelint-config-recommended@npm:7.0.0"
peerDependencies:
stylelint: ^14.4.0
checksum: 9a60a59effb7565314d6001779a31228d5713b4d13e05e991e6da5f9d0784aacf55bc0fe217010e257a79136753a22ae61e309fb982367ebd4de3316f37eb821
languageName: node
linkType: hard
"stylelint-scss@npm:^4.0.0":
version: 4.2.0
resolution: "stylelint-scss@npm:4.2.0"
dependencies:
lodash: ^4.17.21
postcss-media-query-parser: ^0.2.3
postcss-resolve-nested-selector: ^0.1.1
postcss-selector-parser: ^6.0.6
postcss-value-parser: ^4.1.0
peerDependencies:
stylelint: ^14.5.1
checksum: 1fb9e850fc7301c3481f7df193d9dda520a0d54a56284ffda2de5766432aebd4205daa5c3002e784548ba26d5d1dee402c162bbb46beb6377a40d75abc409a3d
languageName: node
linkType: hard
"stylelint@npm:^13.13.1":
version: 13.13.1
resolution: "stylelint@npm:13.13.1"
@ -40907,6 +41097,56 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"stylelint@npm:^14.9.1":
version: 14.9.1
resolution: "stylelint@npm:14.9.1"
dependencies:
"@csstools/selector-specificity": ^2.0.1
balanced-match: ^2.0.0
colord: ^2.9.2
cosmiconfig: ^7.0.1
css-functions-list: ^3.1.0
debug: ^4.3.4
execall: ^2.0.0
fast-glob: ^3.2.11
fastest-levenshtein: ^1.0.12
file-entry-cache: ^6.0.1
get-stdin: ^8.0.0
global-modules: ^2.0.0
globby: ^11.1.0
globjoin: ^0.1.4
html-tags: ^3.2.0
ignore: ^5.2.0
import-lazy: ^4.0.0
imurmurhash: ^0.1.4
is-plain-object: ^5.0.0
known-css-properties: ^0.25.0
mathml-tag-names: ^2.1.3
meow: ^9.0.0
micromatch: ^4.0.5
normalize-path: ^3.0.0
picocolors: ^1.0.0
postcss: ^8.4.14
postcss-media-query-parser: ^0.2.3
postcss-resolve-nested-selector: ^0.1.1
postcss-safe-parser: ^6.0.0
postcss-selector-parser: ^6.0.10
postcss-value-parser: ^4.2.0
resolve-from: ^5.0.0
string-width: ^4.2.3
strip-ansi: ^6.0.1
style-search: ^0.1.0
supports-hyperlinks: ^2.2.0
svg-tags: ^1.0.0
table: ^6.8.0
v8-compile-cache: ^2.3.0
write-file-atomic: ^4.0.1
bin:
stylelint: bin/stylelint.js
checksum: 53c65c9a1d0009ba15847905afc34efc2f4820edc989f8c2aeecf6b7873b2de3040a1969761ef0983caca2e773947482962df5c25216cb9e3f21af241675bb50
languageName: node
linkType: hard
"stylis-rule-sheet@npm:^0.0.10":
version: 0.0.10
resolution: "stylis-rule-sheet@npm:0.0.10"
@ -41088,6 +41328,16 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"supports-hyperlinks@npm:^2.2.0":
version: 2.2.0
resolution: "supports-hyperlinks@npm:2.2.0"
dependencies:
has-flag: ^4.0.0
supports-color: ^7.0.0
checksum: aef04fb41f4a67f1bc128f7c3e88a81b6cf2794c800fccf137006efe5bafde281da3e42e72bf9206c2fcf42e6438f37e3a820a389214d0a88613ca1f2d36076a
languageName: node
linkType: hard
"svg-parser@npm:^2.0.2":
version: 2.0.4
resolution: "svg-parser@npm:2.0.4"
@ -41250,6 +41500,19 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"table@npm:^6.8.0":
version: 6.8.0
resolution: "table@npm:6.8.0"
dependencies:
ajv: ^8.0.1
lodash.truncate: ^4.4.2
slice-ansi: ^4.0.0
string-width: ^4.2.3
strip-ansi: ^6.0.1
checksum: 5b07fe462ee03d2e1fac02cbb578efd2e0b55ac07e3d3db2e950aa9570ade5a4a2b8d3c15e9f25c89e4e50b646bc4269934601ee1eef4ca7968ad31960977690
languageName: node
linkType: hard
"tailwindcss-dir@npm:^4.0.0":
version: 4.0.0
resolution: "tailwindcss-dir@npm:4.0.0"
@ -44805,6 +45068,16 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"write-file-atomic@npm:^4.0.1":
version: 4.0.1
resolution: "write-file-atomic@npm:4.0.1"
dependencies:
imurmurhash: ^0.1.4
signal-exit: ^3.0.7
checksum: 8f780232533ca6223c63c9b9c01c4386ca8c625ebe5017a9ed17d037aec19462ae17109e0aa155bff5966ee4ae7a27b67a99f55caf3f32ffd84155e9da3929fc
languageName: node
linkType: hard
"write@npm:1.0.3":
version: 1.0.3
resolution: "write@npm:1.0.3"