-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] ESLint, Prettier 파일 추가 및 사용하지 않는 dependencies 삭제
- ESLint 라고 하는 소스코드 단위 정적 분석 도구를 이용하여 문법 규칙, compiler error 를 잡음 - Prettier를 사용하여 ESLint로는 잡지 못하는 코드 포맷팅을 진행 - package.json에서 사용하지 않는 의존 파일 삭제 - `cors`, `@mapbox/node-pre-gyp` 사용 안함 - `cardinal` mysql2에 helper 안에 있는 필요 파일 같은데 없어도 동작 가능 - pm2 는 앱에 대한 의존 파일이기 보다는 개발 시 필요한 파일이라 생각되어 devDependencies로 위치 옮김
- Loading branch information
Showing
4 changed files
with
1,885 additions
and
625 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,24 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"commonjs": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"google", | ||
"plugin:prettier/recommended" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"camelCase" : "warn", | ||
"prettier/prettier": "error", | ||
"no-unused-vars": "warn", | ||
"no-bitwise": "off" | ||
}, | ||
"ignorePatterns": [ | ||
"node_modules/" | ||
] | ||
} |
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 @@ | ||
module.exports = { | ||
singleQuote: true, | ||
semi: true, | ||
useTabs: false, | ||
tabWidth: 2, | ||
trailingComma: 'all', | ||
printWidth: 80, | ||
arrowParens: 'always', | ||
endOfLine: 'auto', | ||
}; |
Oops, something went wrong.