From c3c6427cb6c6d376d167d0640befb1c77aa399f5 Mon Sep 17 00:00:00 2001 From: RomanVasilyev Date: Sat, 5 Aug 2023 17:04:59 +0300 Subject: [PATCH] PLA-248 Make cspell.json editable --- .projen/files.json | 1 - cspell.json | 3 +-- src/apollo-server/__tests__/__snapshots__/index.ts.snap | 2 -- src/cdk/__tests__/__snapshots__/index.ts.snap | 2 -- src/common/lint/add-linters.ts | 2 +- src/nextjs/__tests__/__snapshots__/index.ts.snap | 2 -- src/sst/__tests__/__snapshots__/index.ts.snap | 2 -- 7 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.projen/files.json b/.projen/files.json index d6f0035c..c8d44105 100644 --- a/.projen/files.json +++ b/.projen/files.json @@ -12,7 +12,6 @@ ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", - "cspell.json", "LICENSE", "tsconfig.dev.json" ], diff --git a/cspell.json b/cspell.json index d8bfe7b8..47cce94b 100644 --- a/cspell.json +++ b/cspell.json @@ -60,6 +60,5 @@ "mergify", "nmpignore", "pjid" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"." + ] } diff --git a/src/apollo-server/__tests__/__snapshots__/index.ts.snap b/src/apollo-server/__tests__/__snapshots__/index.ts.snap index 740cb728..ed3b51e1 100644 --- a/src/apollo-server/__tests__/__snapshots__/index.ts.snap +++ b/src/apollo-server/__tests__/__snapshots__/index.ts.snap @@ -769,7 +769,6 @@ tsconfig.tsbuildinfo ".vscode/settings.json", "apollo.config.cjs", "codegen.yml", - "cspell.json", "Dockerfile", "esbuild.config.js", "LICENSE", @@ -1244,7 +1243,6 @@ generates: - typescript-graphql-request ", "cspell.json": { - "//": "~~ Generated by projen. To modify, edit .projenrc.mjs and run "npx projen".", "allowCompoundWords": true, "dictionaries": [ "typescript", diff --git a/src/cdk/__tests__/__snapshots__/index.ts.snap b/src/cdk/__tests__/__snapshots__/index.ts.snap index 219dd168..dd9d07b5 100644 --- a/src/cdk/__tests__/__snapshots__/index.ts.snap +++ b/src/cdk/__tests__/__snapshots__/index.ts.snap @@ -681,7 +681,6 @@ cdk.out/ ".vscode/extensions.json", ".vscode/settings.json", "cdk.json", - "cspell.json", "LICENSE", "tsconfig.dev.json", "tsconfig.json", @@ -1172,7 +1171,6 @@ cdk.out/ }, }, "cspell.json": { - "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "allowCompoundWords": true, "dictionaries": [ "typescript", diff --git a/src/common/lint/add-linters.ts b/src/common/lint/add-linters.ts index 36d2016a..73e9b662 100644 --- a/src/common/lint/add-linters.ts +++ b/src/common/lint/add-linters.ts @@ -85,5 +85,5 @@ export const addLinters = (props: AddLintersProps): void => { const finalConfig = deepMerge([{}, ...allConfigs, mergedArrayProperties]) new JsonFile(project, '.eslintrc.json', {obj: finalConfig, marker: false}) - new JsonFile(project, 'cspell.json', {obj: cSpellConfig}) + new JsonFile(project, 'cspell.json', {obj: cSpellConfig, readonly: false, marker: false}) } diff --git a/src/nextjs/__tests__/__snapshots__/index.ts.snap b/src/nextjs/__tests__/__snapshots__/index.ts.snap index b0a58eb5..d150fc0f 100644 --- a/src/nextjs/__tests__/__snapshots__/index.ts.snap +++ b/src/nextjs/__tests__/__snapshots__/index.ts.snap @@ -792,7 +792,6 @@ tsconfig.tsbuildinfo ".vscode/extensions.json", ".vscode/settings.json", "codegen.yml", - "cspell.json", "Dockerfile.dev", "Dockerfile.production", "jest.config.defaults.js", @@ -1374,7 +1373,6 @@ generates: - introspection ", "cspell.json": { - "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "allowCompoundWords": true, "dictionaries": [ "typescript", diff --git a/src/sst/__tests__/__snapshots__/index.ts.snap b/src/sst/__tests__/__snapshots__/index.ts.snap index 1b0f325f..1d852956 100644 --- a/src/sst/__tests__/__snapshots__/index.ts.snap +++ b/src/sst/__tests__/__snapshots__/index.ts.snap @@ -663,7 +663,6 @@ tsconfig.tsbuildinfo ".projen/tasks.json", ".vscode/extensions.json", ".vscode/settings.json", - "cspell.json", "LICENSE", "tsconfig.dev.json", "tsconfig.json", @@ -1064,7 +1063,6 @@ tsconfig.tsbuildinfo ", "README.md": "# replace this", "cspell.json": { - "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".", "allowCompoundWords": true, "dictionaries": [ "typescript",