From 04115dbe5fae5835d8a9c938b6aedef223d00fdc Mon Sep 17 00:00:00 2001 From: sushi-chaaaan Date: Sun, 21 Apr 2024 13:35:48 +0900 Subject: [PATCH 1/9] fix: add outdir in prettier --- packages/prettier-config/tsup.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/prettier-config/tsup.config.ts b/packages/prettier-config/tsup.config.ts index 112d2244..992fac74 100644 --- a/packages/prettier-config/tsup.config.ts +++ b/packages/prettier-config/tsup.config.ts @@ -6,6 +6,7 @@ export default defineConfig({ entry: ["./index.ts", "./astro.ts"], // バンドルするファイルを指定 format: ["cjs", "esm"], // 出力する形式を指定 minify: process.env.NODE_ENV === "production", + outDir: "dist", sourcemap: false, // soucemapを出力するか splitting: false, // バンドルしないで分割するか treeshake: true, From 99c813a7069f57e7f481979e6b892038c8e3771a Mon Sep 17 00:00:00 2001 From: sushi-chaaaan Date: Sun, 21 Apr 2024 15:46:08 +0900 Subject: [PATCH 2/9] fix: remove old stylelint-a11y --- packages/stylelint-config/package.json | 2 +- pnpm-lock.yaml | 15 +++------------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/packages/stylelint-config/package.json b/packages/stylelint-config/package.json index 214f9a25..3d973297 100644 --- a/packages/stylelint-config/package.json +++ b/packages/stylelint-config/package.json @@ -28,10 +28,10 @@ }, "devDependencies": { "@double-great/stylelint-a11y": "^3.0.2", + "@types/node": "^20.12.7", "@virtual-live-lab/eslint-config": "workspace:^", "@virtual-live-lab/tsconfig": "workspace:^", "postcss-html": "^1.6.0", - "stylelint-a11y": "^1.2.3", "stylelint-config-html": "^1.1.0", "stylelint-config-recess-order": "^5.0.1", "stylelint-config-sass-guidelines": "^11.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fad27eb4..621e61e0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -137,6 +137,9 @@ importers: '@double-great/stylelint-a11y': specifier: ^3.0.2 version: 3.0.2(stylelint@16.3.1) + '@types/node': + specifier: ^20.12.7 + version: 20.12.7 '@virtual-live-lab/eslint-config': specifier: workspace:^ version: link:../eslint-config @@ -146,9 +149,6 @@ importers: postcss-html: specifier: ^1.6.0 version: 1.6.0 - stylelint-a11y: - specifier: ^1.2.3 - version: 1.2.3(stylelint@16.3.1) stylelint-config-html: specifier: ^1.1.0 version: 1.1.0(postcss-html@1.6.0)(stylelint@16.3.1) @@ -4229,15 +4229,6 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - /stylelint-a11y@1.2.3(stylelint@16.3.1): - resolution: {integrity: sha512-S/iiKFUsYBfa4suxP0pYQqoPB9R1+SnvxVuzHHlz9al0IWxLZzXlnZEqEez0zNOhVh5iO3rATUmDnbZE5wm/pQ==} - engines: {node: '>=8.7.0'} - peerDependencies: - stylelint: ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 - dependencies: - stylelint: 16.3.1(typescript@5.4.5) - dev: true - /stylelint-config-html@1.1.0(postcss-html@1.6.0)(stylelint@16.3.1): resolution: {integrity: sha512-IZv4IVESjKLumUGi+HWeb7skgO6/g4VMuAYrJdlqQFndgbj6WJAXPhaysvBiXefX79upBdQVumgYcdd17gCpjQ==} engines: {node: ^12 || >=14} From 5df4729ff66a8c5ce3737159ece27a9cac302140 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 21 Apr 2024 13:43:07 +0900 Subject: [PATCH 3/9] Version Packages (#17) Co-authored-by: github-actions[bot] --- .changeset/witty-eyes-care.md | 8 -------- packages/eslint-config/CHANGELOG.md | 6 ++++++ packages/eslint-config/package.json | 2 +- packages/prettier-config/CHANGELOG.md | 6 ++++++ packages/prettier-config/package.json | 2 +- packages/stylelint-config/CHANGELOG.md | 6 ++++++ packages/stylelint-config/package.json | 2 +- packages/tsconfig/CHANGELOG.md | 6 ++++++ packages/tsconfig/package.json | 2 +- 9 files changed, 28 insertions(+), 12 deletions(-) delete mode 100644 .changeset/witty-eyes-care.md diff --git a/.changeset/witty-eyes-care.md b/.changeset/witty-eyes-care.md deleted file mode 100644 index 274b8116..00000000 --- a/.changeset/witty-eyes-care.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@virtual-live-lab/stylelint-config": patch -"@virtual-live-lab/prettier-config": patch -"@virtual-live-lab/eslint-config": patch -"@virtual-live-lab/tsconfig": patch ---- - -Add experimental support for Astro diff --git a/packages/eslint-config/CHANGELOG.md b/packages/eslint-config/CHANGELOG.md index c7aaf20f..4b7ad847 100644 --- a/packages/eslint-config/CHANGELOG.md +++ b/packages/eslint-config/CHANGELOG.md @@ -1,5 +1,11 @@ # @virtual-live-lab/eslint-config +## 1.0.2 + +### Patch Changes + +- [#16](https://github.com/VirtualLiveLab/js-config/pull/16) [`b5b3a04`](https://github.com/VirtualLiveLab/js-config/commit/b5b3a044301048e3958c9b6c6fffa244b8ee7af1) Thanks [@sushi-chaaaan](https://github.com/sushi-chaaaan)! - Add experimental support for Astro + ## 1.0.1 ### Patch Changes diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 9219f45e..978c77bc 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@virtual-live-lab/eslint-config", - "version": "1.0.1", + "version": "1.0.2", "description": "ESLint configuration for Virtual Live Lab", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/packages/prettier-config/CHANGELOG.md b/packages/prettier-config/CHANGELOG.md index d914db6f..d2794996 100644 --- a/packages/prettier-config/CHANGELOG.md +++ b/packages/prettier-config/CHANGELOG.md @@ -1,5 +1,11 @@ # @virtual-live-lab/prettier-config +## 1.0.2 + +### Patch Changes + +- [#16](https://github.com/VirtualLiveLab/js-config/pull/16) [`b5b3a04`](https://github.com/VirtualLiveLab/js-config/commit/b5b3a044301048e3958c9b6c6fffa244b8ee7af1) Thanks [@sushi-chaaaan](https://github.com/sushi-chaaaan)! - Add experimental support for Astro + ## 1.0.1 ### Patch Changes diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index 25d5ce47..35f506a9 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -1,6 +1,6 @@ { "name": "@virtual-live-lab/prettier-config", - "version": "1.0.1", + "version": "1.0.2", "description": "Prettier configuration for Virtual Live Lab", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/packages/stylelint-config/CHANGELOG.md b/packages/stylelint-config/CHANGELOG.md index 6b613c3a..bd8b1a30 100644 --- a/packages/stylelint-config/CHANGELOG.md +++ b/packages/stylelint-config/CHANGELOG.md @@ -1,5 +1,11 @@ # @virtual-live-lab/stylelint-config +## 1.0.2 + +### Patch Changes + +- [#16](https://github.com/VirtualLiveLab/js-config/pull/16) [`b5b3a04`](https://github.com/VirtualLiveLab/js-config/commit/b5b3a044301048e3958c9b6c6fffa244b8ee7af1) Thanks [@sushi-chaaaan](https://github.com/sushi-chaaaan)! - Add experimental support for Astro + ## 1.0.1 ### Patch Changes diff --git a/packages/stylelint-config/package.json b/packages/stylelint-config/package.json index 3d973297..2dc9877d 100644 --- a/packages/stylelint-config/package.json +++ b/packages/stylelint-config/package.json @@ -1,6 +1,6 @@ { "name": "@virtual-live-lab/stylelint-config", - "version": "1.0.1", + "version": "1.0.2", "description": "Stylelint configuration for Virtual Live Lab", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/packages/tsconfig/CHANGELOG.md b/packages/tsconfig/CHANGELOG.md index a0da3c15..ef189593 100644 --- a/packages/tsconfig/CHANGELOG.md +++ b/packages/tsconfig/CHANGELOG.md @@ -1,5 +1,11 @@ # @virtual-live-lab/tsconfig +## 1.0.3 + +### Patch Changes + +- [#16](https://github.com/VirtualLiveLab/js-config/pull/16) [`b5b3a04`](https://github.com/VirtualLiveLab/js-config/commit/b5b3a044301048e3958c9b6c6fffa244b8ee7af1) Thanks [@sushi-chaaaan](https://github.com/sushi-chaaaan)! - Add experimental support for Astro + ## 1.0.2 ### Patch Changes diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index 72cb1eaa..99a71a96 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -1,6 +1,6 @@ { "name": "@virtual-live-lab/tsconfig", - "version": "1.0.2", + "version": "1.0.3", "description": "TypeScript configuration for Virtual Live Lab", "files": [ "*.json" From 839ef7a8dd65f38d069b4285272fab155074c620 Mon Sep 17 00:00:00 2001 From: Kentaro Suzuki Date: Sun, 21 Apr 2024 16:29:23 +0900 Subject: [PATCH 4/9] fix/stylelint deps (#18) * fix: mark stylelint rules as dependencies * chore: changeset --- .changeset/nice-planes-mate.md | 5 ++ packages/stylelint-config/package.json | 9 ++-- pnpm-lock.yaml | 64 +++++++++++--------------- 3 files changed, 37 insertions(+), 41 deletions(-) create mode 100644 .changeset/nice-planes-mate.md diff --git a/.changeset/nice-planes-mate.md b/.changeset/nice-planes-mate.md new file mode 100644 index 00000000..5380df93 --- /dev/null +++ b/.changeset/nice-planes-mate.md @@ -0,0 +1,5 @@ +--- +"@virtual-live-lab/stylelint-config": patch +--- + +Mark stylelint rules as dependency diff --git a/packages/stylelint-config/package.json b/packages/stylelint-config/package.json index 2dc9877d..cfb2ebdb 100644 --- a/packages/stylelint-config/package.json +++ b/packages/stylelint-config/package.json @@ -24,9 +24,6 @@ "stylelint": "^16.3.1" }, "dependencies": { - "stylelint": "^16.3.1" - }, - "devDependencies": { "@double-great/stylelint-a11y": "^3.0.2", "@types/node": "^20.12.7", "@virtual-live-lab/eslint-config": "workspace:^", @@ -38,7 +35,11 @@ "stylelint-config-standard": "^36.0.0", "stylelint-config-standard-scss": "^13.1.0", "stylelint-declaration-block-no-ignored-properties": "^2.8.0", - "stylelint-value-no-unknown-custom-properties": "^6.0.1", + "stylelint-value-no-unknown-custom-properties": "^6.0.1" + }, + "devDependencies": { + "@virtual-live-lab/eslint-config": "workspace:^", + "@virtual-live-lab/tsconfig": "workspace:^", "tsup": "^8.0.2" }, "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 621e61e0..ae9b55eb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -130,10 +130,6 @@ importers: packages/stylelint-config: dependencies: - stylelint: - specifier: ^16.3.1 - version: 16.3.1(typescript@5.4.5) - devDependencies: '@double-great/stylelint-a11y': specifier: ^3.0.2 version: 3.0.2(stylelint@16.3.1) @@ -149,6 +145,9 @@ importers: postcss-html: specifier: ^1.6.0 version: 1.6.0 + stylelint: + specifier: ^16.3.1 + version: 16.3.1(typescript@5.4.5) stylelint-config-html: specifier: ^1.1.0 version: 1.1.0(postcss-html@1.6.0)(stylelint@16.3.1) @@ -170,6 +169,7 @@ importers: stylelint-value-no-unknown-custom-properties: specifier: ^6.0.1 version: 6.0.1(stylelint@16.3.1) + devDependencies: tsup: specifier: ^8.0.2 version: 8.0.2(postcss@8.4.38)(typescript@5.4.5) @@ -470,7 +470,6 @@ packages: dependencies: postcss: 8.4.38 stylelint: 16.3.1(typescript@5.4.5) - dev: true /@dual-bundle/import-meta-resolve@4.0.0: resolution: {integrity: sha512-ZKXyJeFAzcpKM2kk8ipoGIPUqx9BX52omTGnfwjJvxOCaZTM2wtDK7zN0aIgPRbT9XYAlha0HtmZ+XKteuh0Gw==} @@ -1012,7 +1011,6 @@ packages: resolution: {integrity: sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==} dependencies: undici-types: 5.26.5 - dev: true /@types/normalize-package-data@2.4.4: resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -1879,18 +1877,18 @@ packages: domelementtype: 2.3.0 domhandler: 5.0.3 entities: 4.5.0 - dev: true + dev: false /domelementtype@2.3.0: resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} - dev: true + dev: false /domhandler@5.0.3: resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} engines: {node: '>= 4'} dependencies: domelementtype: 2.3.0 - dev: true + dev: false /domutils@3.1.0: resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==} @@ -1898,7 +1896,7 @@ packages: dom-serializer: 2.0.0 domelementtype: 2.3.0 domhandler: 5.0.3 - dev: true + dev: false /dotenv@8.6.0: resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==} @@ -1927,7 +1925,6 @@ packages: /entities@4.5.0: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} - dev: true /env-paths@2.2.1: resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} @@ -2520,7 +2517,6 @@ packages: /function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - dev: true /function.prototype.name@1.1.6: resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} @@ -2708,7 +2704,6 @@ packages: engines: {node: '>= 0.4'} dependencies: function-bind: 1.1.2 - dev: true /hosted-git-info@2.8.9: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} @@ -2725,7 +2720,7 @@ packages: domhandler: 5.0.3 domutils: 3.1.0 entities: 4.5.0 - dev: true + dev: false /human-id@1.0.2: resolution: {integrity: sha512-UNopramDEhHJD+VR+ehk8rOslwSfByxPIZyJRfV739NDhN5LF1fa1MqnzKm2lGTQRjNrjK19Q5fhkgIfjlVUKw==} @@ -2832,7 +2827,6 @@ packages: resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} dependencies: hasown: 2.0.2 - dev: true /is-data-view@1.0.1: resolution: {integrity: sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==} @@ -3027,7 +3021,7 @@ packages: /js-tokens@8.0.3: resolution: {integrity: sha512-UfJMcSJc+SEXEl9lH/VLHSZbThQyLpw1vLO1Lb+j4RWDvG3N2f7yj3PVQA3cmkTBNldJ9eFnM+xEXxHIXrYiJw==} - dev: true + dev: false /js-yaml@3.14.1: resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} @@ -3090,7 +3084,7 @@ packages: /known-css-properties@0.29.0: resolution: {integrity: sha512-Ne7wqW7/9Cz54PDt4I3tcV+hAyat8ypyOGzYRJQfdxnnjeWsTxt1cy8pjvvKeI5kfXuyvULyeeAvwvvtAX3ayQ==} - dev: true + dev: false /known-css-properties@0.30.0: resolution: {integrity: sha512-VSWXYUnsPu9+WYKkfmJyLKtIvaRJi1kXUqVmBACORXZQxT5oZDsoZ2vQP+bQFDnWtpI/4eq3MLoRMjI2fnLzTQ==} @@ -3550,7 +3544,6 @@ packages: /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - dev: true /path-scurry@1.10.2: resolution: {integrity: sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==} @@ -3613,7 +3606,7 @@ packages: js-tokens: 8.0.3 postcss: 8.4.38 postcss-safe-parser: 6.0.0(postcss@8.4.38) - dev: true + dev: false /postcss-import@15.1.0(postcss@8.4.38): resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==} @@ -3656,7 +3649,7 @@ packages: /postcss-media-query-parser@0.2.3: resolution: {integrity: sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==} - dev: true + dev: false /postcss-nested@6.0.1(postcss@8.4.38): resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==} @@ -3678,7 +3671,7 @@ packages: postcss: ^8.3.3 dependencies: postcss: 8.4.38 - dev: true + dev: false /postcss-safe-parser@7.0.0(postcss@8.4.38): resolution: {integrity: sha512-ovehqRNVCpuFzbXoTb4qLtyzK3xn3t/CUBxOs8LsnQjQrShaB4lKiHoVqY8ANaC0hBMHq5QVWk77rwGklFUDrg==} @@ -3695,7 +3688,7 @@ packages: postcss: ^8.4.29 dependencies: postcss: 8.4.38 - dev: true + dev: false /postcss-selector-parser@6.0.16: resolution: {integrity: sha512-A0RVJrX+IUkVZbW3ClroRWurercFhieevHB38sr2+l9eUClMqome3LmEmnhlNy+5Mr2EYN6B2Kaw9wYdd+VHiw==} @@ -3710,7 +3703,7 @@ packages: postcss: ^8.4.20 dependencies: postcss: 8.4.38 - dev: true + dev: false /postcss-value-parser@4.2.0: resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} @@ -3890,7 +3883,6 @@ packages: is-core-module: 2.13.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - dev: true /resolve@2.0.0-next.5: resolution: {integrity: sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==} @@ -4238,7 +4230,7 @@ packages: dependencies: postcss-html: 1.6.0 stylelint: 16.3.1(typescript@5.4.5) - dev: true + dev: false /stylelint-config-recess-order@5.0.1(stylelint@16.3.1): resolution: {integrity: sha512-rKbGkoa3h0rINrGln9TFVowvSCLgPJC5O0EuPiqlqWcJMb1lImEtXktcjFCVz+hwtSUiHD3ijJc3vP9muFOgJg==} @@ -4247,7 +4239,7 @@ packages: dependencies: stylelint: 16.3.1(typescript@5.4.5) stylelint-order: 6.0.4(stylelint@16.3.1) - dev: true + dev: false /stylelint-config-recommended-scss@14.0.0(postcss@8.4.38)(stylelint@16.3.1): resolution: {integrity: sha512-HDvpoOAQ1RpF+sPbDOT2Q2/YrBDEJDnUymmVmZ7mMCeNiFSdhRdyGEimBkz06wsN+HaFwUh249gDR+I9JR7Onw==} @@ -4264,7 +4256,7 @@ packages: stylelint: 16.3.1(typescript@5.4.5) stylelint-config-recommended: 14.0.0(stylelint@16.3.1) stylelint-scss: 6.2.1(stylelint@16.3.1) - dev: true + dev: false /stylelint-config-recommended@14.0.0(stylelint@16.3.1): resolution: {integrity: sha512-jSkx290CglS8StmrLp2TxAppIajzIBZKYm3IxT89Kg6fGlxbPiTiyH9PS5YUuVAFwaJLl1ikiXX0QWjI0jmgZQ==} @@ -4273,7 +4265,7 @@ packages: stylelint: ^16.0.0 dependencies: stylelint: 16.3.1(typescript@5.4.5) - dev: true + dev: false /stylelint-config-sass-guidelines@11.1.0(postcss@8.4.38)(stylelint@16.3.1): resolution: {integrity: sha512-mVE3UmN8MlshK4Gb3eYk6f8tw9DkQ9yjMF4W9krlmpaNZpSXOdh13AL0sU7l/9l4Pnpt4KMobNNIRI0tJl56Cw==} @@ -4286,7 +4278,7 @@ packages: postcss-scss: 4.0.9(postcss@8.4.38) stylelint: 16.3.1(typescript@5.4.5) stylelint-scss: 6.2.1(stylelint@16.3.1) - dev: true + dev: false /stylelint-config-standard-scss@13.1.0(postcss@8.4.38)(stylelint@16.3.1): resolution: {integrity: sha512-Eo5w7/XvwGHWkeGLtdm2FZLOMYoZl1omP2/jgFCXyl2x5yNz7/8vv4Tj6slHvMSSUNTaGoam/GAZ0ZhukvalfA==} @@ -4302,7 +4294,7 @@ packages: stylelint: 16.3.1(typescript@5.4.5) stylelint-config-recommended-scss: 14.0.0(postcss@8.4.38)(stylelint@16.3.1) stylelint-config-standard: 36.0.0(stylelint@16.3.1) - dev: true + dev: false /stylelint-config-standard@36.0.0(stylelint@16.3.1): resolution: {integrity: sha512-3Kjyq4d62bYFp/Aq8PMKDwlgUyPU4nacXsjDLWJdNPRUgpuxALu1KnlAHIj36cdtxViVhXexZij65yM0uNIHug==} @@ -4312,7 +4304,7 @@ packages: dependencies: stylelint: 16.3.1(typescript@5.4.5) stylelint-config-recommended: 14.0.0(stylelint@16.3.1) - dev: true + dev: false /stylelint-declaration-block-no-ignored-properties@2.8.0(stylelint@16.3.1): resolution: {integrity: sha512-Ws8Cav7Y+SPN0JsV407LrnNXWOrqGjxShf+37GBtnU/C58Syve9c0+I/xpLcFOosST3ternykn3Lp77f3ITnFw==} @@ -4321,7 +4313,7 @@ packages: stylelint: ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: stylelint: 16.3.1(typescript@5.4.5) - dev: true + dev: false /stylelint-order@6.0.4(stylelint@16.3.1): resolution: {integrity: sha512-0UuKo4+s1hgQ/uAxlYU4h0o0HS4NiQDud0NAUNI0aa8FJdmYHA5ZZTFHiV5FpmE3071e9pZx5j0QpVJW5zOCUA==} @@ -4331,7 +4323,7 @@ packages: postcss: 8.4.38 postcss-sorting: 8.0.2(postcss@8.4.38) stylelint: 16.3.1(typescript@5.4.5) - dev: true + dev: false /stylelint-scss@6.2.1(stylelint@16.3.1): resolution: {integrity: sha512-ZoGLbVb1keZYRVGQlhB8G6sZOoNqw61whzzzGFWp05N12ErqLFfBv3JPrXiMLZaW98sBS7K/vUQhRnvUj4vwdw==} @@ -4345,7 +4337,7 @@ packages: postcss-selector-parser: 6.0.16 postcss-value-parser: 4.2.0 stylelint: 16.3.1(typescript@5.4.5) - dev: true + dev: false /stylelint-value-no-unknown-custom-properties@6.0.1(stylelint@16.3.1): resolution: {integrity: sha512-N60PTdaTknB35j6D4FhW0GL2LlBRV++bRpXMMldWMQZ240yFQaoltzlLY4lXXs7Z0J5mNUYZQ/gjyVtU2DhCMA==} @@ -4356,7 +4348,7 @@ packages: postcss-value-parser: 4.2.0 resolve: 1.22.8 stylelint: 16.3.1(typescript@5.4.5) - dev: true + dev: false /stylelint@16.3.1(typescript@5.4.5): resolution: {integrity: sha512-/JOwQnBvxEKOT2RtNgGpBVXnCSMBgKOL2k7w0K52htwCyJls4+cHvc4YZgXlVoAZS9QJd2DgYAiRnja96pTgxw==} @@ -4448,7 +4440,6 @@ packages: /supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - dev: true /svg-tags@1.0.0: resolution: {integrity: sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==} @@ -4745,7 +4736,6 @@ packages: /undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - dev: true /unicorn-magic@0.1.0: resolution: {integrity: sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==} From f16659c3a7b6865001af894a54636da9585c8b9c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 21 Apr 2024 16:30:03 +0900 Subject: [PATCH 5/9] Version Packages (#19) Co-authored-by: github-actions[bot] --- .changeset/nice-planes-mate.md | 5 ----- packages/stylelint-config/CHANGELOG.md | 6 ++++++ packages/stylelint-config/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/nice-planes-mate.md diff --git a/.changeset/nice-planes-mate.md b/.changeset/nice-planes-mate.md deleted file mode 100644 index 5380df93..00000000 --- a/.changeset/nice-planes-mate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@virtual-live-lab/stylelint-config": patch ---- - -Mark stylelint rules as dependency diff --git a/packages/stylelint-config/CHANGELOG.md b/packages/stylelint-config/CHANGELOG.md index bd8b1a30..8aac1145 100644 --- a/packages/stylelint-config/CHANGELOG.md +++ b/packages/stylelint-config/CHANGELOG.md @@ -1,5 +1,11 @@ # @virtual-live-lab/stylelint-config +## 1.0.3 + +### Patch Changes + +- [#18](https://github.com/VirtualLiveLab/js-config/pull/18) [`01ee0df`](https://github.com/VirtualLiveLab/js-config/commit/01ee0df29e1718206fd18c164a8e365e68b79b16) Thanks [@sushi-chaaaan](https://github.com/sushi-chaaaan)! - Mark stylelint rules as dependency + ## 1.0.2 ### Patch Changes diff --git a/packages/stylelint-config/package.json b/packages/stylelint-config/package.json index cfb2ebdb..7aa19201 100644 --- a/packages/stylelint-config/package.json +++ b/packages/stylelint-config/package.json @@ -1,6 +1,6 @@ { "name": "@virtual-live-lab/stylelint-config", - "version": "1.0.2", + "version": "1.0.3", "description": "Stylelint configuration for Virtual Live Lab", "main": "./dist/index.js", "module": "./dist/index.mjs", From efc757517e4c2f7b2dba257c062713a15e90f95c Mon Sep 17 00:00:00 2001 From: Kentaro Suzuki Date: Sun, 21 Apr 2024 20:08:08 +0900 Subject: [PATCH 6/9] fix/stylelint (#20) * chore: use stylelint at root * fix: stylelint module * chore: changeset --- .changeset/strong-pianos-swim.md | 5 ++ package.json | 2 + packages/stylelint-config/README.md | 56 ++++++++++++ packages/stylelint-config/src/astro.ts | 13 ++- packages/stylelint-config/src/css.ts | 13 ++- packages/stylelint-config/src/extend.ts | 10 +-- packages/stylelint-config/src/scss.ts | 19 ++++- pnpm-lock.yaml | 108 +++++++++++++----------- stylelint.config.mjs | 1 + 9 files changed, 167 insertions(+), 60 deletions(-) create mode 100644 .changeset/strong-pianos-swim.md create mode 100644 packages/stylelint-config/README.md create mode 100644 stylelint.config.mjs diff --git a/.changeset/strong-pianos-swim.md b/.changeset/strong-pianos-swim.md new file mode 100644 index 00000000..10789edb --- /dev/null +++ b/.changeset/strong-pianos-swim.md @@ -0,0 +1,5 @@ +--- +"@virtual-live-lab/stylelint-config": patch +--- + +Fix rules, add docs for installation diff --git a/package.json b/package.json index 580afb1d..f7baa9dc 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,9 @@ "@virtual-live-lab/prettier-config": "workspace:^", "@virtual-live-lab/stylelint-config": "workspace:^", "@virtual-live-lab/tsconfig": "workspace:^", + "eslint": "^8.57.0", "prettier": "^3.2.5", + "stylelint": "^16.3.1", "typescript": "^5.4.5" }, "engines": { diff --git a/packages/stylelint-config/README.md b/packages/stylelint-config/README.md new file mode 100644 index 00000000..a8d0e896 --- /dev/null +++ b/packages/stylelint-config/README.md @@ -0,0 +1,56 @@ + +# @virtual-live-lab/stylelint-config + +![NPM Version](https://img.shields.io/npm/v/%40virtual-live-lab%2Fstylelint-config) + +Stylelint configuration for Virtual Live Lab. + +## Installation + +### Use for css + +```bash +npm install stylelint \ + @virtual-live-lab/stylelint-config \ + @double-great/stylelint-a11y \ + stylelint-declaration-block-no-ignored-properties \ + stylelint-value-no-unknown-custom-properties \ + stylelint-config-recommended \ + stylelint-config-standard \ + stylelint-config-recess-order \ + --save-dev +``` + +### Use for scss + +```bash +npm install stylelint \ + @virtual-live-lab/stylelint-config \ + @double-great/stylelint-a11y \ + stylelint-declaration-block-no-ignored-properties \ + stylelint-value-no-unknown-custom-properties \ + stylelint-config-standard \ + stylelint-config-standard-scss \ + stylelint-config-sass-guidelines \ + stylelint-config-recess-order \ + --save-dev +``` + +### Use for Astro + +```bash +npm install stylelint \ + @virtual-live-lab/stylelint-config \ + @double-great/stylelint-a11y \ + stylelint-declaration-block-no-ignored-properties \ + stylelint-value-no-unknown-custom-properties \ + stylelint-config-recommended \ + stylelint-config-standard \ + stylelint-config-recess-order \ + stylelint-config-html \ + --save-dev +``` + +## License + +[MIT](https://choosealicense.com/licenses/mit/) diff --git a/packages/stylelint-config/src/astro.ts b/packages/stylelint-config/src/astro.ts index 8b89121f..2eaac386 100644 --- a/packages/stylelint-config/src/astro.ts +++ b/packages/stylelint-config/src/astro.ts @@ -3,9 +3,20 @@ import type { Config } from "stylelint" import { baseConfig } from "./base" import { astroExtend } from "./extend" +const { rules: baseRules, ...base } = baseConfig + const astroConfig: Config = { - ...baseConfig, + ...base, extends: astroExtend, + rules: { + ...baseRules, + "at-rule-no-unknown": [ + true, + { + ignoreAtRules: ["tailwind"], + }, + ], + }, } export default astroConfig diff --git a/packages/stylelint-config/src/css.ts b/packages/stylelint-config/src/css.ts index fd889c12..05c90e3e 100644 --- a/packages/stylelint-config/src/css.ts +++ b/packages/stylelint-config/src/css.ts @@ -3,9 +3,20 @@ import type { Config } from "stylelint" import { baseConfig } from "./base" import { cssExtend } from "./extend" +const { rules: baseRules, ...base } = baseConfig + const cssConfig: Config = { - ...baseConfig, + ...base, extends: cssExtend, + rules: { + ...baseRules, + "at-rule-no-unknown": [ + true, + { + ignoreAtRules: ["tailwind"], + }, + ], + }, } export default cssConfig diff --git a/packages/stylelint-config/src/extend.ts b/packages/stylelint-config/src/extend.ts index 6dab1489..f163fee2 100644 --- a/packages/stylelint-config/src/extend.ts +++ b/packages/stylelint-config/src/extend.ts @@ -1,17 +1,15 @@ const astroExtend = [ - "stylelint-config-recommended", + "stylelint-config-standard", "stylelint-config-recess-order", "stylelint-config-html/html", "stylelint-config-html/astro", ] -const cssExtend = [ - "stylelint-config-recommended", - "stylelint-config-recess-order", -] +const cssExtend = ["stylelint-config-standard", "stylelint-config-recess-order"] const scssExtend = [ - "stylelint-config-recommended-scss", + "stylelint-config-standard-scss", + "stylelint-config-sass-guidelines", "stylelint-config-recess-order", ] diff --git a/packages/stylelint-config/src/scss.ts b/packages/stylelint-config/src/scss.ts index 2d44cc75..0f059651 100644 --- a/packages/stylelint-config/src/scss.ts +++ b/packages/stylelint-config/src/scss.ts @@ -3,9 +3,26 @@ import type { Config } from "stylelint" import { baseConfig } from "./base" import { scssExtend } from "./extend" +const { rules: baseRules, ...base } = baseConfig + const scssConfig: Config = { - ...baseConfig, + ...base, extends: scssExtend, + rules: { + ...baseRules, + "at-rule-no-unknown": [ + true, + { + ignoreAtRules: ["tailwind"], + }, + ], + "scss/at-rule-no-unknown": [ + true, + { + ignoreAtRules: ["tailwind"], + }, + ], + }, } export default scssConfig diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ae9b55eb..49d886b8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,9 +26,15 @@ importers: '@virtual-live-lab/tsconfig': specifier: workspace:^ version: link:packages/tsconfig + eslint: + specifier: ^8.57.0 + version: 8.57.0 prettier: specifier: ^3.2.5 version: 3.2.5 + stylelint: + specifier: ^16.3.1 + version: 16.3.1(typescript@5.4.5) typescript: specifier: ^5.4.5 version: 5.4.5 @@ -840,128 +846,128 @@ packages: engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} dev: true - /@rollup/rollup-android-arm-eabi@4.15.0: - resolution: {integrity: sha512-O63bJ7p909pRRQfOJ0k/Jp8gNFMud+ZzLLG5EBWquylHxmRT2k18M2ifg8WyjCgFVdpA7+rI0YZ8EkAtg6dSUw==} + /@rollup/rollup-android-arm-eabi@4.16.0: + resolution: {integrity: sha512-4fDVBAfWYlw2CtYgHEWarAYSozTx5OYLsSM/cdGW7H51FwI10DaGnjKgdqWyWXY/VjugelzriCiKf1UdM20Bxg==} cpu: [arm] os: [android] requiresBuild: true dev: true optional: true - /@rollup/rollup-android-arm64@4.15.0: - resolution: {integrity: sha512-5UywPdmC9jiVOShjQx4uuIcnTQOf85iA4jgg8bkFoH5NYWFfAfrJpv5eeokmTdSmYwUTT5IrcrBCJNkowhrZDA==} + /@rollup/rollup-android-arm64@4.16.0: + resolution: {integrity: sha512-JltUBgsKgN108NO4/hj0B/dJYNrqqmdRCtUet5tFDi/w+0tvQP0FToyWBV4HKBcSX4cvFChrCyt5Rh4FX6M6QQ==} cpu: [arm64] os: [android] requiresBuild: true dev: true optional: true - /@rollup/rollup-darwin-arm64@4.15.0: - resolution: {integrity: sha512-hNkt75uFfWpRxHItCBmbS0ba70WnibJh6yz60WShSWITLlVRbkvAu1E/c7RlliPY4ajhqJd0UPZz//gNalTd4g==} + /@rollup/rollup-darwin-arm64@4.16.0: + resolution: {integrity: sha512-UwF7tkWf0roggMRv7Vrkof7VgX9tEZIc4vbaQl0/HNX3loWlcum+0ODp1Qsd8s7XvQGT+Zboxx1qxav3vq8YDw==} cpu: [arm64] os: [darwin] requiresBuild: true dev: true optional: true - /@rollup/rollup-darwin-x64@4.15.0: - resolution: {integrity: sha512-HnC5bTP7qdfO9nUw/mBhNcjOEZfbS8NwV+nFegiMhYOn1ATAGZF4kfAxR9BuZevBrebWCxMmxm8NCU1CUoz+wQ==} + /@rollup/rollup-darwin-x64@4.16.0: + resolution: {integrity: sha512-RIY42wn6+Yb0qD29T7Dvm9/AhxrkGDf7X5dgI6rUFXR19+vCLh3u45yLcKOayu2ZQEba9rf/+BX3EggVwckiIw==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.15.0: - resolution: {integrity: sha512-QGOIQIJZeIIqMsc4BUGe8TnV4dkXhSW2EhaQ1G4LqMUNpkyeLztvlDlOoNHn7SR7a4dBANdcEbPkkEzz3rzjzA==} + /@rollup/rollup-linux-arm-gnueabihf@4.16.0: + resolution: {integrity: sha512-r2TGCIKzqk8VwjOvW7sveledh6aPao131ejUfZNIyFlWBCruF4HOu51KtLArDa7LL6qKd0vkgxGX3/2NmYpWig==} cpu: [arm] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm-musleabihf@4.15.0: - resolution: {integrity: sha512-PS/Cp8CinYgoysQ8i4UXYH/TZl06fXszvY/RDkyBYgUB1+tKyOMS925/4FZhfrhkl3XQEKjMc3BKtsxpB9Tz9Q==} + /@rollup/rollup-linux-arm-musleabihf@4.16.0: + resolution: {integrity: sha512-/QwaDp0RXQTtm25wQFSl02zEm9oveRXr9qAHbdxWCm9YG9dR8esqpyqzS/3GgHDm7jHktPNz9gTENfoUKRCcXQ==} cpu: [arm] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm64-gnu@4.15.0: - resolution: {integrity: sha512-XzOsnD6lGDP+k+vGgTYAryVGu8N89qpjMN5BVFUj75dGVFP3FzIVAufJAraxirpDwEQZA7Gjs0Vo5p4UmnnjsA==} + /@rollup/rollup-linux-arm64-gnu@4.16.0: + resolution: {integrity: sha512-iypHsz7YEfoyNL0iHbQ7B7pY6hpymvvMgFXXaMd5+WCtvJ9zqWPZKFmo78UeWzWNmTP9JtPiNIQt6efRxx/MNA==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm64-musl@4.15.0: - resolution: {integrity: sha512-+ScJA4Epbx/ZQGjDnbvTAcb8ZD06b+TlIka2UkujbKf1I/A+yrvEcJwG3/27zMmvcWMQyeCJhbL9TlSjzL0B7Q==} + /@rollup/rollup-linux-arm64-musl@4.16.0: + resolution: {integrity: sha512-7UpYcO0uVeomnoL5MpQhrS0FT7xZUJrEXtKVLmps5bRA7x5AiA1PDuPnMbxcOBWjIM2HHIG1t3ndnRTVMIbk5A==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-powerpc64le-gnu@4.15.0: - resolution: {integrity: sha512-1cUSvYgnyTakM4FDyf/GxUCDcqmj/hUh1NOizEOJU7+D5xEfFGCxgcNOs3hYBeRMUCcGmGkt01EhD3ILgKpGHQ==} + /@rollup/rollup-linux-powerpc64le-gnu@4.16.0: + resolution: {integrity: sha512-FSuFy4/hOQy0lH135ifnElP/6dKoHcZGHovsaRY0jrfNRR2yjMnVYaqNHKGKy0b/1I8DkD/JtclgJfq7SPti1w==} cpu: [ppc64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-riscv64-gnu@4.15.0: - resolution: {integrity: sha512-3A1FbHDbBUvpJXFAZwVsiROIcstVHP9AX/cwnyIhAp+xyQ1cBCxywKtuzmw0Av1MDNNg/y/9dDHtNypfRa8bdw==} + /@rollup/rollup-linux-riscv64-gnu@4.16.0: + resolution: {integrity: sha512-qxAB8MiHuDI8jU0D+WI9Gym3fvUJHA/AjKRXxbEH921SB3AeKQStq1FKFA59dAoqqCArjJ1voXM/gMvgEc1q4Q==} cpu: [riscv64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-s390x-gnu@4.15.0: - resolution: {integrity: sha512-hYPbhg9ow6/mXIkojc8LOeiip2sCTuw1taWyoOXTOWk9vawIXz8x7B4KkgWUAtvAElssxhSyEXr2EZycH/FGzQ==} + /@rollup/rollup-linux-s390x-gnu@4.16.0: + resolution: {integrity: sha512-j/9yBgWFlNFBfG/S1M2zkBNLeLkNVG59T5c4tlmlrxU+XITWJ3aMVWdpcZ/+mu7auGZftAXueAgAE9mb4lAlag==} cpu: [s390x] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-x64-gnu@4.15.0: - resolution: {integrity: sha512-511qln5mPSUKwv7HI28S1jCD1FK+2WbX5THM9A9annr3c1kzmfnf8Oe3ZakubEjob3IV6OPnNNcesfy+adIrmw==} + /@rollup/rollup-linux-x64-gnu@4.16.0: + resolution: {integrity: sha512-SjsBA1a9wrEleNneGEsR40HdxKdwCatyHC547o/XINqwPW4cqTYiNy/lL1WTJYWU/KgWIb8HH4SgmFStbWoBzw==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-x64-musl@4.15.0: - resolution: {integrity: sha512-4qKKGTDIv2bQZ+afhPWqPL+94+dLtk4lw1iwbcylKlLNqQ/Yyjof2CFYBxf6npiDzPV+zf4EWRiHb26/4Vsm9w==} + /@rollup/rollup-linux-x64-musl@4.16.0: + resolution: {integrity: sha512-YKCs7ghJZ5po6/qgfONiXyFKOKcTK4Kerzk/Kc89QK0JT94Qg4NurL+3Y3rZh5am2tu1OlvHPpBHQNBE8cFgJQ==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-win32-arm64-msvc@4.15.0: - resolution: {integrity: sha512-nEtaFBHp1OnbOf+tz66DtID579sNRHGgMC23to8HUyVuOCpCMD0CvRNqiDGLErLNnwApWIUtUl1VvuovCWUxwg==} + /@rollup/rollup-win32-arm64-msvc@4.16.0: + resolution: {integrity: sha512-+wtkF+z2nw0ZwwHji01wOW0loxFl24lBNxPtVAXtnPPDL9Ew0EhiCMOegXe/EAH3Zlr8Iw9tyPJXB3DltQLEyw==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /@rollup/rollup-win32-ia32-msvc@4.15.0: - resolution: {integrity: sha512-5O49NykwSgX6iT2HgZ6cAoGHt6T/FqNMB5OqFOGxU/y1GyFSHquox1sK2OqApQc0ANxiHFQEMNDLNVCL7AUDnQ==} + /@rollup/rollup-win32-ia32-msvc@4.16.0: + resolution: {integrity: sha512-7qLyKTL7Lf2g0B8bduETVAEI3WVUVwBRVcECojVevPNVAmi19IW1P2X+uMSwhmWNy36Q/qEvxXsfts1I8wpawg==} cpu: [ia32] os: [win32] requiresBuild: true dev: true optional: true - /@rollup/rollup-win32-x64-msvc@4.15.0: - resolution: {integrity: sha512-YA0hTwCunmKNeTOFWdJuKhdXse9jBqgo34FDo+9aS0spfCkp+wj0o1bCcOOTu+0P48O95GTfkLTAaVonwNuIdQ==} + /@rollup/rollup-win32-x64-msvc@4.16.0: + resolution: {integrity: sha512-tkfxXt+7c3Ecgn7ln9NJPdBM+QKwQdmFFpgAP+FYhAuRS5y3tY8xeza82gFjbPpytkHmaQnVdMtuzbToCz2tuw==} cpu: [x64] os: [win32] requiresBuild: true @@ -3903,29 +3909,29 @@ packages: dependencies: glob: 7.2.3 - /rollup@4.15.0: - resolution: {integrity: sha512-i0ir57IMF5o7YvNYyUNeIGG+IZaaucnGZAOsSctO2tPLXlCEaZzyBa+QhpHNSgtpyLMoDev2DyN6a7J1dQA8Tw==} + /rollup@4.16.0: + resolution: {integrity: sha512-joxy/Hd4Ee289394//Q1aoebcxXyHasDieCTk8YtP4G4al4TUlx85EnuCLrfrdtLzrna9kNjH++Sx063wxSgmA==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.15.0 - '@rollup/rollup-android-arm64': 4.15.0 - '@rollup/rollup-darwin-arm64': 4.15.0 - '@rollup/rollup-darwin-x64': 4.15.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.15.0 - '@rollup/rollup-linux-arm-musleabihf': 4.15.0 - '@rollup/rollup-linux-arm64-gnu': 4.15.0 - '@rollup/rollup-linux-arm64-musl': 4.15.0 - '@rollup/rollup-linux-powerpc64le-gnu': 4.15.0 - '@rollup/rollup-linux-riscv64-gnu': 4.15.0 - '@rollup/rollup-linux-s390x-gnu': 4.15.0 - '@rollup/rollup-linux-x64-gnu': 4.15.0 - '@rollup/rollup-linux-x64-musl': 4.15.0 - '@rollup/rollup-win32-arm64-msvc': 4.15.0 - '@rollup/rollup-win32-ia32-msvc': 4.15.0 - '@rollup/rollup-win32-x64-msvc': 4.15.0 + '@rollup/rollup-android-arm-eabi': 4.16.0 + '@rollup/rollup-android-arm64': 4.16.0 + '@rollup/rollup-darwin-arm64': 4.16.0 + '@rollup/rollup-darwin-x64': 4.16.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.16.0 + '@rollup/rollup-linux-arm-musleabihf': 4.16.0 + '@rollup/rollup-linux-arm64-gnu': 4.16.0 + '@rollup/rollup-linux-arm64-musl': 4.16.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.16.0 + '@rollup/rollup-linux-riscv64-gnu': 4.16.0 + '@rollup/rollup-linux-s390x-gnu': 4.16.0 + '@rollup/rollup-linux-x64-gnu': 4.16.0 + '@rollup/rollup-linux-x64-musl': 4.16.0 + '@rollup/rollup-win32-arm64-msvc': 4.16.0 + '@rollup/rollup-win32-ia32-msvc': 4.16.0 + '@rollup/rollup-win32-x64-msvc': 4.16.0 fsevents: 2.3.3 dev: true @@ -4598,7 +4604,7 @@ packages: postcss: 8.4.38 postcss-load-config: 4.0.2(postcss@8.4.38) resolve-from: 5.0.0 - rollup: 4.15.0 + rollup: 4.16.0 source-map: 0.8.0-beta.0 sucrase: 3.35.0 tree-kill: 1.2.2 diff --git a/stylelint.config.mjs b/stylelint.config.mjs new file mode 100644 index 00000000..56cac2a3 --- /dev/null +++ b/stylelint.config.mjs @@ -0,0 +1 @@ +export { css as default } from "@virtual-live-lab/stylelint-config" From c405d137d6840b7aa13235d784937f362d227bf8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 21 Apr 2024 20:08:39 +0900 Subject: [PATCH 7/9] Version Packages (#21) Co-authored-by: github-actions[bot] --- .changeset/strong-pianos-swim.md | 5 ----- packages/stylelint-config/CHANGELOG.md | 6 ++++++ packages/stylelint-config/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/strong-pianos-swim.md diff --git a/.changeset/strong-pianos-swim.md b/.changeset/strong-pianos-swim.md deleted file mode 100644 index 10789edb..00000000 --- a/.changeset/strong-pianos-swim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@virtual-live-lab/stylelint-config": patch ---- - -Fix rules, add docs for installation diff --git a/packages/stylelint-config/CHANGELOG.md b/packages/stylelint-config/CHANGELOG.md index 8aac1145..6208d32a 100644 --- a/packages/stylelint-config/CHANGELOG.md +++ b/packages/stylelint-config/CHANGELOG.md @@ -1,5 +1,11 @@ # @virtual-live-lab/stylelint-config +## 1.0.4 + +### Patch Changes + +- [#20](https://github.com/VirtualLiveLab/js-config/pull/20) [`335a4ab`](https://github.com/VirtualLiveLab/js-config/commit/335a4ab42fe9a08d2b94a525138c9b7355673263) Thanks [@sushi-chaaaan](https://github.com/sushi-chaaaan)! - Fix rules, add docs for installation + ## 1.0.3 ### Patch Changes diff --git a/packages/stylelint-config/package.json b/packages/stylelint-config/package.json index 7aa19201..63091359 100644 --- a/packages/stylelint-config/package.json +++ b/packages/stylelint-config/package.json @@ -1,6 +1,6 @@ { "name": "@virtual-live-lab/stylelint-config", - "version": "1.0.3", + "version": "1.0.4", "description": "Stylelint configuration for Virtual Live Lab", "main": "./dist/index.js", "module": "./dist/index.mjs", From d4b9be07bf396ad4019d4c9c31f26417d77c9830 Mon Sep 17 00:00:00 2001 From: Kentaro Suzuki Date: Mon, 22 Apr 2024 13:54:25 +0900 Subject: [PATCH 8/9] fix: required config package docs (#22) --- packages/stylelint-config/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/stylelint-config/README.md b/packages/stylelint-config/README.md index a8d0e896..cab5e3b3 100644 --- a/packages/stylelint-config/README.md +++ b/packages/stylelint-config/README.md @@ -29,10 +29,11 @@ npm install stylelint \ @double-great/stylelint-a11y \ stylelint-declaration-block-no-ignored-properties \ stylelint-value-no-unknown-custom-properties \ + stylelint-config-recommended \ stylelint-config-standard \ + stylelint-config-recess-order \ stylelint-config-standard-scss \ stylelint-config-sass-guidelines \ - stylelint-config-recess-order \ --save-dev ``` @@ -47,6 +48,8 @@ npm install stylelint \ stylelint-config-recommended \ stylelint-config-standard \ stylelint-config-recess-order \ + stylelint-config-standard-scss \ + stylelint-config-sass-guidelines \ stylelint-config-html \ --save-dev ``` From 8e001dd4919015cec44de8abe0dfb924cd4a7802 Mon Sep 17 00:00:00 2001 From: Kentaro Suzuki Date: Mon, 22 Apr 2024 14:28:49 +0900 Subject: [PATCH 9/9] docs/installation (#23) * docs: prettier config installation * feat: add eslint config docs, use default export * chore: changeset --- .changeset/silly-years-behave.md | 7 ++ eslint.config.mjs | 2 +- packages/eslint-config/README.md | 105 ++++++++++++++++++ packages/eslint-config/eslint.config.mjs | 2 +- packages/eslint-config/src/addons/jsxA11y.ts | 4 +- packages/eslint-config/src/addons/tailwind.ts | 4 +- packages/eslint-config/src/astro.ts | 4 +- packages/eslint-config/src/js.ts | 2 +- packages/eslint-config/src/react.ts | 4 +- packages/eslint-config/src/ts.ts | 4 +- packages/prettier-config/README.md | 39 +++++++ packages/prettier-config/eslint.config.mjs | 3 +- packages/stylelint-config/eslint.config.mjs | 2 +- 13 files changed, 166 insertions(+), 16 deletions(-) create mode 100644 .changeset/silly-years-behave.md create mode 100644 packages/eslint-config/README.md create mode 100644 packages/prettier-config/README.md diff --git a/.changeset/silly-years-behave.md b/.changeset/silly-years-behave.md new file mode 100644 index 00000000..feb5b066 --- /dev/null +++ b/.changeset/silly-years-behave.md @@ -0,0 +1,7 @@ +--- +"@virtual-live-lab/stylelint-config": patch +"@virtual-live-lab/prettier-config": patch +"@virtual-live-lab/eslint-config": patch +--- + +Add install doc diff --git a/eslint.config.mjs b/eslint.config.mjs index e3774ec9..27a7e71d 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,2 +1,2 @@ //@ts-check -export { ts as default } from "@virtual-live-lab/eslint-config/ts" +export { default } from "@virtual-live-lab/eslint-config/ts" diff --git a/packages/eslint-config/README.md b/packages/eslint-config/README.md new file mode 100644 index 00000000..de85c77e --- /dev/null +++ b/packages/eslint-config/README.md @@ -0,0 +1,105 @@ + +# @virtual-live-lab/eslint-config + +![NPM Version](https://img.shields.io/npm/v/%40virtual-live-lab%2Feslint-config) + +ESLint configuration for Virtual Live Lab, with various presets and addons. + +> [!NOTE] +> This package has not compatibility with ESLint v9 yet. + +> [!WARNING] +> This package is only compatible with Flat Config. +> Do not use for classic `.eslintrc` style. + +## Installation + +### Use for JavaScript + +```bash +npm install eslint \ + @virtual-live-lab/eslint-config \ + --save-dev +``` + +### Use for TypeScript + +```bash +npm install eslint \ + @virtual-live-lab/eslint-config \ + typescript \ + --save-dev +``` + +## presets + +This package has some presets to zero-config use. + +> [!WARNING] +> Next.js is not supported by the preset because each version of the framework has a different version of the ESLint package. + +### JavaScript Preset + +```js +// eslint.config.mjs +export { default } from "@virtual-live-lab/eslint-config/js" +``` + +### TypeScript Preset + +Extends `js` preset. + +```js +// eslint.config.mjs +export { default } from "@virtual-live-lab/eslint-config/ts" +``` + +### React Preset + +Extends `ts` preset. + +```js +// eslint.config.mjs +export { default } from "@virtual-live-lab/eslint-config/react" +``` + +### Astro Preset + +Extends `ts` and `react` presets. + +```js +// eslint.config.mjs +export { default } from "@virtual-live-lab/eslint-config/astro" +``` + +## Addons + +This package has some addon configurations. + +### jsx a11y + +```js +// eslint.config.mjs +import jsxA11y from "@virtual-live-lab/eslint-config/addons/jsxA11y" +import ts from "@virtual-live-lab/eslint-config/ts" + +const config = [...ts, ...jsxA11y] + +export default config +``` + +### Tailwind CSS + +```js +// eslint.config.mjs +import tailwind from "@virtual-live-lab/eslint-config/addons/tailwind" +import ts from "@virtual-live-lab/eslint-config/ts" + +const config = [...ts, ...jsxA11y] + +export default config +``` + +## License + +[MIT](https://choosealicense.com/licenses/mit/) diff --git a/packages/eslint-config/eslint.config.mjs b/packages/eslint-config/eslint.config.mjs index e3774ec9..27a7e71d 100644 --- a/packages/eslint-config/eslint.config.mjs +++ b/packages/eslint-config/eslint.config.mjs @@ -1,2 +1,2 @@ //@ts-check -export { ts as default } from "@virtual-live-lab/eslint-config/ts" +export { default } from "@virtual-live-lab/eslint-config/ts" diff --git a/packages/eslint-config/src/addons/jsxA11y.ts b/packages/eslint-config/src/addons/jsxA11y.ts index 5ab830ed..dcb79dd5 100644 --- a/packages/eslint-config/src/addons/jsxA11y.ts +++ b/packages/eslint-config/src/addons/jsxA11y.ts @@ -1,5 +1,5 @@ import { compat } from "../../lib/compat" -const jsxA11yConfig = compat.extends("plugin:jsx-a11y/strict") +const jsxA11y = compat.extends("plugin:jsx-a11y/strict") -export { jsxA11yConfig } +export default jsxA11y diff --git a/packages/eslint-config/src/addons/tailwind.ts b/packages/eslint-config/src/addons/tailwind.ts index ff0fb25a..75eba283 100644 --- a/packages/eslint-config/src/addons/tailwind.ts +++ b/packages/eslint-config/src/addons/tailwind.ts @@ -1,6 +1,6 @@ import { compat } from "../../lib/compat" -const config = [ +const tailwind = [ ...compat.extends("plugin:tailwindcss/recommended"), ...compat.config({ rules: { @@ -18,4 +18,4 @@ const config = [ }), ] -export default config +export default tailwind diff --git a/packages/eslint-config/src/astro.ts b/packages/eslint-config/src/astro.ts index f9e5fd64..5c1c687b 100644 --- a/packages/eslint-config/src/astro.ts +++ b/packages/eslint-config/src/astro.ts @@ -4,7 +4,7 @@ import tseslint from "typescript-eslint" import { astroConfig } from "./bases/astro" import { reactConfig } from "./bases/react" -import { ts } from "./ts" +import ts from "./ts" const astro: TSESLint.FlatConfig.ConfigArray = tseslint.config( ...ts, @@ -12,4 +12,4 @@ const astro: TSESLint.FlatConfig.ConfigArray = tseslint.config( ...reactConfig, ) -export { astro } +export default astro diff --git a/packages/eslint-config/src/js.ts b/packages/eslint-config/src/js.ts index fdff9aef..67e26693 100644 --- a/packages/eslint-config/src/js.ts +++ b/packages/eslint-config/src/js.ts @@ -3,4 +3,4 @@ import { stylisticConfig } from "./bases/stylistic" const js = [...jsConfig, ...stylisticConfig] -export { js } +export default js diff --git a/packages/eslint-config/src/react.ts b/packages/eslint-config/src/react.ts index 888073ca..a75cc9f2 100644 --- a/packages/eslint-config/src/react.ts +++ b/packages/eslint-config/src/react.ts @@ -3,11 +3,11 @@ import type { TSESLint } from "@typescript-eslint/utils" import tseslint from "typescript-eslint" import { reactConfig } from "./bases/react" -import { ts } from "./ts" +import ts from "./ts" const react: TSESLint.FlatConfig.ConfigArray = tseslint.config( ...ts, ...reactConfig, ) -export { react } +export default react diff --git a/packages/eslint-config/src/ts.ts b/packages/eslint-config/src/ts.ts index 3cad369d..f636a24a 100644 --- a/packages/eslint-config/src/ts.ts +++ b/packages/eslint-config/src/ts.ts @@ -3,9 +3,9 @@ import type { TSESLint } from "@typescript-eslint/utils" import tseslint from "typescript-eslint" import { tsConfig } from "./bases/typescript" -import { js } from "./js" +import js from "./js" // eslint-disable-next-line @typescript-eslint/no-unsafe-argument const ts: TSESLint.FlatConfig.ConfigArray = tseslint.config(...js, ...tsConfig) -export { ts } +export default ts diff --git a/packages/prettier-config/README.md b/packages/prettier-config/README.md new file mode 100644 index 00000000..dbfe8624 --- /dev/null +++ b/packages/prettier-config/README.md @@ -0,0 +1,39 @@ + +# @virtual-live-lab/prettier-config + +![NPM Version](https://img.shields.io/npm/v/%40virtual-live-lab%2Fprettier-config) + +Prettier configuration for Virtual Live Lab. + +## Installation + +### Use for normal + +```bash +npm install prettier \ + @virtual-live-lab/prettier-config \ + --save-dev +``` + +```js +// prettier.config.mjs +export { default } from "@virtual-live-lab/prettier-config" +``` + +### Use for Astro + +```bash +npm install prettier \ + prettier-plugin-astro \ + @virtual-live-lab/prettier-config \ + --save-dev +``` + +```js +// prettier.config.mjs +export { default } from "@virtual-live-lab/prettier-config/astro" +``` + +## License + +[MIT](https://choosealicense.com/licenses/mit/) diff --git a/packages/prettier-config/eslint.config.mjs b/packages/prettier-config/eslint.config.mjs index e3774ec9..498d8f98 100644 --- a/packages/prettier-config/eslint.config.mjs +++ b/packages/prettier-config/eslint.config.mjs @@ -1,2 +1 @@ -//@ts-check -export { ts as default } from "@virtual-live-lab/eslint-config/ts" +export { default } from "@virtual-live-lab/eslint-config/ts" diff --git a/packages/stylelint-config/eslint.config.mjs b/packages/stylelint-config/eslint.config.mjs index 75b8cd40..498d8f98 100644 --- a/packages/stylelint-config/eslint.config.mjs +++ b/packages/stylelint-config/eslint.config.mjs @@ -1 +1 @@ -export { ts as default } from "@virtual-live-lab/eslint-config/ts" +export { default } from "@virtual-live-lab/eslint-config/ts"