
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@eslint-react/eslint-plugin
Advanced tools
ESLint x React's main ESLint plugin. A set of ESLint rules to catch common mistakes and improve your React code. Built (mostly) from scratch.
A set of ESLint rules to catch common mistakes and improve your React code.
@eslint-react/eslint-plugin
- The main ESLint plugin package including all rules and configs in this repository.@eslint-react/jsx
- TSESTree AST utility module for static analysis of JSX.# npm
npm install --save-dev @eslint-react/eslint-plugin
# pnpm
pnpm add --save-dev @eslint-react/eslint-plugin
# yarn
yarn add --dev @eslint-react/eslint-plugin
# bun
bun add --dev @eslint-react/eslint-plugin
.eslintrc.js
)module.exports = {
root: true,
env: { browser: true, es2021: true },
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:@eslint-react/recommended-legacy",
],
plugins: ["@typescript-eslint", "react-hooks"],
ignorePatterns: ["dist", ".eslintrc.js"],
};
eslint.config.js
)import ts from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import react from "@eslint-react/eslint-plugin";
import reactHooks from "eslint-plugin-react-hooks";
export default [
// TypeScript rules
{
files: ["**/*.ts"],
ignores: ["eslint.config.js"],
languageOptions: {
parser: tsParser,
sourceType: "module",
},
plugins: {
"@typescript-eslint": ts,
},
rules: {
...ts.configs["eslint-recommended"].rules,
...ts.configs["recommended"].rules,
},
},
// React hooks rules
{
files: ["src/**/*.{ts,tsx}"],
plugins: {
"react-hooks": reactHooks,
},
rules: {
...reactHooks.configs.recommended.rules,
},
},
// React rules
{
files: ["src/**/*.{ts,tsx}"],
...react.configs.recommended,
},
];
Note:
Presets with -legacy
suffix are only available for ESLint LegacyConfig (.eslintrc.js
).
Presets without -legacy
suffix are only available for ESLint FlatConfig (eslint.config.js
).
Choose the appropriate preset based on your ESLint config format.
Presets with -type-checked
or type-checked-legacy
suffix require type information.
Make sure the parserOptions.project
option is set correctly in your ESLint config when using them.
The following presets are available in this plugin:
plugin:@eslint-react/recommended-legacy
)recommended
but for ESLint LegacyConfig.recommended
but with additional rules that require type information.plugin:@eslint-react/recommended-type-checked-legacy
)recommended-type-checked
but for ESLint LegacyConfig.all
Enable all rules in this plugin except for debug rules.
(Not recommended unless you know what you are doing)
all-legacy (plugin:@eslint-react/all-legacy
)
Same as all
but for ESLint LegacyConfig.
off
Disable all rules in this plugin except for debug rules.
off-legacy (plugin:@eslint-react/off-legacy
)
Same as off
but for ESLint LegacyConfig.
debug
Enable a series of rules that are useful for debugging purposes only.
(Not recommended unless you know what you are doing)
debug-legacy (plugin:@eslint-react/debug-legacy
)
Same as debug
but for ESLint LegacyConfig.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
More than 80 high-quality linting rules for writing better React code.
The npm package @eslint-react/eslint-plugin receives a total of 130,137 weekly downloads. As such, @eslint-react/eslint-plugin popularity was classified as popular.
We found that @eslint-react/eslint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.