From 52ec456ab2d077f409fc3f06981c66630cb3c721 Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Sat, 8 Jan 2022 12:14:07 +0800 Subject: [PATCH] Add final new line to `cspell.json` file (#12049) --- .editorconfig | 1 - .prettierignore | 1 - cspell.json | 2 +- scripts/clean-cspell.mjs | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index d18a28ff4..3e5834d00 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,7 +10,6 @@ insert_final_newline = true [cspell.json] indent_size = 4 -insert_final_newline = false [{,website/blog/,changelog_unreleased/**/}*.md] trim_trailing_whitespace = false diff --git a/.prettierignore b/.prettierignore index 37b755dc4..5d2988384 100644 --- a/.prettierignore +++ b/.prettierignore @@ -9,5 +9,4 @@ coverage/ /website/build/ /website/static/lib/ /website/static/playground.js -cspell.json .nyc_output diff --git a/cspell.json b/cspell.json index b6d708a89..97f21909e 100644 --- a/cspell.json +++ b/cspell.json @@ -390,4 +390,4 @@ "website/static/lib/**", "website/static/playground.js" ] -} \ No newline at end of file +} diff --git a/scripts/clean-cspell.mjs b/scripts/clean-cspell.mjs index 818949653..75868fc7b 100644 --- a/scripts/clean-cspell.mjs +++ b/scripts/clean-cspell.mjs @@ -5,7 +5,7 @@ import execa from "execa"; const CSPELL_CONFIG_FILE = new URL("../cspell.json", import.meta.url); const updateConfig = (config) => - fs.writeFile(CSPELL_CONFIG_FILE, JSON.stringify(config, undefined, 4)); + fs.writeFile(CSPELL_CONFIG_FILE, JSON.stringify(config, undefined, 4) + "\n"); const runSpellcheck = (options) => { const { yarnArgs, args, execaOptions } = { yarnArgs: [],