Skip to content

Commit

Permalink
chore: 타입관련 파스칼케이스 형태로 작성하도록 린트 규칙 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
khj0426 committed Oct 24, 2023
1 parent e528990 commit ccab5b0
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ module.exports = {
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
'plugin:react-hooks/recommended',
'plugin:import/recommended',
'plugin:prettier/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
parserOptions:{
"project": "./tsconfig.json"
},
plugins: ['react-refresh', 'import'],
settings: {
'import/resolver': {
Expand All @@ -20,7 +24,17 @@ module.exports = {
typescript: {}, // this loads <rootdir>/tsconfig.json to eslint
},
},
rules: {
rules: { '@typescript-eslint/naming-convention': [
'error',
{
selector: 'typeLike',
format: ['PascalCase'], // 타입 네이밍 규칙
},
{
selector: 'interface',
format: ['PascalCase'], // 인터페이스 네이밍 규칙
},
],
"newline-before-return":"error",
'react-refresh/only-export-components': [
'warn',
Expand Down Expand Up @@ -83,4 +97,4 @@ module.exports = {
},
],
},
}
}

0 comments on commit ccab5b0

Please sign in to comment.