stylelint-plugin-grid 1.0.0
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/CHANGELOG.md +0 -0
- package/LICENSE +21 -0
- package/README.md +93 -0
- package/dist/_internal/create-stylelint-rule.d.ts +49 -0
- package/dist/_internal/create-stylelint-rule.d.ts.map +1 -0
- package/dist/_internal/create-stylelint-rule.js +34 -0
- package/dist/_internal/create-stylelint-rule.js.map +1 -0
- package/dist/_internal/grid-template-analysis.d.ts +62 -0
- package/dist/_internal/grid-template-analysis.d.ts.map +1 -0
- package/dist/_internal/grid-template-analysis.js +346 -0
- package/dist/_internal/grid-template-analysis.js.map +1 -0
- package/dist/_internal/plugin-constants.d.ts +30 -0
- package/dist/_internal/plugin-constants.d.ts.map +1 -0
- package/dist/_internal/plugin-constants.js +47 -0
- package/dist/_internal/plugin-constants.js.map +1 -0
- package/dist/_internal/rules-registry.d.ts +10 -0
- package/dist/_internal/rules-registry.d.ts.map +1 -0
- package/dist/_internal/rules-registry.js +31 -0
- package/dist/_internal/rules-registry.js.map +1 -0
- package/dist/configs/grid-all.cjs +3 -0
- package/dist/configs/grid-all.d.cts +3 -0
- package/dist/configs/grid-all.d.ts +9 -0
- package/dist/configs/grid-all.d.ts.map +1 -0
- package/dist/configs/grid-all.js +9 -0
- package/dist/configs/grid-all.js.map +1 -0
- package/dist/configs/grid-recommended.cjs +3 -0
- package/dist/configs/grid-recommended.d.cts +3 -0
- package/dist/configs/grid-recommended.d.ts +9 -0
- package/dist/configs/grid-recommended.d.ts.map +1 -0
- package/dist/configs/grid-recommended.js +9 -0
- package/dist/configs/grid-recommended.js.map +1 -0
- package/dist/plugin.cjs +1268 -0
- package/dist/plugin.cjs.map +7 -0
- package/dist/plugin.d.cts +45 -0
- package/dist/plugin.d.ts +45 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +78 -0
- package/dist/plugin.js.map +1 -0
- package/dist/rules/consistent-area-naming.d.ts +12 -0
- package/dist/rules/consistent-area-naming.d.ts.map +1 -0
- package/dist/rules/consistent-area-naming.js +86 -0
- package/dist/rules/consistent-area-naming.js.map +1 -0
- package/dist/rules/no-dense-auto-flow.d.ts +8 -0
- package/dist/rules/no-dense-auto-flow.d.ts.map +1 -0
- package/dist/rules/no-dense-auto-flow.js +44 -0
- package/dist/rules/no-dense-auto-flow.js.map +1 -0
- package/dist/rules/no-invalid-areas.d.ts +8 -0
- package/dist/rules/no-invalid-areas.d.ts.map +1 -0
- package/dist/rules/no-invalid-areas.js +42 -0
- package/dist/rules/no-invalid-areas.js.map +1 -0
- package/dist/rules/no-invalid-auto-repeat.d.ts +8 -0
- package/dist/rules/no-invalid-auto-repeat.d.ts.map +1 -0
- package/dist/rules/no-invalid-auto-repeat.js +189 -0
- package/dist/rules/no-invalid-auto-repeat.js.map +1 -0
- package/dist/rules/no-invalid-minmax.d.ts +8 -0
- package/dist/rules/no-invalid-minmax.d.ts.map +1 -0
- package/dist/rules/no-invalid-minmax.js +58 -0
- package/dist/rules/no-invalid-minmax.js.map +1 -0
- package/dist/rules/no-mismatched-template-rows.d.ts +8 -0
- package/dist/rules/no-mismatched-template-rows.d.ts.map +1 -0
- package/dist/rules/no-mismatched-template-rows.js +50 -0
- package/dist/rules/no-mismatched-template-rows.js.map +1 -0
- package/dist/rules/no-overlapping-areas.d.ts +8 -0
- package/dist/rules/no-overlapping-areas.d.ts.map +1 -0
- package/dist/rules/no-overlapping-areas.js +48 -0
- package/dist/rules/no-overlapping-areas.js.map +1 -0
- package/dist/rules/no-unknown-areas.d.ts +8 -0
- package/dist/rules/no-unknown-areas.d.ts.map +1 -0
- package/dist/rules/no-unknown-areas.js +47 -0
- package/dist/rules/no-unknown-areas.js.map +1 -0
- package/dist/rules/no-unused-areas.d.ts +8 -0
- package/dist/rules/no-unused-areas.d.ts.map +1 -0
- package/dist/rules/no-unused-areas.js +48 -0
- package/dist/rules/no-unused-areas.js.map +1 -0
- package/dist/rules/prefer-gap-properties.d.ts +8 -0
- package/dist/rules/prefer-gap-properties.d.ts.map +1 -0
- package/dist/rules/prefer-gap-properties.js +58 -0
- package/dist/rules/prefer-gap-properties.js.map +1 -0
- package/dist/rules/require-explicit-rows-with-column-flow.d.ts +8 -0
- package/dist/rules/require-explicit-rows-with-column-flow.d.ts.map +1 -0
- package/dist/rules/require-explicit-rows-with-column-flow.js +52 -0
- package/dist/rules/require-explicit-rows-with-column-flow.js.map +1 -0
- package/dist/rules/validate-area-shapes.d.ts +8 -0
- package/dist/rules/validate-area-shapes.d.ts.map +1 -0
- package/dist/rules/validate-area-shapes.js +47 -0
- package/dist/rules/validate-area-shapes.js.map +1 -0
- package/dist/rules/validate-track-counts.d.ts +9 -0
- package/dist/rules/validate-track-counts.d.ts.map +1 -0
- package/dist/rules/validate-track-counts.js +67 -0
- package/dist/rules/validate-track-counts.js.map +1 -0
- package/docs/rules/configs/grid-all.md +42 -0
- package/docs/rules/configs/grid-recommended.md +37 -0
- package/docs/rules/configs/index.md +46 -0
- package/docs/rules/consistent-area-naming.md +41 -0
- package/docs/rules/getting-started.md +55 -0
- package/docs/rules/guides/current-status.md +44 -0
- package/docs/rules/no-dense-auto-flow.md +57 -0
- package/docs/rules/no-invalid-areas.md +55 -0
- package/docs/rules/no-invalid-auto-repeat.md +58 -0
- package/docs/rules/no-invalid-minmax.md +57 -0
- package/docs/rules/no-mismatched-template-rows.md +36 -0
- package/docs/rules/no-overlapping-areas.md +40 -0
- package/docs/rules/no-unknown-areas.md +39 -0
- package/docs/rules/no-unused-areas.md +44 -0
- package/docs/rules/overview.md +54 -0
- package/docs/rules/prefer-gap-properties.md +45 -0
- package/docs/rules/require-explicit-rows-with-column-flow.md +56 -0
- package/docs/rules/validate-area-shapes.md +46 -0
- package/docs/rules/validate-track-counts.md +39 -0
- package/package.json +355 -0
package/package.json
ADDED
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/package.json",
|
|
3
|
+
"name": "stylelint-plugin-grid",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"private": false,
|
|
6
|
+
"description": "Stylelint rules for CSS Grid correctness, safe grid patterns, and common layout bug prevention.",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"stylelint",
|
|
9
|
+
"stylelint-plugin",
|
|
10
|
+
"stylelint-config",
|
|
11
|
+
"stylelintconfig",
|
|
12
|
+
"stylelintplugin",
|
|
13
|
+
"grid",
|
|
14
|
+
"css-grid",
|
|
15
|
+
"layout",
|
|
16
|
+
"css",
|
|
17
|
+
"postcss"
|
|
18
|
+
],
|
|
19
|
+
"homepage": "https://nick2bad4u.github.io/stylelint-plugin-grid/",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/Nick2bad4u/stylelint-plugin-grid/issues",
|
|
22
|
+
"email": "20943337+Nick2bad4u@users.noreply.github.com"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/Nick2bad4u/stylelint-plugin-grid.git"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"author": "Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com> (https://github.com/Nick2bad4u)",
|
|
30
|
+
"contributors": [
|
|
31
|
+
{
|
|
32
|
+
"name": "Nick2bad4u",
|
|
33
|
+
"email": "20943337+Nick2bad4u@users.noreply.github.com",
|
|
34
|
+
"url": "https://github.com/Nick2bad4u"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"sideEffects": false,
|
|
38
|
+
"type": "module",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/plugin.d.ts",
|
|
43
|
+
"default": "./dist/plugin.js"
|
|
44
|
+
},
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./dist/plugin.d.cts",
|
|
47
|
+
"default": "./dist/plugin.cjs"
|
|
48
|
+
},
|
|
49
|
+
"default": "./dist/plugin.js"
|
|
50
|
+
},
|
|
51
|
+
"./configs/grid-all": {
|
|
52
|
+
"import": {
|
|
53
|
+
"types": "./dist/configs/grid-all.d.ts",
|
|
54
|
+
"default": "./dist/configs/grid-all.js"
|
|
55
|
+
},
|
|
56
|
+
"require": {
|
|
57
|
+
"types": "./dist/configs/grid-all.d.cts",
|
|
58
|
+
"default": "./dist/configs/grid-all.cjs"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"./configs/grid-recommended": {
|
|
62
|
+
"import": {
|
|
63
|
+
"types": "./dist/configs/grid-recommended.d.ts",
|
|
64
|
+
"default": "./dist/configs/grid-recommended.js"
|
|
65
|
+
},
|
|
66
|
+
"require": {
|
|
67
|
+
"types": "./dist/configs/grid-recommended.d.cts",
|
|
68
|
+
"default": "./dist/configs/grid-recommended.cjs"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"./package.json": "./package.json"
|
|
72
|
+
},
|
|
73
|
+
"main": "./dist/plugin.cjs",
|
|
74
|
+
"types": "./dist/plugin.d.ts",
|
|
75
|
+
"typesVersions": {
|
|
76
|
+
"*": {
|
|
77
|
+
"configs/grid-all": [
|
|
78
|
+
"./dist/configs/grid-all.d.ts"
|
|
79
|
+
],
|
|
80
|
+
"configs/grid-recommended": [
|
|
81
|
+
"./dist/configs/grid-recommended.d.ts"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"files": [
|
|
86
|
+
"dist",
|
|
87
|
+
"docs/rules/**",
|
|
88
|
+
"CHANGELOG.md"
|
|
89
|
+
],
|
|
90
|
+
"workspaces": [
|
|
91
|
+
"docs/docusaurus"
|
|
92
|
+
],
|
|
93
|
+
"scripts": {
|
|
94
|
+
"prebench": "npm run build",
|
|
95
|
+
"bench": "node benchmarks/run-eslint-stats.mjs",
|
|
96
|
+
"prebench:compare": "npm run build",
|
|
97
|
+
"bench:compare": "node benchmarks/run-eslint-stats.mjs --iterations=6 --warmup=2 --compare=coverage/benchmarks/eslint-stats.json",
|
|
98
|
+
"prebench:eslint:stats": "npm run build",
|
|
99
|
+
"bench:eslint:stats": "node benchmarks/run-eslint-stats.mjs",
|
|
100
|
+
"prebench:eslint:timing": "npm run build",
|
|
101
|
+
"bench:eslint:timing": "cross-env TIMING=all eslint --config benchmarks/eslint-timing.config.mjs --stats \"test/fixtures/typed/*.invalid.ts\"",
|
|
102
|
+
"prebench:rule-benchmark": "npm run build",
|
|
103
|
+
"bench:rule-benchmark": "eslint-rule-benchmark run",
|
|
104
|
+
"prebench:ui": "npm run build",
|
|
105
|
+
"bench:ui": "vitest bench --ui",
|
|
106
|
+
"prebench:watch": "npm run build",
|
|
107
|
+
"bench:watch": "vitest bench",
|
|
108
|
+
"build": "tsc -b tsconfig.build.json --force && npm run build:types:cjs && npm run build:cjs && npm run build:configs:cjs",
|
|
109
|
+
"build:cjs": "esbuild dist/plugin.js --bundle --format=cjs --platform=node --packages=external --sourcemap --outfile=dist/plugin.cjs --footer:js=\"module.exports = Object.assign(module.exports.default, module.exports);\"",
|
|
110
|
+
"build:clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
111
|
+
"build:configs:cjs": "node -e \"const fs=require('node:fs');['grid-all','grid-recommended'].forEach(n=>{fs.writeFileSync('dist/configs/'+n+'.cjs','\\\"use strict\\\";\\nconst{gridPluginConfigs}=require(\\\"../plugin.cjs\\\");\\nmodule.exports=gridPluginConfigs[\\\"'+n+'\\\"];\\n','utf8');fs.writeFileSync('dist/configs/'+n+'.d.cts','import type{GridShareableConfig}from\\\"../plugin.cjs\\\";\\ndeclare const config:GridShareableConfig;\\nexport=config;\\n','utf8');})\"",
|
|
112
|
+
"build:eslint-inspector": "npx -y @eslint/config-inspector@latest build --outDir \"docs/docusaurus/static/eslint-inspector\" --base \"/stylelint-plugin-grid/eslint-inspector/\"",
|
|
113
|
+
"build:eslint-inspector:local": "npx @eslint/config-inspector",
|
|
114
|
+
"build:stylelint-inspector": "npx -y stylelint-config-inspector@latest build --outDir \"docs/docusaurus/static/stylelint-inspector\" --base \"/stylelint-plugin-grid/stylelint-inspector/\"",
|
|
115
|
+
"build:stylelint-inspector:local": "npx stylelint-config-inspector@latest",
|
|
116
|
+
"build:types:cjs": "node -e \"require('node:fs').copyFileSync('dist/plugin.d.ts','dist/plugin.d.cts')\"",
|
|
117
|
+
"changelog:generate": "git-cliff --config cliff.toml --output CHANGELOG.md",
|
|
118
|
+
"changelog:preview": "git-cliff --config cliff.toml --unreleased",
|
|
119
|
+
"changelog:release-notes": "git-cliff --config cliff.toml --latest --strip all",
|
|
120
|
+
"clean:cache": "node scripts/clean-paths.mjs dist coverage cache .cache .vite .turbo",
|
|
121
|
+
"clean:cache:coverage": "node scripts/clean-paths.mjs coverage .coverage",
|
|
122
|
+
"clean:cache:dist": "node scripts/clean-paths.mjs dist release",
|
|
123
|
+
"clean:cache:eslint": "node scripts/clean-paths.mjs .cache/.eslintcache",
|
|
124
|
+
"clean:cache:ncu": "node scripts/clean-paths.mjs .cache/.ncu-cache.json",
|
|
125
|
+
"clean:cache:prettier": "node scripts/clean-paths.mjs .cache/.prettier-cache .prettier-cache .prettiercache",
|
|
126
|
+
"clean:cache:stryker": "node scripts/clean-paths.mjs .stryker-tmp",
|
|
127
|
+
"clean:cache:stylelint": "node scripts/clean-paths.mjs .cache/stylelintcache stylelintcache .stylelintcache",
|
|
128
|
+
"clean:cache:temp": "node scripts/clean-paths.mjs .temp",
|
|
129
|
+
"clean:cache:typescript": "node scripts/clean-paths.mjs .cache/**/*.tsbuildinfo .cache/builds",
|
|
130
|
+
"clean:cache:vite": "node scripts/clean-paths.mjs .cache/vite .cache/vitest .cache/vitest-zero-coverage .cache/vite-zero-coverage",
|
|
131
|
+
"clean:database": "node -e \"const p=require('node:path');const fs=require('node:fs');if(process.env.APPDATA){fs.rmSync(p.join(process.env.APPDATA,'uptime-watcher','uptime-watcher.sqlite'),{force:true});}\"",
|
|
132
|
+
"clean:docs": "node scripts/clean-paths.mjs docs/docusaurus/.docusaurus docs/docusaurus/build docs/docusaurus/site-docs/developer/api",
|
|
133
|
+
"clean:docusaurus": "npm run clean:docs && npm run --workspace docs/docusaurus clear",
|
|
134
|
+
"cognitive-complexity": "cognitive-complexity-ts --threshold 10",
|
|
135
|
+
"precommit": "npm run sync:rules:write",
|
|
136
|
+
"commit": "git-cz",
|
|
137
|
+
"contrib": "all-contributors",
|
|
138
|
+
"contrib:add": "all-contributors add",
|
|
139
|
+
"contrib:check": "all-contributors check",
|
|
140
|
+
"contrib:compare": "npm run contrib:check",
|
|
141
|
+
"contrib:generate": "all-contributors generate",
|
|
142
|
+
"coverage": "vitest run --coverage",
|
|
143
|
+
"docs:api": "npm run --workspace docs/docusaurus docs:api",
|
|
144
|
+
"docs:build": "npm run --workspace docs/docusaurus build",
|
|
145
|
+
"docs:check-links": "npm run docs:api && node ./scripts/check-doc-links.mjs",
|
|
146
|
+
"docs:devtools:metadata": "node scripts/generate-devtools-workspace-metadata.mjs",
|
|
147
|
+
"docs:serve": "npm run --workspace docs/docusaurus serve",
|
|
148
|
+
"docs:start": "npm run --workspace docs/docusaurus start",
|
|
149
|
+
"docs:start:devtools": "npm run docs:devtools:metadata && npm run docs:typedoc && npm run --workspace docs/docusaurus start:devtools",
|
|
150
|
+
"docs:toc": "remark docs --use remark-toc --output",
|
|
151
|
+
"docs:typecheck": "npm run --workspace docs/docusaurus typecheck",
|
|
152
|
+
"docs:typedoc": "npm run --workspace docs/docusaurus docs:api",
|
|
153
|
+
"docs:validate-links": "remark docs --use remark-validate-links --frail",
|
|
154
|
+
"knip": "cross-env NODE_OPTIONS=--max_old_space_size=4096 NODE_NO_WARNINGS=1 npx knip -c knip.config.ts --include-libs --cache --cache-location .cache/knip --tsConfig tsconfig.json",
|
|
155
|
+
"lint": "cross-env NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content --cache-location .cache/.eslintcache",
|
|
156
|
+
"lint:action": "npm run lint:actions",
|
|
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",
|
|
161
|
+
"lint:circular": "npm run madge:circular",
|
|
162
|
+
"lint:compat:stylelint16": "node scripts/run-stylelint16-compat.mjs",
|
|
163
|
+
"lint:config:build": "npm run build:eslint-inspector",
|
|
164
|
+
"lint:config:inspect": "npx eslint --inspect-config",
|
|
165
|
+
"prelint:css": "npm run build",
|
|
166
|
+
"lint:css": "stylelint --cache --config stylelint.config.mjs --cache-strategy content --cache-location .cache/stylelintcache src/ docs/ --custom-formatter stylelint-formatter-pretty && echo \"Stylelint done!\"",
|
|
167
|
+
"prelint:css:fix": "npm run build",
|
|
168
|
+
"lint:css:fix": "stylelint --cache --config stylelint.config.mjs --cache-strategy content --cache-location .cache/stylelintcache src/ docs/ --custom-formatter stylelint-formatter-pretty --fix && echo \"Stylelint done!\"",
|
|
169
|
+
"lint:depcheck": "npm run knip -- --include unlisted,unresolved",
|
|
170
|
+
"lint:deps": "npm run knip",
|
|
171
|
+
"lint:dupes": "jscpd src/ --config jscpd.json",
|
|
172
|
+
"lint:dupes:all": "jscpd src/ --config jscpd.json --min-lines 3",
|
|
173
|
+
"lint:dupes:skiplocal": "jscpd src/ --skipLocal --config jscpd.json",
|
|
174
|
+
"lint:dupes:skiplocal:all": "jscpd src/ --skipLocal --config jscpd.json --min-lines 3",
|
|
175
|
+
"lint:duplicates": "npm run lint:dupes",
|
|
176
|
+
"lint:exports": "ts-unused-exports tsconfig.json src/plugin.ts --excludePathsFromReport=plugin.ts",
|
|
177
|
+
"lint:fix": "cross-env NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content --cache-location .cache/.eslintcache --fix",
|
|
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:grype": "grype . -c .grype.yaml --name stylelint-plugin-grid",
|
|
180
|
+
"lint:knip": "npm run knip",
|
|
181
|
+
"lint:knip:exports": "npm run knip -- --include exports,nsExports,classMembers,types,nsTypes,enumMembers,duplicates",
|
|
182
|
+
"lint:knip:unused:exports": "npm run knip -- --dependencies --exports",
|
|
183
|
+
"lint:leaves": "npm run madge:leaves",
|
|
184
|
+
"lint:metrics": "npm run sloc",
|
|
185
|
+
"lint:node-version-files": "node scripts/sync-node-version-files.mjs --check-current",
|
|
186
|
+
"lint:orphans": "npm run madge:orphans",
|
|
187
|
+
"lint:package": "npm run lint:node-version-files && npm run lint:package-sort && npm run lint:packagelintrc && echo \"Package.json lint done!\"",
|
|
188
|
+
"lint:package:strict": "npm run lint:node-version-files && npm run lint:package-sort && npm run lint:package-check:strict && npm run lint:packagelintrc && echo \"Package.json lint done!\"",
|
|
189
|
+
"lint:package-check": "publint && node scripts/run-attw-pack.mjs --pack .",
|
|
190
|
+
"lint:package-check:strict": "publint && node scripts/run-attw-pack.mjs --pack . --profile strict",
|
|
191
|
+
"lint:package-sort": "sort-package-json \"./package.json\" \"./docs/docusaurus/package.json\"",
|
|
192
|
+
"lint:package-sort-check": "sort-package-json --check \"./package.json\" \"./docs/docusaurus/package.json\"",
|
|
193
|
+
"lint:packagelintrc": "npmPkgJsonLint . --config .npmpackagejsonlintrc.json",
|
|
194
|
+
"lint:prettier": "prettier . --log-level warn --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --check",
|
|
195
|
+
"lint:prettier:fix": "prettier . --log-level warn --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --write",
|
|
196
|
+
"lint:publint": "publint",
|
|
197
|
+
"lint:quiet": "cross-env ESLINT_PROGRESS=nofile NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content --cache-location .cache/.eslintcache && echo \"Eslint done!\"",
|
|
198
|
+
"lint:remark": "remark --rc-path .remarkrc.mjs --silently-ignore --ignore-path .remarkignore --frail \"*.{md,mdx}\" \"docs/**/*.{md,mdx}\" --quiet",
|
|
199
|
+
"lint:remark:fix": "prettier --log-level warn --ignore-path prettierignore.remark --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --no-error-on-unmatched-pattern --write \"*.{md,mdx}\" \"docs/**/*.{md,mdx}\" && npm run remark:fix",
|
|
200
|
+
"lint:secretlint": "secretlint --secretlintrc .secretlintrc.cjs --secretlintignore .secretlintignore \"./*\" \".vscode/**\" \"assets/**\" \"src/**\" \"electron/**\" \"shared/**\" \"config/**\" \"scripts/**\" \"playwright/**\" \"storybook/**\" \".storybook\" \"tests/**\" \"benchmarks/**\" \".devin/**\" \"public/**\" \".github/**\" \"docs/Architecture/**\" \"docs/*\" \"docs/assets/**\" \"docs/Guides/**\" \"docs/Testing/**\" \"docs/TSDoc/**\" \"docs/docusaurus/src/**\" \"docs/docusaurus/static/**\" \"docs/docusaurus/blog/**\" \"docs/docusaurus/docs/**\" \"docs/docusaurus/docs/*\"",
|
|
201
|
+
"lint:secrets": "detect-secrets scan",
|
|
202
|
+
"lint:unused": "npm run knip -- --include unlisted,unresolved,duplicates",
|
|
203
|
+
"lint:unused-deps": "npm run knip -- --dependencies",
|
|
204
|
+
"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
|
+
"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!\"",
|
|
206
|
+
"madge:circular": "node scripts/check-circular-deps.mjs",
|
|
207
|
+
"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
|
+
"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
|
+
"open:coverage": "open-cli coverage/index.html",
|
|
210
|
+
"prepublishOnly": "npm run release:check",
|
|
211
|
+
"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",
|
|
213
|
+
"remark:fix": "remark --rc-path .remarkrc.mjs --silently-ignore --ignore-path .remarkignore --frail --quiet --output -- \"*.{md,mdx}\" \"docs/**/*.{md,mdx}\"",
|
|
214
|
+
"remark:test-config": "remark --rc-path .remarkrc.mjs --silently-ignore --ignore-path .remarkignore --frail \"README.md\"",
|
|
215
|
+
"sync:configs-rules-matrix": "node scripts/sync-configs-rules-matrix.mjs",
|
|
216
|
+
"sync:configs-rules-matrix:write": "node scripts/sync-configs-rules-matrix.mjs --write",
|
|
217
|
+
"sync:node-version-files": "node scripts/sync-node-version-files.mjs",
|
|
218
|
+
"sync:peer-stylelint-range": "node scripts/sync-peer-stylelint-range.mjs",
|
|
219
|
+
"sync:presets-rules-matrix": "node scripts/sync-presets-rules-matrix.mjs",
|
|
220
|
+
"sync:readme-rules-table": "node scripts/sync-readme-rules-table.mjs",
|
|
221
|
+
"sync:readme-rules-table:update": "node scripts/sync-readme-rules-table.mjs --write",
|
|
222
|
+
"sync:readme-rules-table:write": "node scripts/sync-readme-rules-table.mjs --write",
|
|
223
|
+
"sync:rules:check": "npm run build && npm run sync:readme-rules-table && npm run sync:configs-rules-matrix",
|
|
224
|
+
"sync:rules:write": "npm run build && npm run sync:readme-rules-table:write && npm run sync:configs-rules-matrix:write",
|
|
225
|
+
"pretest": "npm run build",
|
|
226
|
+
"test": "vitest run",
|
|
227
|
+
"test:ci": "cross-env CI=true vitest run --reporter=default",
|
|
228
|
+
"test:coverage": "vitest run --coverage --reporter=default",
|
|
229
|
+
"test:coverage:detailed": "vitest run --coverage --reporter=verbose",
|
|
230
|
+
"test:coverage:minimal": "vitest run --coverage --reporter=dot",
|
|
231
|
+
"test:coverage:open": "npm run test:coverage && npm run open:coverage",
|
|
232
|
+
"test:coverage:quiet": "vitest run --coverage --reporter=default --silent",
|
|
233
|
+
"test:coverage:verbose": "vitest run --coverage --reporter=verbose",
|
|
234
|
+
"test:detailed": "vitest run --reporter=verbose",
|
|
235
|
+
"test:docs-guardrails": "vitest run test/stylelint-docs-guardrails.test.ts",
|
|
236
|
+
"test:minimal": "vitest run --reporter=dot",
|
|
237
|
+
"test:open": "npm run test:coverage && npm run open:coverage",
|
|
238
|
+
"test:quiet": "vitest run --reporter=default --silent",
|
|
239
|
+
"test:serial": "cross-env MAX_THREADS=1 vitest run",
|
|
240
|
+
"test:stryker": "stryker run --ignoreStatic --concurrency 12 --incrementalFile .cache/stryker/incremental-fast.json",
|
|
241
|
+
"test:stryker:ci": "cross-env CI=true stryker run --ignoreStatic --concurrency 2 --incrementalFile .cache/stryker/incremental-fast-ci.json",
|
|
242
|
+
"test:stryker:full": "stryker run --concurrency 12 --incrementalFile .cache/stryker/incremental-full.json",
|
|
243
|
+
"test:stryker:full:ci": "cross-env CI=true stryker run --concurrency 2 --incrementalFile .cache/stryker/incremental-full-ci.json",
|
|
244
|
+
"test:verbose": "vitest run --reporter=verbose",
|
|
245
|
+
"test:watch": "vitest",
|
|
246
|
+
"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
|
+
"typecheck:all": "npm run typecheck",
|
|
248
|
+
"types:update": "typesync",
|
|
249
|
+
"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
|
+
"verify:readme-rules-table": "npm run build && npm run sync:readme-rules-table"
|
|
251
|
+
},
|
|
252
|
+
"overrides": {
|
|
253
|
+
"jsonc-eslint-parser": "$jsonc-eslint-parser"
|
|
254
|
+
},
|
|
255
|
+
"dependencies": {
|
|
256
|
+
"postcss-selector-parser": "^7.1.1",
|
|
257
|
+
"ts-extras": "^1.0.0",
|
|
258
|
+
"type-fest": "^5.6.0"
|
|
259
|
+
},
|
|
260
|
+
"devDependencies": {
|
|
261
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
262
|
+
"@csstools/stylelint-formatter-github": "^2.0.0",
|
|
263
|
+
"@double-great/remark-lint-alt-text": "^1.1.1",
|
|
264
|
+
"@eslint/config-inspector": "^3.0.4",
|
|
265
|
+
"@microsoft/tsdoc-config": "^0.18.1",
|
|
266
|
+
"@stryker-ignorer/console-all": "^0.3.2",
|
|
267
|
+
"@stryker-mutator/core": "^9.6.1",
|
|
268
|
+
"@stryker-mutator/typescript-checker": "^9.6.1",
|
|
269
|
+
"@stryker-mutator/vitest-runner": "^9.6.1",
|
|
270
|
+
"@types/htmlhint": "^1.1.5",
|
|
271
|
+
"@types/madge": "^5.0.3",
|
|
272
|
+
"@types/node": "^25.9.1",
|
|
273
|
+
"@types/sloc": "^0.2.3",
|
|
274
|
+
"@typescript-eslint/rule-tester": "^8.60.0",
|
|
275
|
+
"@vitest/coverage-v8": "^4.1.7",
|
|
276
|
+
"@vitest/ui": "^4.1.7",
|
|
277
|
+
"actionlint": "^2.0.6",
|
|
278
|
+
"all-contributors-cli": "^6.26.1",
|
|
279
|
+
"cognitive-complexity-ts": "^0.8.2",
|
|
280
|
+
"commitlint": "^21.0.1",
|
|
281
|
+
"commitlint-config-gitmoji": "^2.3.1",
|
|
282
|
+
"cross-env": "^10.1.0",
|
|
283
|
+
"detect-secrets": "^1.0.6",
|
|
284
|
+
"eslint": "^10.4.0",
|
|
285
|
+
"eslint-config-nick2bad4u": "^1.2.0",
|
|
286
|
+
"eslint-formatter-unix": "^9.0.1",
|
|
287
|
+
"eslint-rule-benchmark": "^0.8.0",
|
|
288
|
+
"fast-check": "^4.8.0",
|
|
289
|
+
"git-cliff": "^2.13.1",
|
|
290
|
+
"gitleaks-secret-scanner": "^2.1.1",
|
|
291
|
+
"htmlhint": "^1.9.2",
|
|
292
|
+
"jscpd": "^4.2.4",
|
|
293
|
+
"knip": "^6.14.2",
|
|
294
|
+
"leasot": "^14.4.0",
|
|
295
|
+
"madge": "^8.0.0",
|
|
296
|
+
"markdown-link-check": "^3.14.2",
|
|
297
|
+
"npm-check-updates": "^22.2.1",
|
|
298
|
+
"npm-package-json-lint": "^10.4.0",
|
|
299
|
+
"picocolors": "^1.1.1",
|
|
300
|
+
"postcss": "^8.5.15",
|
|
301
|
+
"prettier": "^3.8.3",
|
|
302
|
+
"prettier-config-nick2bad4u": "^1.0.13",
|
|
303
|
+
"publint": "^0.3.21",
|
|
304
|
+
"rehype-katex": "^7.0.1",
|
|
305
|
+
"remark": "^15.0.1",
|
|
306
|
+
"remark-cli": "^12.0.1",
|
|
307
|
+
"remark-config-nick2bad4u": "^1.0.2",
|
|
308
|
+
"secretlint": "^13.0.2",
|
|
309
|
+
"secretlint-config-nick2bad4u": "^1.0.5",
|
|
310
|
+
"sloc": "^0.3.2",
|
|
311
|
+
"sort-package-json": "^3.6.1",
|
|
312
|
+
"storybook": "^10.4.1",
|
|
313
|
+
"stylelint": "^17.12.0",
|
|
314
|
+
"stylelint-config-nick2bad4u": "^1.0.12",
|
|
315
|
+
"ts-unused-exports": "^11.0.1",
|
|
316
|
+
"typedoc": "^0.28.19",
|
|
317
|
+
"typescript": "^6.0.3",
|
|
318
|
+
"typescript-eslint": "^8.60.0",
|
|
319
|
+
"typesync": "^0.14.3",
|
|
320
|
+
"vfile": "^6.0.3",
|
|
321
|
+
"vite": "^8.0.14",
|
|
322
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
323
|
+
"vitest": "^4.1.7",
|
|
324
|
+
"yamllint-js": "^0.2.4"
|
|
325
|
+
},
|
|
326
|
+
"peerDependencies": {
|
|
327
|
+
"stylelint": "^16.0.0 || ^17.12.0"
|
|
328
|
+
},
|
|
329
|
+
"peerDependenciesMeta": {
|
|
330
|
+
"stylelint": {
|
|
331
|
+
"optional": false
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"packageManager": "npm@11.16.0",
|
|
335
|
+
"engines": {
|
|
336
|
+
"node": ">=22.0.0"
|
|
337
|
+
},
|
|
338
|
+
"devEngines": {
|
|
339
|
+
"runtime": {
|
|
340
|
+
"name": "node",
|
|
341
|
+
"version": ">=22.0.0",
|
|
342
|
+
"onFail": "error"
|
|
343
|
+
},
|
|
344
|
+
"packageManager": {
|
|
345
|
+
"name": "npm",
|
|
346
|
+
"version": ">=11.0.0",
|
|
347
|
+
"onFail": "error"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"publishConfig": {
|
|
351
|
+
"provenance": true,
|
|
352
|
+
"registry": "https://registry.npmjs.org/"
|
|
353
|
+
},
|
|
354
|
+
"readme": "README.md"
|
|
355
|
+
}
|