Skip to content

Commit 3ec83ee

Browse files
fix(stylelint)!: require stylelint 16+ and update meow (#294)
1 parent a3c7388 commit 3ec83ee

File tree

4 files changed

+324
-357
lines changed

4 files changed

+324
-357
lines changed

packages/vite-plugin-checker/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
"@types/eslint": "^7.29.0",
5656
"@vue/language-core": "~2.1.6",
5757
"esbuild": "^0.25.0",
58-
"meow": "^9.0.0",
58+
"meow": "^13.2.0",
5959
"npm-run-all2": "^5.0.0",
60-
"stylelint": "^14.16.1",
60+
"stylelint": "^16.14.1",
6161
"tsup": "^6.7.0",
6262
"typescript": "^5.5.3",
6363
"vls": "^0.8.5",
@@ -67,9 +67,9 @@
6767
"peerDependencies": {
6868
"@biomejs/biome": ">=1.7",
6969
"eslint": ">=7",
70-
"meow": "^9.0.0",
70+
"meow": "^13.2.0",
7171
"optionator": "^0.9.1",
72-
"stylelint": ">=13",
72+
"stylelint": ">=16",
7373
"typescript": "*",
7474
"vite": ">=2.0.0",
7575
"vls": "*",

packages/vite-plugin-checker/src/checkers/stylelint/options.ts

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export const translateOptions = async (command: string) => {
9797
const result = meow({
9898
autoHelp: false,
9999
autoVersion: false,
100+
importMeta: import.meta,
100101
help: `
101102
Usage: stylelint [input] [options]
102103
Input: Files(s), glob(s), or nothing to use stdin.
@@ -182,7 +183,7 @@ export const translateOptions = async (command: string) => {
182183
`,
183184
flags: {
184185
allowEmptyInput: {
185-
alias: 'aei',
186+
shortFlag: 'aei',
186187
type: 'boolean',
187188
},
188189
cache: {
@@ -210,60 +211,60 @@ export const translateOptions = async (command: string) => {
210211
type: 'string',
211212
},
212213
disableDefaultIgnores: {
213-
alias: 'di',
214+
shortFlag: 'di',
214215
type: 'boolean',
215216
},
216217
fix: {
217218
type: 'boolean',
218219
},
219220
formatter: {
220-
alias: 'f',
221+
shortFlag: 'f',
221222
default: 'string',
222223
type: 'string',
223224
},
224225
help: {
225-
alias: 'h',
226+
shortFlag: 'h',
226227
type: 'boolean',
227228
},
228229
ignoreDisables: {
229-
alias: 'id',
230+
shortFlag: 'id',
230231
type: 'boolean',
231232
},
232233
ignorePath: {
233-
alias: 'i',
234+
shortFlag: 'i',
234235
type: 'string',
235236
isMultiple: true,
236237
},
237238
ignorePattern: {
238-
alias: 'ip',
239+
shortFlag: 'ip',
239240
type: 'string',
240241
isMultiple: true,
241242
},
242243
maxWarnings: {
243-
alias: 'mw',
244+
shortFlag: 'mw',
244245
type: 'number',
245246
},
246247
outputFile: {
247-
alias: 'o',
248+
shortFlag: 'o',
248249
type: 'string',
249250
},
250251
printConfig: {
251252
type: 'boolean',
252253
},
253254
quiet: {
254-
alias: 'q',
255+
shortFlag: 'q',
255256
type: 'boolean',
256257
},
257258
reportDescriptionlessDisables: {
258-
alias: 'rdd',
259+
shortFlag: 'rdd',
259260
type: 'boolean',
260261
},
261262
reportInvalidScopeDisables: {
262-
alias: 'risd',
263+
shortFlag: 'risd',
263264
type: 'boolean',
264265
},
265266
reportNeedlessDisables: {
266-
alias: 'rd',
267+
shortFlag: 'rd',
267268
type: 'boolean',
268269
},
269270
stdin: {
@@ -273,11 +274,11 @@ export const translateOptions = async (command: string) => {
273274
type: 'string',
274275
},
275276
version: {
276-
alias: 'v',
277+
shortFlag: 'v',
277278
type: 'boolean',
278279
},
279280
globbyOptions: {
280-
alias: 'go',
281+
shortFlag: 'go',
281282
type: 'string',
282283
},
283284
},

playground/stylelint-default/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"devDependencies": {
1717
"@types/react": "^18.3.18",
1818
"@types/react-dom": "^18.3.5",
19-
"meow": "^9.0.0",
20-
"stylelint": "^14.16.1",
21-
"stylelint-config-standard": "^28.0.0",
19+
"meow": "^13.2.0",
20+
"stylelint": "^16.14.1",
21+
"stylelint-config-standard": "^36.0.0",
2222
"typescript": "^5.5.3",
2323
"vite": "^5.4.14",
2424
"vite-plugin-checker": "workspace:*"

0 commit comments

Comments
 (0)