Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
eslint-plugin-react-app
Advanced tools
This plugin exposes the ESLint configuration used by Create React App without the need of declaring all its dependencies.
Use it if you need a simple and tested ESLint configuration without the need of installing a bunch of dependecies.
It also works in React Native out of the box.
npm install --development eslint eslint-plugin-react-app
.plugin:react-app/recommended
in your .eslintrc
.Example .eslintrc
:
{
"extends": [
"plugin:react-app/recommended"
]
}
You can configure the rules like every other plugin.
Just keep in mind that if you want to change a rule of an included plugin (for example of eslint-plugin-react
) you must prefix the rule with react-app/
(for preventing namespace collisions).
For example:
{
"extends": [
"plugin:react-app/recommended"
],
"rules": {
"react-app/react/react-in-jsx-scope": ["warn"]
}
}
The currently included create-react-app plugins are the following:
Until this PR is officially released on eslint-config-react-app
you'll get an eslint warning on a missing rule definition (react-app/jsx-a11y/href-no-hash
).
You can momentarily silence it by turning off the following eslint rule:
{
"extends": ["plugin:react-app/recommended"],
"rules": {
"react-app/jsx-a11y/href-no-hash": "off"
}
}
Thanks to fson and its Create React App pull request for the initial idea of this plugin.
Thanks to gaeron and everyone who contributed to Create React App.
FAQs
ESLint configuration used by Create React App
The npm package eslint-plugin-react-app receives a total of 41,859 weekly downloads. As such, eslint-plugin-react-app popularity was classified as popular.
We found that eslint-plugin-react-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.