Skip to content

Commit db3c1d5

Browse files
committed
fixed prettier glob
1 parent 3b7145d commit db3c1d5

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"ci": "yarn run lint:js && yarn run test",
99
"precommit": "lint-staged && yarn run lint",
1010
"eslint-check": "eslint --print-config .eslintrc | eslint-config-prettier-check",
11-
"format:js": "prettier --single-quote --trailing-comma all --no-semi --print-width 180 --write \"{src,test}/**/*.mjs\"",
11+
"format:js": "prettier --single-quote --trailing-comma all --no-semi --print-width 180 --write \"{src,test}/**/*.{,m}js\"",
1212
"postinstall": "yarn run check:node",
1313
"lint": "yarn run lint:js",
1414
"lint:js": "eslint ./src ./test --ext=js",

test/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const {sync: globSync} = require("glob");
2-
(async () => {
3-
const matches = globSync("test/**/*.mjs");
1+
const { sync: globSync } = require('glob')
2+
;(async () => {
3+
const matches = globSync('test/**/*.mjs')
44
for (const match of matches) {
5-
await import('../' + match);
5+
await import('../' + match)
66
}
7-
run();
8-
})();
7+
run()
8+
})()

0 commit comments

Comments
 (0)