
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
eslint-config-warp
Advanced tools
npm install --save-dev eslint eslint-config-warp
Create a .eslintrc.json
file in the project root containing the following:
Default usage
{
"extends": ["warp"]
}
Always configure your environment. We recommend doing so by using the appropriate preset:
This package comes with some additional presets to include in your eslint
configuration. To include any of them, just add them to the extends
Array.
Note that order is important, because each preset overrides the previous. To
allow you to configure a working load order, the table below provides hints.
Preset | Description | Load Order | Dependencies |
---|---|---|---|
warp | Base JavaScript (ES5) linting rules | First | |
warp/node | Linting rules for Node.JS | Soon after warp | eslint-plugin-node |
warp/es6 | Linting rules for ES6 language features | Soon after warp | |
warp/jsx | Linting rules for React JSX | Soon after warp | eslint-plugin-react eslint-plugin-react-hooks |
warp/module | Linting rules for modular JavaScript | Near the end | eslint-plugin-import |
warp/typescript | Linting rules for TypeScript files; implies warp/module | Near the end | eslint-plugin-import @typescript-eslint/eslint-plugin @typescript-eslint/parser |
To set up your ESLint for linting TypeScript modules for Node.JS:
{
"extends": ["warp", "warp/node", "warp/typescript"],
"parserOptions": {
"project": "YOUR.tsconfig.json"
}
}
FAQs
WeAreReasonablePeople linting rules
The npm package eslint-config-warp receives a total of 0 weekly downloads. As such, eslint-config-warp popularity was classified as not popular.
We found that eslint-config-warp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
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.