Skip to content

Commit 16f03b8

Browse files
committed
Update Prettier
1 parent b06d618 commit 16f03b8

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

bin/cli.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ const prettier = require("../prettier");
99
// Require locally installed eslint, for `npx eslint-config-prettier` support
1010
// with no local eslint-config-prettier installation.
1111
const localRequire = (request) =>
12-
require(require.resolve(request, {
13-
paths: [process.cwd(), ...require.resolve.paths("eslint")],
14-
}));
12+
require(
13+
require.resolve(request, {
14+
paths: [process.cwd(), ...require.resolve.paths("eslint")],
15+
})
16+
);
1517

1618
let experimentalApi = {};
1719
try {

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"eslint-plugin-vue": "9.19.2",
3737
"globals": "13.23.0",
3838
"jest": "29.7.0",
39-
"prettier": "3.0.0",
39+
"prettier": "3.1.0",
4040
"typescript": "5.3.2",
4141
"vue-eslint-parser": "9.3.2"
4242
}

test/rules.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ describe("all plugins have tests in test-lint/", () => {
8181
plugin === "vue"
8282
? "vue-file.vue"
8383
: plugin === "@typescript-eslint"
84-
? `${plugin}.ts`
85-
: `${plugin}.js`;
84+
? `${plugin}.ts`
85+
: `${plugin}.js`;
8686
expect(fs.existsSync(path.join(ROOT, "test-lint", testFileName))).toBe(
8787
true
8888
);

0 commit comments

Comments
 (0)