open-index/open-npm huggingface dataset:
npm package: @onidivo/eslint-config
Description: The ESLint configuration used by Onidivo
Author: Onidivo
Latest version: 1.0.54

# [onidivo](https://onidivo.com)/eslint-config

## Installation

Install our configuration and its peer dependencies.

```.sh
yarn add --dev @onidivo/eslint-config
OR
npm install --save-dev eslint @onidivo/eslint-config
```

```.sh
npx install-peerdeps --dev @onidivo/eslint-config
```

Create a `.eslintrc.json` file in your root with the following content:

```.json
{
  "extends": [
    "@onidivo/eslint-config",
  ]
}
```

Add a linter script to your `package.json`. In the following example, all files in the `src` and `test` folder (and
their subfolders) are checked:

```.json
{
  "scripts": {
    "lint": "eslint \"+(src|test)/**/*.js\" --fix"
  }
}
```

## Watcher task

You can use [`chokidar-cli`](https://github.com/kimmobrunfeldt/chokidar-cli) to add a task that lints your files on
save. First install it:

```.sh
yarn add --dev chokidar-cli
OR
npm install --save-dev chokidar-cli
```

Then add a watch script to your `package.json`. In the following example, chokidar will look for changes in any files in
the `src` and `test` folder (and their subfolders):

```.json
{
  "scripts": {
    "lint": "eslint \"+(src|test)/**/*.js\" --fix",
    "lint:watch": "npm run watch:js -- -c \"npm run lint\"",
    "watch:js": "chokidar \"+(src|test)/**/*.js\" --initial"
  }
}
```

## Usage with WebStorm

* Import [webstorm-code-style.xml](webstorm-code-style.xml) in preferences `Editor › Code Style › JavaScript`.
* Deactivate `Unterminated statement` inspection in preferences `Editor › Inspections`
npm package: @onidivo/eslint-config-react
Description: The ESLint configuration for React used by Onidivo
Author: Onidivo
Latest version: 1.0.38

# [onidivo](https://onidivo.com)/eslint-config-react

## Installation

Install our configuration and its peer dependencies.

```.sh
yarn add --dev @onidivo/eslint-config-react
OR
npm install --save-dev eslint @onidivo/eslint-config-react
```

```.sh
npx install-peerdeps --dev @onidivo/eslint-config-react
```

Create a `.eslintrc.json` file in your root with the following content:

```.json
{
  "extends": [
    "@onidivo/eslint-config-react",
  ]
}
```

Add a linter script to your `package.json`. In the following example, all files in the `src` and `test` folder (and
their subfolders) are checked:

```.json
{
  "scripts": {
     "lint": "eslint '{src,test}/**/*.{js,ts,tsx}'",
     "lint:fix": "eslint '{src,test}/**/*.{js,ts,tsx}' --fix"
  }
}
`````

## Watcher task

You can use [`chokidar-cli`](https://github.com/kimmobrunfeldt/chokidar-cli) to add a task that lints your files on save. First install it:
```.sh
npm install --save-dev chokidar-cli
```

Then add a watch script to your `package.json`. In the following example, chokidar will look for changes in any files in the `src` and `test` folder (and their subfolders):
```.json
{
  "scripts": {
    "lint": "eslint '{src,test}/**/*.js' --fix",
    "lint:watch": "npm run watch:js -- -c 'npm run lint'",
    "watch:js": "chokidar '{src,test}/**/*.js' --initial"
  }
}
npm package: @onidivo/eslint-config-typescript
Description: The ESLint configuration for Typescript used by Onidivo
Author: Onidivo
Latest version: 1.0.45

# [onidivo](https://onidivo.com)/eslint-config-typescript

## Installation

Install our configuration and its peer dependencies.

```.sh
yarn add --dev @onidivo/eslint-config-typescript
OR
npm install --save-dev eslint @onidivo/eslint-config-typescript
```

```.sh
npx install-peerdeps --dev @onidivo/eslint-config-typescript
```

Create a `.eslintrc.json` file in your root with the following content:

```.json
{
  "extends": [
    "@onidivo/eslint-config-typescript",
  ]
}
```

Add a linter script to your `package.json`. In the following example, all files in the `src` and `test` folder (and
their subfolders) are checked:

```.json
{
  "scripts": {
     "lint": "eslint '{src,test}/**/*.{js,ts,tsx}'",
     "lint:fix": "eslint '{src,test}/**/*.{js,ts,tsx}' --fix"
  }
}
```

## Watcher task

You can use [`chokidar-cli`](https://github.com/kimmobrunfeldt/chokidar-cli) to add a task that lints your files on
save. First install it:

```.sh
yarn add --dev chokidar-cli
OR
npm install --save-dev chokidar-cli
```

Then add a watch script to your `package.json`. In the following example, chokidar will look for changes in any files in
the `src` and `test` folder (and their subfolders):

```.json
{
  "scripts": {
    "lint": "eslint '{src,test}/**/*.{js,ts,tsx}' --fix",
    "lint:watch": "npm run watch:js -- -c 'npm run lint'",
    "watch:js": "chokidar '{src,test}/**/*.{js,ts,tsx}' --initial"
  }
}
```

## Usage with WebStorm

* Import [webstorm-code-style.xml](webstorm-code-style.xml) in preferences `Editor › Code Style › JavaScript`.
* Deactivate `Unterminated statement` inspection in preferences `Editor › Inspections`