Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Mar 30, 2022
1 parent c49e9ad commit 094a715
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .prettierrc
@@ -1 +1,4 @@
{}
overrides:
- files: "**/*.{js,mjs}"
options:
parser: meriyah
5 changes: 3 additions & 2 deletions scripts/check-deps.mjs
@@ -1,9 +1,10 @@
import fs from "node:fs/promises";
import chalk from "chalk";

const packageJson = JSON.parse(
await fs.readFile(new URL("../package.json", import.meta.url))
const packageJsonContent = await fs.readFile(
new URL("../package.json", import.meta.url)
);
const packageJson = JSON.parse(packageJsonContent);

validateDependencyObject(packageJson.dependencies);
validateDependencyObject(packageJson.devDependencies);
Expand Down
3 changes: 2 additions & 1 deletion scripts/clean-cspell.mjs
Expand Up @@ -16,7 +16,8 @@ const runSpellcheck = (options) => {
};

console.log("Empty words ...");
const config = JSON.parse(await fs.readFile(CSPELL_CONFIG_FILE));
const configFileContent = await fs.readFile(CSPELL_CONFIG_FILE);
const config = JSON.parse(configFileContent);
const original = config.words;
await updateConfig({ ...config, words: [] });

Expand Down

0 comments on commit 094a715

Please sign in to comment.