
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
@rnx-kit/eslint-plugin
Advanced tools
@rnx-kit/eslint-plugin is a set of configurations and rules that can be used
as is, or extended in your own ESLint config.
Note that this plugin requires the new ESLint configuration format. If you still rely on the previous format, use version 0.5.x instead.
yarn add @rnx-kit/eslint-plugin --dev
or if you're using npm:
npm add --save-dev @rnx-kit/eslint-plugin
This ESLint plugin exports multiple configurations. For instance, to use the
recommended
configuration, you can re-export it in your
flat config
like below:
module.exports = require("@rnx-kit/eslint-plugin/recommended");
Alternatively, if you want to add customizations:
const rnx = require("@rnx-kit/eslint-plugin");
module.exports = [
...rnx.configs.recommended,
{
rules: {
"@rnx-kit/no-const-enum": "error",
"@rnx-kit/no-export-all": "error",
// Mores rules ...
},
},
];
If you're just interested in the rules, you can use it as a plugin and enable the rules you're interested in:
module.exports = [
{
plugins: {
"@rnx-kit": require("@rnx-kit/eslint-plugin"),
},
rules: {
"@rnx-kit/no-const-enum": "error",
"@rnx-kit/no-export-all": "error",
// Mores rules ...
},
},
];
@rnx-kit/eslint-plugin/recommended
extends:
eslint:recommendedplugin:@typescript-eslint/recommendedplugin:react-hooks/recommendedplugin:react/recommended@rnx-kit/eslint-plugin/strict
extends @rnx-kit/eslint-plugin/recommended with rules that enables better
tree shaking:
@rnx-kit/eslint-plugin/recommended--fix| ✓ | 🔧 | Rule | Description |
|---|---|---|---|
| ✓ | @rnx-kit/no-const-enum | disallow const enum (why is it bad?) | |
| ✓ | 🔧 | @rnx-kit/no-export-all | disallow export * (why is it bad?) |
| ✓ | @rnx-kit/no-foreach-with-captured-variables | disallow forEach with outside variables; JavaScript is not efficient when it comes to using variables defined outside of its scope, and repeatedly calling that function can lead to performance issues. By using a for...of loop, you can avoid these performance pitfalls and also it is easier to debug. |
FAQs
A set of ESLint rules for React developers
The npm package @rnx-kit/eslint-plugin receives a total of 5,827 weekly downloads. As such, @rnx-kit/eslint-plugin popularity was classified as popular.
We found that @rnx-kit/eslint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than 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
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.