Skip to content

Commit

Permalink
fix: fix importMeta error by updating to stylelint 16
Browse files Browse the repository at this point in the history
  • Loading branch information
strawberry-choco committed Jul 29, 2024
1 parent 152eafb commit 0e3dfb6
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 285 deletions.
8 changes: 4 additions & 4 deletions packages/vite-plugin-checker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
"@types/fs-extra": "^11.0.1",
"@vue/language-core": "^2.0.14",
"esbuild": "^0.14.27",
"meow": "^9.0.0",
"meow": "^13.2.0",
"npm-run-all2": "^5.0.0",
"stylelint": "^14.0.0",
"stylelint": "^16.0.0",
"tsup": "^6.7.0",
"typescript": "^5.5.3",
"vls": "^0.8.5",
Expand All @@ -69,9 +69,9 @@
"peerDependencies": {
"@biomejs/biome": ">=1.7",
"eslint": ">=7",
"meow": "^9.0.0",
"meow": "^13.2.0",
"optionator": "^0.9.1",
"stylelint": ">=13",
"stylelint": ">=16",
"typescript": "*",
"vite": ">=2.0.0",
"vls": "*",
Expand Down
31 changes: 16 additions & 15 deletions packages/vite-plugin-checker/src/checkers/stylelint/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export const translateOptions = async (command: string) => {
const result = meow({
autoHelp: false,
autoVersion: false,
importMeta: import.meta,
help: `
Usage: stylelint [input] [options]
Input: Files(s), glob(s), or nothing to use stdin.
Expand Down Expand Up @@ -182,7 +183,7 @@ export const translateOptions = async (command: string) => {
`,
flags: {
allowEmptyInput: {
alias: 'aei',
shortFlag: 'aei',
type: 'boolean',
},
cache: {
Expand Down Expand Up @@ -210,60 +211,60 @@ export const translateOptions = async (command: string) => {
type: 'string',
},
disableDefaultIgnores: {
alias: 'di',
shortFlag: 'di',
type: 'boolean',
},
fix: {
type: 'boolean',
},
formatter: {
alias: 'f',
shortFlag: 'f',
default: 'string',
type: 'string',
},
help: {
alias: 'h',
shortFlag: 'h',
type: 'boolean',
},
ignoreDisables: {
alias: 'id',
shortFlag: 'id',
type: 'boolean',
},
ignorePath: {
alias: 'i',
shortFlag: 'i',
type: 'string',
isMultiple: true,
},
ignorePattern: {
alias: 'ip',
shortFlag: 'ip',
type: 'string',
isMultiple: true,
},
maxWarnings: {
alias: 'mw',
shortFlag: 'mw',
type: 'number',
},
outputFile: {
alias: 'o',
shortFlag: 'o',
type: 'string',
},
printConfig: {
type: 'boolean',
},
quiet: {
alias: 'q',
shortFlag: 'q',
type: 'boolean',
},
reportDescriptionlessDisables: {
alias: 'rdd',
shortFlag: 'rdd',
type: 'boolean',
},
reportInvalidScopeDisables: {
alias: 'risd',
shortFlag: 'risd',
type: 'boolean',
},
reportNeedlessDisables: {
alias: 'rd',
shortFlag: 'rd',
type: 'boolean',
},
stdin: {
Expand All @@ -273,11 +274,11 @@ export const translateOptions = async (command: string) => {
type: 'string',
},
version: {
alias: 'v',
shortFlag: 'v',
type: 'boolean',
},
globbyOptions: {
alias: 'go',
shortFlag: 'go',
type: 'string',
},
},
Expand Down
6 changes: 3 additions & 3 deletions playground/stylelint-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"meow": "^9.0.0",
"stylelint": "^14.0.0",
"stylelint-config-standard": "^28.0.0",
"meow": "^13.2.0",
"stylelint": "^16.0.0",
"stylelint-config-standard": "^36.0.0",
"typescript": "^5.5.3",
"vite": "^5.3.2",
"vite-plugin-checker": "workspace:*"
Expand Down
Loading

0 comments on commit 0e3dfb6

Please sign in to comment.