Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 899 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 899 Bytes

eslint-config-transcendence

설치법

  1. 패키지 설치
npm install -D @scarf005/eslint-config-transcendence
  1. .eslintrc.ymlextends: "@scarf005/eslint-config-transcendence" 추가
  2. 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 이후 재시도