Skip to content

Commit

Permalink
WIP: Added spellchecker.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@amazon.com>
  • Loading branch information
dblock committed Jun 17, 2024
1 parent 49cd814 commit 858ad39
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 3 deletions.
11 changes: 8 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import pluginJs from '@eslint/js'
import pluginLicenseHeader from 'eslint-plugin-license-header'
import pluginTs from '@typescript-eslint/eslint-plugin'
import pluginYml from 'eslint-plugin-yml'
import pluginCspell from '@cspell/eslint-plugin'

export default [
pluginJs.configs.recommended,
Expand All @@ -24,7 +25,8 @@ export default [
plugins: {
'@typescript-eslint': pluginTs,
'license-header': pluginLicenseHeader,
'eslint-comments': pluginComments
'eslint-comments': pluginComments,
'@cspell': pluginCspell
},
rules: {
...pluginJs.configs.recommended.rules,
Expand Down Expand Up @@ -89,6 +91,7 @@ export default [
'*/'
]
],
'@cspell/spellchecker': 'warn'
}
},
...pluginYml.configs['flat/standard'],
Expand All @@ -98,12 +101,14 @@ export default [
parser: parserYml
},
plugins: {
yml: pluginYml
'yml': pluginYml,
'@cspell': pluginCspell
},
rules: {
'yml/no-empty-document': 'off',
'yml/quotes': 'off',
'yml/plain-scalar': 'off'
'yml/plain-scalar': 'off',
'@cspell/spellchecker': 'warn'
}
}
]
43 changes: 43 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"yaml": "^2.3.4"
},
"devDependencies": {
"@cspell/eslint-plugin": "file:///Users/dblock/source/cspell/upstream-cspell/packages/cspell-eslint-plugin",
"@eslint/eslintrc": "^3.0.2",
"@eslint/js": "^9.1.1",
"@types/jest": "^29.5.12",
Expand Down

0 comments on commit 858ad39

Please sign in to comment.