
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
frontend-standards
Advanced tools
A tool to help you catch syntax and formatting errors before your pipeline does. Setups ESlint, Prettier and Husky.
Frontend Standards is a package that automatically sets up ESLint, Prettier, and Husky in your workspace, helping you catch syntax errors and maintain consistent code style before your code reaches the pipeline.
The setup script will run automatically when you install the package, so all you need to do is:
npm install @mh-common/frontend-standards
If you can't find the husky directory and the other files like .eslintrc.cjs, .prettierrc etc. run the following command:
node node_modules/@mh-common/frontend-standards/install.js
The setup script will:
Once installed, Frontend Standards is ready to enforce code quality and consistency with zero additional setup.
Linting helps detect potential errors, code smells, and deviations from best practices. This prevents bugs from reaching production and makes the code easier to review and maintain.
Consistent code formatting improves readability and reduces friction between team members working on the same codebase, as it eliminates style-based diffs in version control.
Using this package allows you to catch issues before they reach the pipeline, saving you time and reducing the risk of failed builds. It’s better to identify errors locally than discover them after pushing code.
Whenever you commit, a pre-commit hook will automatically run:
npx eslint --fix .
This will check your code for linting and formatting issues, automatically fixing any easy-to-solve errors before they’re committed. This ensures cleaner commits and reduces the need for manual code corrections.
To ensure a consistent development experience, we recommend installing the following VS Code extensions:
esbenp.prettier-vscode)dbaeumer.vscode-eslint)rvest.vs-code-prettier-eslint)To automate linting and formatting checks in a Bitbucket pipeline, you can add a configuration to your bitbucket-pipelines.yml file. This ensures that all code changes meet your code quality standards before being merged.
Here’s an example of a Bitbucket pipeline setup:
image: node:latest
pipelines:
default:
- step:
name: Lint and Format Check
caches:
- node
script:
- npm install
- npx eslint .
This configuration runs ESLint and Prettier checks on every push to ensure that all code follows the defined style and linting rules.
FAQs
A tool to help you catch syntax and formatting errors before your pipeline does. Setups ESlint, Prettier and Husky.
We found that frontend-standards demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.