Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
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
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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.