From 22d9036ca9f4f2be842b0b35b92a4db2bc468f65 Mon Sep 17 00:00:00 2001
From: Lauri Eskola <lauri.eskola@acquia.com>
Date: Thu, 15 Oct 2020 12:55:45 +0300
Subject: [PATCH] Issue #3176990 by alexpott, longwave, jungle: Files starting
 with . in /core are not spellchecked

---
 core/.cspell.json               | 3 ++-
 core/misc/cspell/dictionary.txt | 2 ++
 core/package.json               | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/core/.cspell.json b/core/.cspell.json
index ee5bc110cac4..cffca8c11cf1 100644
--- a/core/.cspell.json
+++ b/core/.cspell.json
@@ -3,7 +3,8 @@
     "language": "en-US",
     "allowCompoundWords": false,
     "ignorePaths": [
-      ".cspell.json",
+      ".*.json",
+      ".*ignore",
       "composer.lock",
       "assets/vendor/**",
       "lib/Drupal/Component/Diff/**",
diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt
index d91c0f7f64fa..f5eea8b762e7 100644
--- a/core/misc/cspell/dictionary.txt
+++ b/core/misc/cspell/dictionary.txt
@@ -444,6 +444,7 @@ docroot
 docroots
 docx
 dolore
+dotenv
 doubleclick
 downcasting
 downlevel
@@ -955,6 +956,7 @@ mimeheaders
 mimetypes
 minifiers
 minifyzombies
+minimatch
 minimise
 minipager
 minky
diff --git a/core/package.json b/core/package.json
index c97940e61e09..923a63560e1f 100644
--- a/core/package.json
+++ b/core/package.json
@@ -26,7 +26,7 @@
     "prettier": "prettier --write \"./**/*.es6.js\" \"./tests/Drupal/Nightwatch/**/*.js\"",
     "spellcheck": "cspell",
     "spellcheck:make-drupal-dict": "rm -f misc/cspell/dictionary.txt && yarn -s spellcheck:core --unique --wordsOnly | tr '[:upper:]' '[:lower:]' | tr -d \\\\\\\\ | LC_ALL=C sort -u -o misc/cspell/dictionary.txt",
-    "spellcheck:core": "cspell \"**/*\" \"../composer/**/*\" \"../composer.json\""
+    "spellcheck:core": "cspell \"**/*\" \".*\" \"../composer/**/*\" \"../composer.json\""
   },
   "devDependencies": {
     "@babel/core": "^7.0.0",
-- 
GitLab