Skip to content

Commit d7f2009

Browse files
committed
fix format
1 parent 4bd58e8 commit d7f2009

File tree

8 files changed

+38
-308
lines changed

8 files changed

+38
-308
lines changed

.eslintrc.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,15 @@ module.exports = {
66
node: true,
77
jest: true
88
},
9-
extends: [
10-
'plugin:vue-libs/recommended'
11-
],
12-
plugins: [
13-
'@typescript-eslint'
14-
],
9+
extends: ['plugin:vue-libs/recommended'],
10+
plugins: ['@typescript-eslint'],
1511
parser: 'vue-eslint-parser',
1612
parserOptions: {
1713
parser: '@typescript-eslint/parser',
1814
sourceType: 'module'
1915
},
2016
rules: {
2117
'no-unused-vars': 'off', // HACK: due to override with @typescript-eslint/no-unused-vars
22-
'@typescript-eslint/no-unused-vars': [2, { 'vars': 'all', 'args': 'none' }]
18+
'@typescript-eslint/no-unused-vars': [2, { vars: 'all', args: 'none' }]
2319
}
2420
}

.vscode/settings.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"eslint.validate": [
3-
"javascript",
4-
{"language": "typescript", "autoFix": true}
5-
],
6-
"eslint.packageManager": "yarn",
7-
"eslint.enable": true,
8-
"typescript.tsdk": "node_modules/typescript/lib"
9-
}
2+
"eslint.validate": [
3+
"javascript",
4+
{ "language": "typescript", "autoFix": true }
5+
],
6+
"eslint.packageManager": "yarn",
7+
"eslint.enable": true,
8+
"typescript.tsdk": "node_modules/typescript/lib"
9+
}

jest.config.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
module.exports = {
44
preset: 'ts-jest',
55
testEnvironment: 'node',
6-
coveragePathIgnorePatterns: [
7-
'node_modules',
8-
'<rootDir>/test/*.*'
9-
],
6+
coveragePathIgnorePatterns: ['node_modules', '<rootDir>/test/*.*'],
107
globals: {
118
'ts-jest': {
129
diagnostics: false

renovate.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"extends": [
3-
"config:base",
4-
":preserveSemverRanges"
5-
],
2+
"extends": ["config:base", ":preserveSemverRanges"],
63
"labels": ["Type: Dependency"],
74
"automerge": true,
85
"major": {

ship.config.js

+11-13
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const path = require('path')
55
const read = promisify(fs.readFile)
66
const write = fs.writeFileSync
77

8-
function extractSpecificChangelog (changelog, version) {
8+
function extractSpecificChangelog(changelog, version) {
99
if (!changelog) {
1010
return null
1111
}
@@ -18,8 +18,12 @@ function extractSpecificChangelog (changelog, version) {
1818
return matches ? matches[1] : null
1919
}
2020

21-
async function commitChangelog (current, next) {
22-
const { stdout } = await execa('npx', ['lerna-changelog', '--next-version', `v${next}`])
21+
async function commitChangelog(current, next) {
22+
const { stdout } = await execa('npx', [
23+
'lerna-changelog',
24+
'--next-version',
25+
`v${next}`
26+
])
2327
const escapedVersion = next.replace(/\./g, '\\.')
2428
const regex = new RegExp(
2529
`(#+?\\s\\[?v?${escapedVersion}\\]?[\\s\\S]*?)(#+?\\s\\[?v?\\d\\.\\d\\.\\d\\]?)`,
@@ -41,16 +45,10 @@ module.exports = {
4145
commitChangelog(pkg.version, nextVersion).then(resolve)
4246
})
4347
},
44-
formatCommitMessage: ({
45-
version,
46-
releaseType,
47-
mergeStrategy,
48-
baseBranch
49-
}) => `${releaseType} release v${version}`,
50-
formatPullRequestTitle: ({
51-
version,
52-
releaseType
53-
}) => `${releaseType} release v${version}`,
48+
formatCommitMessage: ({ version, releaseType, mergeStrategy, baseBranch }) =>
49+
`${releaseType} release v${version}`,
50+
formatPullRequestTitle: ({ version, releaseType }) =>
51+
`${releaseType} release v${version}`,
5452
shouldRelease: () => true,
5553
releases: {
5654
extractChangelog: ({ version, dir }) => {

test/fixtures/locale.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"hello": "hello world!"
3-
}
3+
}

test/fixtures/message.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"en": {
33
"hello": "hello world!"
44
}
5-
}
5+
}

0 commit comments

Comments
 (0)