stylelint-plugin-grid 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -30
- package/docs/rules/configs/grid-all.md +23 -23
- package/docs/rules/configs/grid-recommended.md +16 -16
- package/docs/rules/configs/index.md +23 -23
- package/docs/rules/consistent-area-naming.md +5 -5
- package/docs/rules/getting-started.md +8 -8
- package/docs/rules/no-conflicting-placement.md +11 -11
- package/docs/rules/no-dense-auto-flow.md +8 -8
- package/docs/rules/no-ineffective-container-properties.md +13 -13
- package/docs/rules/no-invalid-areas.md +11 -11
- package/docs/rules/no-invalid-auto-repeat.md +8 -8
- package/docs/rules/no-invalid-minmax.md +8 -8
- package/docs/rules/no-invalid-repeat-count.md +8 -8
- package/docs/rules/no-invalid-span.md +8 -8
- package/docs/rules/no-mismatched-template-rows.md +8 -8
- package/docs/rules/no-overlapping-areas.md +4 -4
- package/docs/rules/no-reversed-placement-lines.md +9 -9
- package/docs/rules/no-unknown-areas.md +4 -4
- package/docs/rules/no-unused-areas.md +5 -5
- package/docs/rules/no-zero-grid-lines.md +8 -8
- package/docs/rules/prefer-gap-properties.md +10 -10
- package/docs/rules/prefer-minmax-zero-fr.md +7 -7
- package/docs/rules/require-explicit-rows-with-column-flow.md +10 -10
- package/docs/rules/require-explicit-tracks-with-areas.md +22 -22
- package/docs/rules/validate-area-shapes.md +10 -10
- package/docs/rules/validate-track-counts.md +10 -10
- package/package.json +15 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "stylelint-plugin-grid",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Stylelint rules for CSS Grid correctness, safe grid patterns, and common layout bug prevention.",
|
|
7
7
|
"keywords": [
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"build:types:cjs": "node -e \"require('node:fs').copyFileSync('dist/plugin.d.ts','dist/plugin.d.cts')\"",
|
|
117
117
|
"changelog:generate": "git-cliff --config cliff.toml --output CHANGELOG.md",
|
|
118
118
|
"changelog:preview": "git-cliff --config cliff.toml --unreleased",
|
|
119
|
-
"changelog:release-notes": "git-cliff --config cliff.toml --
|
|
119
|
+
"changelog:release-notes": "git-cliff --config cliff.toml --current --strip all",
|
|
120
120
|
"clean:cache": "node scripts/clean-paths.mjs dist coverage cache .cache .vite .turbo",
|
|
121
121
|
"clean:cache:coverage": "node scripts/clean-paths.mjs coverage .coverage",
|
|
122
122
|
"clean:cache:dist": "node scripts/clean-paths.mjs dist release",
|
|
@@ -155,9 +155,9 @@
|
|
|
155
155
|
"lint": "cross-env NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content --cache-location .cache/.eslintcache",
|
|
156
156
|
"lint:action": "npm run lint:actions",
|
|
157
157
|
"lint:actions": "node scripts/lint-actionlint.mjs",
|
|
158
|
-
"lint:all": "npm run lint && npm run typecheck && npm run lint:css && npm run lint:prettier && npm run lint:remark && npm run lint:package && npm run lint:secretlint && npm run lint:yaml && npm run lint:actions && npm run lint:circular && npm run sync:rules:check",
|
|
159
|
-
"lint:all:fix": "npm run lint:fix && npm run typecheck && npm run lint:css:fix && npm run lint:prettier:fix && npm run lint:remark && npm run lint:package && npm run lint:secretlint && npm run lint:yaml:fix && npm run lint:actions && npm run lint:circular && npm run sync:rules:write",
|
|
160
|
-
"lint:all:fix:quiet": "npm run lint:fix:quiet && npm run typecheck && npm run lint:css:fix && npm run lint:prettier:fix && npm run lint:remark && npm run lint:package && npm run lint:secretlint && npm run lint:yaml:fix && npm run lint:actions && npm run lint:circular && npm run sync:rules:write",
|
|
158
|
+
"lint:all": "npm run docs:api && npm run lint && npm run typecheck && npm run lint:css && npm run lint:prettier && npm run lint:remark && npm run lint:package && npm run lint:secretlint && npm run lint:gitleaks && npm run lint:yaml && npm run lint:yamllint && npm run lint:actions && npm run lint:circular && npm run sync:rules:check",
|
|
159
|
+
"lint:all:fix": "npm run docs:api && npm run lint:fix && npm run typecheck && npm run lint:css:fix && npm run lint:prettier:fix && npm run lint:remark && npm run lint:package && npm run lint:secretlint && npm run lint:gitleaks && npm run lint:yaml:fix && npm run lint:yamllint && npm run lint:actions && npm run lint:circular && npm run sync:rules:write",
|
|
160
|
+
"lint:all:fix:quiet": "npm run docs:api && npm run lint:fix:quiet && npm run typecheck && npm run lint:css:fix && npm run lint:prettier:fix && npm run lint:remark && npm run lint:package && npm run lint:secretlint && npm run lint:gitleaks && npm run lint:yaml:fix && npm run lint:yamllint && npm run lint:actions && npm run lint:circular && npm run sync:rules:write",
|
|
161
161
|
"lint:circular": "npm run madge:circular",
|
|
162
162
|
"lint:compat:stylelint16": "node scripts/run-stylelint16-compat.mjs",
|
|
163
163
|
"lint:config:build": "npm run build:eslint-inspector",
|
|
@@ -176,6 +176,7 @@
|
|
|
176
176
|
"lint:exports": "ts-unused-exports tsconfig.json src/plugin.ts --excludePathsFromReport=plugin.ts",
|
|
177
177
|
"lint:fix": "cross-env NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content --cache-location .cache/.eslintcache --fix",
|
|
178
178
|
"lint:fix:quiet": "cross-env ESLINT_PROGRESS=off NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content --cache-location .cache/.eslintcache --fix && echo \"Eslint fix done!\"",
|
|
179
|
+
"lint:gitleaks": "gitleaks-secret-scanner --diff-mode history --config .gitleaks.toml --redact",
|
|
179
180
|
"lint:grype": "grype . -c .grype.yaml --name stylelint-plugin-grid",
|
|
180
181
|
"lint:knip": "npm run knip",
|
|
181
182
|
"lint:knip:exports": "npm run knip -- --include exports,nsExports,classMembers,types,nsTypes,enumMembers,duplicates",
|
|
@@ -203,13 +204,14 @@
|
|
|
203
204
|
"lint:unused-deps": "npm run knip -- --dependencies",
|
|
204
205
|
"lint:yaml": "cross-env NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content --cache-location .cache/.eslintcache \"**/*.{yml,yaml}\" && echo \"YAML lint done!\"",
|
|
205
206
|
"lint:yaml:fix": "cross-env NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content --cache-location .cache/.eslintcache --fix \"**/*.{yml,yaml}\" && echo \"YAML lint (fix) done!\"",
|
|
207
|
+
"lint:yamllint": "yamllint-js .",
|
|
206
208
|
"madge:circular": "node scripts/check-circular-deps.mjs",
|
|
207
209
|
"madge:leaves": "madge --leaves --no-spinner --ts-config tsconfig.json --extensions ts,tsx,js,jsx,mjs,cjs,cts,mts ./src --exclude \"(^|[\\/])(test|dist|node_modules|cache|\\.cache|coverage|build|eslint-inspector|temp|\\.docusaurus)($|[\\/])|\\.css$\"",
|
|
208
210
|
"madge:orphans": "madge --orphans --no-spinner --ts-config tsconfig.json --extensions ts,tsx,js,jsx,mjs,cjs,cts,mts ./src --exclude \"(^|[\\/])(test|dist|node_modules|cache|\\.cache|coverage|build|eslint-inspector|temp|\\.docusaurus)($|[\\/])|\\.css$\"",
|
|
209
211
|
"open:coverage": "open-cli coverage/index.html",
|
|
210
212
|
"prepublishOnly": "npm run release:check",
|
|
211
213
|
"release:check": "npm run release:verify",
|
|
212
|
-
"release:verify": "cross-env NODE_OPTIONS= npm run build && cross-env NODE_OPTIONS= npm run lint:all && cross-env NODE_OPTIONS= npm run typecheck && cross-env NODE_OPTIONS= npm run test:docs-guardrails && cross-env NODE_OPTIONS= VITEST_TYPECHECK=false npm run test && cross-env NODE_OPTIONS= npm run sync:readme-rules-table && cross-env NODE_OPTIONS= npm run sync:configs-rules-matrix && cross-env NODE_OPTIONS= npm run docs:check-links && npm run lint:package:strict && npm run lint:compat:stylelint16 && npm install --force",
|
|
214
|
+
"release:verify": "cross-env NODE_OPTIONS= npm run build && cross-env NODE_OPTIONS= npm run docs:api && cross-env NODE_OPTIONS= npm run lint:all && cross-env NODE_OPTIONS= npm run typecheck && cross-env NODE_OPTIONS= npm run test:docs-guardrails && cross-env NODE_OPTIONS= VITEST_TYPECHECK=false npm run test && cross-env NODE_OPTIONS= npm run sync:readme-rules-table && cross-env NODE_OPTIONS= npm run sync:configs-rules-matrix && cross-env NODE_OPTIONS= npm run docs:check-links && npm run lint:package:strict && npm run lint:compat:stylelint16 && npm install --force",
|
|
213
215
|
"remark:fix": "remark --rc-path .remarkrc.mjs --silently-ignore --ignore-path .remarkignore --frail --quiet --output -- \"*.{md,mdx}\" \"docs/**/*.{md,mdx}\"",
|
|
214
216
|
"remark:test-config": "remark --rc-path .remarkrc.mjs --silently-ignore --ignore-path .remarkignore --frail \"README.md\"",
|
|
215
217
|
"sync:configs-rules-matrix": "node scripts/sync-configs-rules-matrix.mjs",
|
|
@@ -246,6 +248,7 @@
|
|
|
246
248
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.build.json --noEmit && tsc -p tsconfig.eslint.json --noEmit && tsc -p tsconfig.js.json --noEmit && npm run --workspace docs/docusaurus typecheck",
|
|
247
249
|
"typecheck:all": "npm run typecheck",
|
|
248
250
|
"types:update": "typesync",
|
|
251
|
+
"update-actions": "npx actions-up --yes --style sha",
|
|
249
252
|
"update-deps": "npx ncu -i --install never && npm update --workspaces --force && npm install --force && npm run sync:peer-stylelint-range && npm run sync:node-version-files && npm run sync:rules:write",
|
|
250
253
|
"verify:readme-rules-table": "npm run build && npm run sync:readme-rules-table"
|
|
251
254
|
},
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"eslint-rule-benchmark": "^0.8.0",
|
|
288
291
|
"fast-check": "^4.8.0",
|
|
289
292
|
"git-cliff": "^2.13.1",
|
|
293
|
+
"gitleaks-config-nick2bad4u": "^1.0.2",
|
|
290
294
|
"gitleaks-secret-scanner": "^2.1.1",
|
|
291
295
|
"htmlhint": "^1.9.2",
|
|
292
296
|
"jscpd": "^4.2.4",
|
|
@@ -296,6 +300,7 @@
|
|
|
296
300
|
"markdown-link-check": "^3.14.2",
|
|
297
301
|
"npm-check-updates": "^22.2.1",
|
|
298
302
|
"npm-package-json-lint": "^10.4.0",
|
|
303
|
+
"npm-package-json-lint-config-nick2bad4u": "^1.0.3",
|
|
299
304
|
"picocolors": "^1.1.1",
|
|
300
305
|
"postcss": "^8.5.15",
|
|
301
306
|
"prettier": "^3.8.3",
|
|
@@ -313,7 +318,9 @@
|
|
|
313
318
|
"stylelint": "^17.12.0",
|
|
314
319
|
"stylelint-config-nick2bad4u": "^1.0.12",
|
|
315
320
|
"ts-unused-exports": "^11.0.1",
|
|
321
|
+
"tsdoc-config-nick2bad4u": "^1.0.5",
|
|
316
322
|
"typedoc": "^0.28.19",
|
|
323
|
+
"typedoc-config-nick2bad4u": "^2.0.0",
|
|
317
324
|
"typescript": "^6.0.3",
|
|
318
325
|
"typescript-eslint": "^8.60.0",
|
|
319
326
|
"typesync": "^0.14.3",
|
|
@@ -321,6 +328,7 @@
|
|
|
321
328
|
"vite": "^8.0.14",
|
|
322
329
|
"vite-tsconfig-paths": "^6.1.1",
|
|
323
330
|
"vitest": "^4.1.7",
|
|
331
|
+
"yamllint-config-nick2bad4u": "^1.0.2",
|
|
324
332
|
"yamllint-js": "^0.2.4"
|
|
325
333
|
},
|
|
326
334
|
"peerDependencies": {
|
|
@@ -331,7 +339,7 @@
|
|
|
331
339
|
"optional": false
|
|
332
340
|
}
|
|
333
341
|
},
|
|
334
|
-
"packageManager": "npm@11.
|
|
342
|
+
"packageManager": "npm@11.17.0",
|
|
335
343
|
"engines": {
|
|
336
344
|
"node": ">=22.0.0"
|
|
337
345
|
},
|