eslint-config-standard-jsx provides ESLint configuration for linting JSX syntax according to JavaScript Standard Style. It extends `eslint-config-standard` and specifically adds rules for JSX, making it suitable for projects using JSX with libraries like React, Preact, or others, without enforcing React-specific patterns. This package is intended for advanced users who prefer direct ESLint configuration rather than using the `standard` command-line tool. The current stable version is v11.0.0. Releases typically align with updates to ESLint, `standard` itself, and `eslint-plugin-react`. Its key differentiator is its focus on generic JSX rules, utilizing `eslint-plugin-react` for its JSX capabilities but remaining framework-agnostic regarding specific virtual DOM implementations. It requires several other `eslint-plugin-*` packages to be installed alongside it for a complete setup.
npm install eslint-config-standard-jsxVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to install all necessary packages and configure ESLint using `eslint-config-standard-jsx` and its required peers in an `.eslintrc.js` file, then run linting.
Consider using `npm install -g standard` and `standard --fix` instead of manually configuring ESLint.
Upgrade to `eslint-config-standard-jsx@^11.0.0` and ensure your `eslint` peer dependency meets the specified version (`^8.8.0`).
Ensure all required peer and extended dependencies are installed: `npm install --save-dev eslint eslint-config-standard eslint-config-standard-jsx eslint-plugin-promise eslint-plugin-import eslint-plugin-node eslint-plugin-react`.
Run `npm install --save-dev eslint-config-standard-jsx` or `yarn add --dev eslint-config-standard-jsx`.
Run `npm install --save-dev eslint-plugin-react` or `yarn add --dev eslint-plugin-react`.
Run `npm install --save-dev eslint-config-standard` or `yarn add --dev eslint-config-standard`.
Update `eslint-config-standard-jsx` to v11.0.0 or higher, and ensure your `eslint` version is at least `^8.8.0`. Also, verify your ESLint parser (if customized) is up-to-date and configured for the correct ECMAScript version.