
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.