-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: prettier, eslint 설정 파일 추가 및 pre-commit 훅 설정 (#18)
* Chore: prettier, eslint 설정 파일 추가 코드 포맷을 통일하기 위한 lint 설정 * Refactor: eslint 설정 및 lint-staged 설정 수정 - eslint-config-prettier, eslint-plugin-prettier 모듈 설정시 plugins 설정과 extends 설정 대신 plugin:prettier/recommended 설정 하나로 처리하는 방식 적용 - 함수 호이스팅과 관련하여 no-use-before-define 옵션 설정 추가 - '.js' 파일 외의 lint 대상 파일을 '*' 대신 '*.md' 로 명시적으로 설정
- Loading branch information
1 parent
9faef5f
commit 0f4df4b
Showing
7 changed files
with
3,036 additions
and
632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"bracketSpacing": true, | ||
"semi": true, | ||
"useTabs": false, | ||
"overrides": [ | ||
{ | ||
"files": "*.md", | ||
"options": { | ||
"tabWidth": 4 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint", | ||
"editor.formatOnSave": true, | ||
"eslint.format.enable": true, | ||
"eslint.alwaysShowStatus": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"eslint.validate": ["javascript"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# IssueTracker25 | ||
# IssueTracker25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
env: { | ||
node: true, | ||
es6: true, | ||
}, | ||
extends: ['eslint:recommended', 'airbnb-base', 'plugin:prettier/recommended'], | ||
rules: { | ||
'prettier/prettier': ['error'], | ||
'no-use-before-define': ['error', { functions: false }], | ||
}, | ||
}; |
Oops, something went wrong.