Skip to content

Commit

Permalink
fix path to prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Krantz committed Apr 4, 2024
1 parent 1d5264f commit 260cf23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/office-addin-lint/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
"program": "${workspaceFolder}/lib/cli.js",
"args": ["check"]
},
{
"name": "Command Line: prettier",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/lib/cli.js",
"args": ["prettier"]
},
{
"type": "node",
"request": "launch",
Expand Down
2 changes: 1 addition & 1 deletion packages/office-addin-lint/src/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const eslintPath = require.resolve("eslint");
const prettierPath = require.resolve("prettier");
const eslintDir = path.parse(eslintPath).dir;
const eslintFilePath = path.resolve(eslintDir, "../bin/eslint.js");
const prettierFilePath = path.resolve(prettierPath, "../bin-prettier.js");
const prettierFilePath = path.resolve(prettierPath, "../bin/prettier.cjs");
const eslintConfigPath = path.resolve(__dirname, "../config/.eslintrc.json");
const eslintTestConfigPath = path.resolve(__dirname, "../config/.eslintrc.test.json");

Expand Down

0 comments on commit 260cf23

Please sign in to comment.