Skip to content

Commit 620cbc2

Browse files
committed
chore: update .eslintignore and .prettierignore
1 parent bef4f4b commit 620cbc2

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.github
2-
bin
2+
bin/__tests__
33
playground
44
src/__tests__
55
transformations/__testfixtures__

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.github
2-
bin
2+
bin/__tests__
33
playground
44
src/__tests__
55
transformations/__testfixtures__

bin/vue-codemod.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,34 @@ const {
2323
_: files,
2424
transformation: transformationName,
2525
runAllTransformation: runAllTransformation,
26-
params,
26+
params
2727
} = yargs
2828
.usage('Usage: $0 [file pattern]')
2929
.option('transformation', {
3030
alias: 't',
3131
type: 'string',
3232
conflicts: 'runAllTransformation',
33-
describe: 'Name or path of the transformation module',
33+
describe: 'Name or path of the transformation module'
3434
})
3535
.option('params', {
3636
alias: 'p',
37-
describe: 'Custom params to the transformation',
37+
describe: 'Custom params to the transformation'
3838
})
3939
.option('runAllTransformation', {
4040
alias: 'a',
4141
type: 'boolean',
4242
conflicts: 'transformation',
43-
describe: 'run all transformation module',
43+
describe: 'run all transformation module'
4444
})
4545
.example([
4646
[
4747
'npx vue-codemod ./src -a',
48-
'Run all rules to convert all relevant files in the ./src folder',
48+
'Run all rules to convert all relevant files in the ./src folder'
4949
],
5050
[
5151
'npx vue-codemod ./src/components/HelloWorld.vue -t slot-attribute',
52-
'Run slot-attribute rule to convert HelloWorld.vue',
53-
],
52+
'Run slot-attribute rule to convert HelloWorld.vue'
53+
]
5454
])
5555
.help()
5656
.alias('h', 'help').argv
@@ -99,7 +99,7 @@ function processTransformation(
9999
debug(`Processing ${p}…`)
100100
const fileInfo = {
101101
path: p,
102-
source: fs.readFileSync(p).toString(),
102+
source: fs.readFileSync(p).toString()
103103
}
104104
const extension = (/\.([^.]*)$/.exec(fileInfo.path) || [])[0]
105105
if (!extensions.includes(extension)) {
@@ -119,7 +119,7 @@ function processTransformation(
119119
}
120120
}
121121

122-
main().catch((err) => {
122+
main().catch(err => {
123123
console.error(err)
124124
process.exit(1)
125125
})

0 commit comments

Comments
 (0)