@scarf005/eslint-config-transcendence
v1.2.1
Published
typescript configuration for transcendence project
Downloads
6
Readme
eslint-config-transcendence
설치법
- 패키지 설치
npm install -D @scarf005/eslint-config-transcendence
.eslintrc.yml
에extends: "@scarf005/eslint-config-transcendence"
추가package.json
에"prettier": "@scarf005/prettier-config-transcendence"
추가
예시
const a = 3
if (a == 2) {
console.log(a)
}
❯ eslint test.ts
/home/scarf/Repo/eslint-config-transcendence/test.ts
1:12 error Delete `;` prettier/prettier
2:7 error Expected '===' and instead saw '==' eqeqeq
3:1 error Replace `····console.log(a);` with `··console.log(a)` prettier/prettier
✖ 3 problems (3 errors, 0 warnings)
2 errors and 0 warnings potentially fixable with the `--fix` option.
테스트에서 이상한 오류가 날 시
npm run convert
이후 재시도