Skip to content

Commit

Permalink
feat: add cspell plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nimec01 committed Aug 9, 2024
1 parent 60b40e8 commit 26c00a6
Show file tree
Hide file tree
Showing 5 changed files with 710 additions and 11 deletions.
7 changes: 6 additions & 1 deletion .github/eslint-errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ eslint-config/test/test1.js: line 12, col 10, Error - Do not use useless `undefi
eslint-config/test/test1.js: line 13, col 2, Error - Insert `⏎` (prettier/prettier)
eslint-config/test/test2.js: line 1, col 7, Warning - 'A_SECRET' is assigned a value but never used. (unused-imports/no-unused-vars)
eslint-config/test/test2.js: line 2, col 3, Error - Found a string with entropy 6.02 : "ZWVTjPQSdhwRgl204Hc51YCsritMIzn8B=/p9UyeX7xu6KkAGqfm3FJ+oObLDNEva" (no-secrets/no-secrets)
eslint-config/test/test2.js: line 2, col 11, Warning - Unknown word: "Sdhw" (@cspell/spellchecker)
eslint-config/test/test2.js: line 2, col 26, Warning - Unknown word: "Csrit" (@cspell/spellchecker)
eslint-config/test/test2.js: line 2, col 52, Warning - Unknown word: "Gqfm" (@cspell/spellchecker)
eslint-config/test/test2.js: line 4, col 7, Warning - 'AWS_TOKEN' is assigned a value but never used. (unused-imports/no-unused-vars)
eslint-config/test/test2.js: line 4, col 19, Error - Found a string that matches "AWS API Key" : "AKIAIUWUUQQN3GNUA88V" (no-secrets/no-secrets)
eslint-config/test/test2.js: line 4, col 20, Warning - Unknown word: "AKIAIUWUUQQN" (@cspell/spellchecker)
eslint-config/test/test2.js: line 4, col 33, Warning - Unknown word: "GNUA" (@cspell/spellchecker)
eslint-config/test/test2.js: line 6, col 5, Error - 'strings' is never reassigned. Use 'const' instead. (prefer-const)
eslint-config/test/test2.js: line 8, col 5, Error - Review this usage of "strings" as it can only be empty here. (sonarjs/no-empty-collection)
eslint-config/test/test2.js: line 8, col 22, Error - Replace `"foo"))·{}··//·Noncompliant` with `'foo'))·{⏎}·//·Noncompliant⏎` (prettier/prettier)
eslint-config/test/test2.js: line 8, col 30, Error - Empty block statement. (no-empty)

21 problems
26 problems
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ You need to install some peer dependencies based on the flavor that you want to
- eslint-plugin-sonarjs
- eslint-plugin-unicorn
- eslint-plugin-unused-imports
- @cspell/eslint-plugin

### `react` - React using Javascript Only

Expand Down
1 change: 1 addition & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ exports.createConfig = ({
'eslint:recommended',
'plugin:unicorn/recommended',
'plugin:sonarjs/recommended',
'plugin:@cspell/recommended',
];
let plugins = [
'import',
Expand Down
Loading

0 comments on commit 26c00a6

Please sign in to comment.