
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
eslint-plugin-jsx
Advanced tools
JSX specific linting rules for ESLint. Designed for the semantics of the JSX-to-JS transpiler and is not compatible with the standard JSX semantics.
You need to install this plugin in the same place eslint itself is installed. So if your using a globally installed eslint this will also need to be installed globally
npm install -g eslint-plugin-jsx
then in your ~/.eslintrc:
{
"plugins": ["jsx"],
"rules": {
"jsx/uses-factory": [1, {"pragma": "JSX"}],
"jsx/factory-in-scope": [1, {"pragma": "JSX"}],
"jsx/mark-used-vars": 1,
"jsx/no-undef": 1
}
}
jsx/no-undef
also accepts a varsIgnorePattern
which can be used to ignore certain undefined patterns (e.g. when using custom web elements).
jsx/no-undef
also accepts a ignoreAttributes
which can be used disregard linting of attributes (which incorrectly flags boolean attributes as undefined).
All those rules are defined by default though so you can leave out the ones you agree with.
This project is based of yannickcr/eslint-plugin-react. Which has some rules you will probably also be interested in.
FAQs
JSX specific linting rules for ESLint
The npm package eslint-plugin-jsx receives a total of 0 weekly downloads. As such, eslint-plugin-jsx popularity was classified as not popular.
We found that eslint-plugin-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
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.