Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(eslint): 의도치 않은 naming을 제거하기 위해 cspell 추가 #164

Merged
merged 3 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재 알고 있는 잘못된 네이밍은 '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