- 패키지 설치
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
이후 재시도