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.
@m6web/eslint-plugin-react
Advanced tools
Plugin for eslint and prettier used in m6web projects
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 index.js file and [here].
npm install --dev @m6web/eslint-plugin
or
yarn add --dev @m6web/eslint-plugin
Then you need to add the plugin in the .eslintrc
file of your project. For that create a .eslintrc
and add the following lines:
{
"extends": "plugin:@m6web/default",
}
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
Plugin for eslint and prettier used in m6web projects
The npm package @m6web/eslint-plugin-react receives a total of 1 weekly downloads. As such, @m6web/eslint-plugin-react popularity was classified as not popular.
We found that @m6web/eslint-plugin-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.