Lint 모듈
The lint module (@backstage/cli-module-lint)은 개별 패키지 또는 저장소 전체에서 린팅을 실행합니다. 린팅 설정에 대한 자세한 내용은 빌드 시스템 린팅 섹션을 참조하세요.
출처: 문서
본문
The lint module (@backstage/cli-module-lint)은 개별 패키지 또는 저장소 전체에서 린팅을 실행합니다. 린팅 설정에 대한 자세한 내용은 빌드 시스템 린팅 섹션을 참조하세요.
package lint
패키지를 린트합니다. 기본 eslint 동작 외에도 이 명령은 TypeScript 파일을 포함하고, 경고를 오류로 처리하며, 특정 파일이 나열되지 않으면 기본적으로 전체 디렉터리를 린트합니다.
Usage: backstage-cli package lint [options]Lint a packageOptions: --format <format> Lint report output format (default: "eslint-formatter-friendly") --fix Attempt to automatically fix violations --max-warnings <number> Fail if more than this number of warnings. -1 allows warnings. (default: -1)
repo lint
프로젝트의 모든 패키지를 린트합니다.
Usage: backstage-cli repo lint [options]Lint all packages in the projectOptions: --format <format> Lint report output format (default: "eslint-formatter-friendly") --since <ref> Only lint packages that changed since the specified ref --success-cache Enable success caching, which skips running lint for unchanged packages that were successful in the previous run --success-cache-dir <path> Set the success cache location, (default: node_modules/.cache/backstage-cli) --fix Attempt to automatically fix violations