Skip to content

Commit

Permalink
Update Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Dec 2, 2023
1 parent b06d618 commit 16f03b8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
8 changes: 5 additions & 3 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ const prettier = require("../prettier");
// Require locally installed eslint, for `npx eslint-config-prettier` support
// with no local eslint-config-prettier installation.
const localRequire = (request) =>
require(require.resolve(request, {
paths: [process.cwd(), ...require.resolve.paths("eslint")],
}));
require(
require.resolve(request, {
paths: [process.cwd(), ...require.resolve.paths("eslint")],
})
);

let experimentalApi = {};
try {
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"eslint-plugin-vue": "9.19.2",
"globals": "13.23.0",
"jest": "29.7.0",
"prettier": "3.0.0",
"prettier": "3.1.0",
"typescript": "5.3.2",
"vue-eslint-parser": "9.3.2"
}
Expand Down
4 changes: 2 additions & 2 deletions test/rules.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ describe("all plugins have tests in test-lint/", () => {
plugin === "vue"
? "vue-file.vue"
: plugin === "@typescript-eslint"
? `${plugin}.ts`
: `${plugin}.js`;
? `${plugin}.ts`
: `${plugin}.js`;
expect(fs.existsSync(path.join(ROOT, "test-lint", testFileName))).toBe(
true
);
Expand Down

0 comments on commit 16f03b8

Please sign in to comment.