Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
eslint-tools-m6web
Advanced tools
The purpose of this package is simple, simplify the configuration of eslint and prettier in our projects.
It provides:
With that come some little changes from the default config of eslint-config-airbnb and prettier that you can find in .eslintrc file and here.
npm install --dev eslint-tools-m6web
or
yarn add --dev eslint-tools-m6web
Then you need to inherit the config in the .eslintrc
file of your project. For that create a .eslintrc
and add the following lines:
{
"extends": "./node_modules/eslint-tools-m6web/.eslintrc"
}
And that's all.
If you want to customize some rules, follow the eslint documentation.
If you want, you can add the jest support with the following lines:
{
"env": {
"browser": true,
"jasmine": true
}
}
Lint your code:
yarn eslint src/
Rewrite your code, the right way :smiling_imp::
yarn prettier-eslint -- --write 'src/**/*.js'
FAQs
Tooling for eslint and prettier used in m6web projects
The npm package eslint-tools-m6web receives a total of 1 weekly downloads. As such, eslint-tools-m6web popularity was classified as not popular.
We found that eslint-tools-m6web demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.