
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
eslint-config-common-jsx
Advanced tools
Common JavaScript coding Style JSX support - ESLint Shareable Config
An ESLint Shareable Config for JSX support in JavaScript Common coding Style
This module is for advanced users. You probably want to use common
instead :)
npm install eslint-config-common-jsx
Shareable configs are designed to work with the extends
feature of .eslintrc
files.
You can learn more about
Shareable Configs on the
official ESLint website.
This Shareable Config adds extra JSX style rules to the baseline JavaScript Common Style
rules provided in
eslint-config-common
.
It doesn't assume that you're using React, so other virtual DOM libraries like
virtual-dom
and deku
are supported.
Even thought this config is JSX only (no React), it makes use of
eslint-plugin-react
for its generic
JSX rules.
(If you want React-specific rules too, consider using
eslint-config-common-react
instead.)
Here's how to install everything you need:
npm install eslint-config-common eslint-config-common-jsx eslint-plugin-promise eslint-plugin-react eslint-plugin-standard
Then, add this to your .eslintrc file:
{
"extends": ["common", "common-jsx"]
}
Note: We omitted the eslint-config-
prefix since it is automatically assumed by ESLint.
You can override settings from the shareable config by adding them directly into your
.eslintrc
file.
The rules of the Common coding style are based and/or inspired by:
MIT (c) 2016, Nicolas Tallefourtane.
Nicolas Talle |
![]() |
FAQs
Common JavaScript coding Style JSX support - ESLint Shareable Config
The npm package eslint-config-common-jsx receives a total of 5 weekly downloads. As such, eslint-config-common-jsx popularity was classified as not popular.
We found that eslint-config-common-jsx 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.