Skip to content

Commit

Permalink
chore(eslint): 의도치 않은 naming을 제거하기 위해 cspell 추가 (#164)
Browse files Browse the repository at this point in the history
* chore(eslint): add cspell to check bad naming

* chore: update
  • Loading branch information
manudeli authored Jul 5, 2024
1 parent 8f7cc9a commit 16b77b2
Show file tree
Hide file tree
Showing 3 changed files with 794 additions and 5 deletions.
12 changes: 11 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
project: true,
},

extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:@cspell/recommended'],
plugins: ['@typescript-eslint'],
rules: {
'no-implicit-coercion': 'error',
Expand Down Expand Up @@ -66,5 +66,15 @@ module.exports = {
],
},
],
'@cspell/spellchecker': [
'error',
{
cspell: {
words: ['choseong', 'jungseong', 'jongseong'],
// eslint-disable-next-line @cspell/spellchecker
flagWords: ['chosung', 'jungsung', 'jongsung'],
},
},
],
},
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@arethetypeswrong/cli": "^0.15.3",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@cspell/eslint-plugin": "^8.10.0",
"@netlify/plugin-nextjs": "^5.0.0",
"@types/broken-link-checker": "^0",
"@types/node": "^20.11.30",
Expand Down
Loading

0 comments on commit 16b77b2

Please sign in to comment.