Browse Source

Add scpell json to config the ignore list

zhixin 1 year ago
parent
commit
d56879338a
2 changed files with 20 additions and 1 deletions
  1. 19 0
      .cspell.json
  2. 1 1
      package.json

+ 19 - 0
.cspell.json

@@ -0,0 +1,19 @@
+{
+  "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
+  "version": "0.2",
+  "dictionaries": [
+    "allowed-words"
+  ],
+  "dictionaryDefinitions": [
+    {
+      "name": "allowed-words",
+      "path": "./.cspell-words.txt",
+      "addWords": true
+    }
+  ],
+  "ignorePaths": [
+    "src/locale/**",
+    "node_modules/**",
+    "test/**"
+  ]
+}

+ 1 - 1
package.json

@@ -44,7 +44,7 @@
   "scripts": {
     "lint:js": "eslint src",
     "lint:css": "stylelint src/**/*.scss",
-    "lint:spell": "cspell lint --no-progress 'src/**/*.{js,json,vue,scss}' '**/*.md'",
+    "lint:spell": "cspell lint --no-progress 'src/**/*.{js,json,vue,scss}' 'site/**/*.md' '*.md'",
     "lint:editor": "editorconfig-checker -exclude dist",
     "lint": "run-s lint:*",
     "test": "cypress run --headless",