Skip to content

Commit

Permalink
chore: change prettier version to exact (#3386)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed May 12, 2021
1 parent eee81aa commit a08465c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"node-fetch": "^2.6.1",
"npm-run-all": "^4.1.5",
"playwright-chromium": "^1.7.0",
"prettier": "^2.2.1",
"prettier": "2.3.0",
"rimraf": "^3.0.2",
"semver": "^7.3.4",
"sirv": "^1.0.10",
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-vue/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ async function genTemplateCode(
}
}

const exportDefaultClassRE = /(?:(?:^|\n|;)\s*)export\s+default\s+class\s+([\w$]+)/
const exportDefaultClassRE =
/(?:(?:^|\n|;)\s*)export\s+default\s+class\s+([\w$]+)/

async function genScriptCode(
descriptor: SFCDescriptor,
Expand Down
7 changes: 4 additions & 3 deletions packages/plugin-vue/src/utils/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ export interface VueQuery {
raw?: boolean
}

export function parseVueRequest(
id: string
): { filename: string; query: VueQuery } {
export function parseVueRequest(id: string): {
filename: string
query: VueQuery
} {
const [filename, rawQuery] = id.split(`?`, 2)
const query = qs.parse(rawQuery) as VueQuery
if (query.vue != null) {
Expand Down
3 changes: 2 additions & 1 deletion scripts/jestPerTestSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ beforeAll(async () => {
server = await (await createServer(options)).listen()
// use resolved port/base from server
const base = server.config.base === '/' ? '' : server.config.base
const url = (global.viteTestUrl = `http://localhost:${server.config.server.port}${base}`)
const url =
(global.viteTestUrl = `http://localhost:${server.config.server.port}${base}`)
await page.goto(url)
} else {
process.env.VITE_INLINE = 'inline-build'
Expand Down
3 changes: 2 additions & 1 deletion scripts/verifyCommit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const msgPath = process.env.GIT_PARAMS
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()

const releaseRE = /^v\d/
const commitRE = /^(revert: )?(feat|fix|docs|dx|refactor|perf|test|workflow|build|ci|chore|types|wip|release|deps)(\(.+\))?: .{1,50}/
const commitRE =
/^(revert: )?(feat|fix|docs|dx|refactor|perf|test|workflow|build|ci|chore|types|wip|release|deps)(\(.+\))?: .{1,50}/

if (!releaseRE.test(msg) && !commitRE.test(msg)) {
console.log()
Expand Down

0 comments on commit a08465c

Please sign in to comment.