
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
eslint-config-standard-preact
Advanced tools
JavaScript Standard Style Preact/JSX support - ESLint Shareable Config
npm install eslint-config-standard-preact
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 React and JSX to the baseline JavaScript Standard Style rules
provided in eslint-config-standard
.
npm install --save-dev eslint-config-standard eslint-config-standard-preact eslint-plugin-promise eslint-plugin-react eslint-plugin-standard
Then, add this to your .eslintrc file:
{
"extends": ["standard", "standard-preact"]
}
Note: We omitted the eslint-config-
prefix since it is automatically assumed by ESLint.
{/* class property name is now allowed in JSX as well as className */}
<div class='container' /> ✅
export default class App extends Component {
handleRoute = e => { // ✅ You can assign to an ES6 class method
this.currentUrl = e.url;
}
}
// no need to have React linter and then this line in every file
/** @jsx h */ 🗑
You can override settings from the shareable config by adding them directly into your
.eslintrc
file.
The easiest way to use JavaScript Standard Style to check your code is to use the
standard
package. This comes with a global
Node command line program (standard
) that you can run or add to your npm test
script
to quickly check your style.
Use this in one of your projects? Include one of these badges in your readme to let people know that your code is using the standard style.
[](https://github.com/feross/standard)
[](https://github.com/feross/standard)
For the full listing of rules, editor plugins, FAQs, and more, visit the main JavaScript Standard Style repo.
This module is a fork of feross/eslint-config-standard-react
MIT
FAQs
JavaScript Standard Style Preact/JSX support - ESLint Shareable Config
The npm package eslint-config-standard-preact receives a total of 202 weekly downloads. As such, eslint-config-standard-preact popularity was classified as not popular.
We found that eslint-config-standard-preact 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.