7.1.0 • Published 9 months ago

eslint-config-warp v7.1.0

Weekly downloads
571
License
MIT
Repository
github
Last release
9 months ago

WARP ESLint Configuration

npm install --save-dev eslint eslint-config-warp

Usage

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:

Presets

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.

PresetDescriptionLoad OrderDependencies
warpBase JavaScript (ES5) linting rulesFirst
warp/nodeLinting rules for Node.JSSoon after warpeslint-plugin-node
warp/es6Linting rules for ES6 language featuresSoon after warp
warp/jsxLinting rules for React JSXSoon after warpeslint-plugin-react eslint-plugin-react-hooks
warp/moduleLinting rules for modular JavaScriptNear the endeslint-plugin-import
warp/typescriptLinting rules for TypeScript files; implies warp/moduleNear the endeslint-plugin-import @typescript-eslint/eslint-plugin @typescript-eslint/parser

Example

To set up your ESLint for linting TypeScript modules for Node.JS:

{
  "extends": ["warp", "warp/node", "warp/typescript"],
  "parserOptions": {
    "project": "YOUR.tsconfig.json"
  }
}
7.1.0

9 months ago

7.0.0

2 years ago

7.0.1

2 years ago

6.1.0

3 years ago

6.0.0

3 years ago

5.0.0

3 years ago

4.0.0

3 years ago

3.0.0

6 years ago

2.1.1

6 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago