BSG is an all-in-one linting tool for BSG-FE frontend teams, version 2.0.5. It integrates ESLint, Prettier, Stylelint, ls-lint, lint-staged, commitlint, and changelog generation to enforce unified code style, naming conventions, and commit message formats. The tool provides zero-config defaults for multiple file types (.js, .ts, .vue, .css, .scss, etc.) and supports both manual linting and Git hooks for automated checking. It differs from alternatives by being a complete, opinionated solution tailored to a specific organization, reducing project setup overhead and ensuring consistency across projects and developers. Release cadence is not specified.
npm install bsgNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows full setup: install bsg and husky, add lint script, run lint, set up pre-commit and commit-msg hooks, and optional interactive commit guide.
Run 'npm uninstall eslint stylelint eslint-loader' and manually delete config files.
Ensure all releases have proper Git tags. For first-time generation: 'npx bsg changelog -r 0'.
Edit .husky/commit-msg to append: 'if [ -f .git/hooks/commit-msg ]; then . .git/hooks/commit-msg; fi'.
Run 'git config --local core.commentChar '#' to set a comment character.
Consider using alternative tools like ESLint, Prettier, commitlint, and standard-version separately.
Run 'npm install -D bsg' in the project root. For CLI usage, use 'npx bsg' to invoke locally installed package.
Delete node_modules and package-lock.json, then run 'npm install --legacy-peer-deps' or 'npm install --force'.
Ensure husky is installed: 'npm install -D husky'. If PATH issue, add '.husky' directory and run 'npx husky install'.
Fix the reported errors and re-stage the files. To see full details, run 'npx bsg lint' directly.
Check that bsg is installed and node_modules/bsg exists. If using VS Code settings, ensure path is correct relative to workspace root.