From 5a19c33a4d6abaaa1784a79ff72415d8e3b2ebfa Mon Sep 17 00:00:00 2001 From: Mark Lawlor Date: Sun, 5 Jun 2022 19:32:01 +1000 Subject: [PATCH] refactor: improve cspell dectionaries --- .cspell/project.txt | 7 ++++++ .cspell/react-native.txt | 2 ++ .cspell/{tailwind-words.txt => tailwind.txt} | 0 .../content-negative-match/tailwind.config.js | 2 +- cspell.json | 24 +++++++++---------- 5 files changed, 21 insertions(+), 14 deletions(-) create mode 100644 .cspell/project.txt create mode 100644 .cspell/react-native.txt rename .cspell/{tailwind-words.txt => tailwind.txt} (100%) diff --git a/.cspell/project.txt b/.cspell/project.txt new file mode 100644 index 0000000..b553344 --- /dev/null +++ b/.cspell/project.txt @@ -0,0 +1,7 @@ +marklawlor +lawlor +commitlint +moti +solito +atrule +nextjs diff --git a/.cspell/react-native.txt b/.cspell/react-native.txt new file mode 100644 index 0000000..c0d1cb3 --- /dev/null +++ b/.cspell/react-native.txt @@ -0,0 +1,2 @@ +pressable +androidcolor diff --git a/.cspell/tailwind-words.txt b/.cspell/tailwind.txt similarity index 100% rename from .cspell/tailwind-words.txt rename to .cspell/tailwind.txt diff --git a/__tests__/visitor/content-negative-match/tailwind.config.js b/__tests__/visitor/content-negative-match/tailwind.config.js index f199d90..994ba6b 100644 --- a/__tests__/visitor/content-negative-match/tailwind.config.js +++ b/__tests__/visitor/content-negative-match/tailwind.config.js @@ -1,3 +1,3 @@ module.exports = { - content: ["./dont-match-anything"], + content: ["./do-not-match-anything"], }; diff --git a/cspell.json b/cspell.json index 2b98eed..4f1e128 100644 --- a/cspell.json +++ b/cspell.json @@ -16,21 +16,19 @@ "website/static/*", "website/src/css/*" ], - "dictionaries": ["tailwind-words"], + "dictionaries": ["tailwind", "project", "react-native"], "dictionaryDefinitions": [ { - "name": "tailwind-words", - "path": "./.cspell/tailwind-words.txt" + "name": "tailwind", + "path": "./.cspell/tailwind.txt" + }, + { + "name": "project", + "path": "./.cspell/project.txt" + }, + { + "name": "react-native", + "path": "./.cspell/react-native.txt" } - ], - "words": [ - "pressable", - "marklawlor", - "commitlint", - "lawlor", - "moti", - "solito", - "atrule", - "nextjs" ] }