frontend-code-quality-kit
v0.1.0
Published
Reusable frontend code quality toolkit for Vue projects.
Readme
Frontend Code Quality Kit
Vue-first frontend code quality toolkit for shared projects.
Install
npm install -D git+http://10.2.81.14:99/frontend/frontend-code-quality-kit.git
npx fcq init
npm install
npm run prepareCommands
fcq init
fcq lint-changed
fcq format-changed
fcq check-branchAfter initialization, project scripts are:
npm run lint
npm run format:check
npm run lint:staged
npm run lint:all
npm run lint:fixTypeScript
TypeScript is optional. JS/Vue projects do not need TypeScript packages.
For TS projects:
npm install -D typescript @typescript-eslint/parserCI
Run these in merge request pipelines:
npx fcq format-changed
npx fcq lint-changedfcq init writes a default .gitlab-ci.yml when one does not already exist. The default CI template installs only this quality kit and its lint/format dependencies, not the full application dependency tree. It reads the kit install spec from package.json; set FCQ_PACKAGE_SPEC in GitLab CI if you need to override it.
