# @devpulsion/eslint-config-node

> Eslint generic configuration

Latest version **1.0.6** (published 2020-11-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @devpulsion/eslint-config-node
pnpm add @devpulsion/eslint-config-node
yarn add @devpulsion/eslint-config-node
bun add @devpulsion/eslint-config-node
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2020-11-28 |
| First published | 2020-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 2 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | devpulsion |
| Maintainers | devpulsion |

## Links

- npm: https://www.npmjs.com/package/@devpulsion/eslint-config-node
- Repository: https://github.com/devpulsion/configs
- Homepage: https://github.com/devpulsion/configs/tree/master/@devpulsions/eslint-config-node/
- Issues: https://github.com/devpulsion/configs/issues
- npm.io page: https://npm.io/package/@devpulsion/eslint-config-node

## Dependencies (2)

- [eslint-plugin-node](https://npm.io/package/eslint-plugin-node.md) ^11.1.0
- [@devpulsion/eslint-config](https://npm.io/package/@devpulsion/eslint-config.md) ^1.0.6

## Recent versions

- 1.0.6 (latest) — 2020-11-28
- 1.0.5 — 2020-10-24
- 1.0.4 — 2020-08-17
- 1.0.3 — 2020-08-17

## README

# Eslint config for node

Eslint configuration for node. Works with [@devpulsion/eslint-config](https://www.npmjs.com/package/@devpulsion/eslint-config).

## Install

```sh
yarn add @devpulsion/eslint-config @devpulsion/eslint-config-node
```

In your `.eslintrc`

```json
{
  "env":{
    "node": true,
    "es6": true
  },
  "extends": ["@devpulsion/eslint-config", "@devpulsion/eslint-config-node"]
}
```

## Examples

### Example with babel

You will need the package `eslint-plugin-babel` ^5.0.0

In your `.eslintrc`

```json
{
  "env":{
    "node": true,
    "es6": true
  },
  "extends": ["@devpulsion/eslint-config", "@devpulsion/eslint-config-node"],
  "parser": "babel-eslint",
  "parserOptions": {
    "ecmaVersion": 2018,
    "sourceType": "module",
    "ecmaFeatures": {
      "jsx": false,
      "modules": true
    }
  },
}
```

And for example in your `.babelrc`

```json
{
  "env": {
    "node": {
      "presets": [
        ["@babel/preset-env", {
          "targets": { "node": "12" }
        }]
      ]
    }
  }
}
```

### Example with babel and import plugin

You will need the package

- `eslint-plugin-babel` ^5.0.0
- `eslint-import-resolver-babel-module` ^5.1.2
- `babel-plugin-module-resolver`


In your `.eslintrc`

```json
{
  "env":{
    "node": true,
    "es6": true
  },
  "extends": ["@devpulsion/eslint-config", "@devpulsion/eslint-config/plugins/import", "@devpulsion/eslint-config-node"],
  "parser": "babel-eslint",
  "parserOptions": {
    "ecmaVersion": 2018,
    "sourceType": "module",
    "ecmaFeatures": {
      "jsx": false,
      "modules": true
    }
  },
  "settings": {
    "import/resolver": {
      "babel-module": {
        "root": ["./src"]
      }
    }
  }
}
```

And for example in your `.babelrc`

```json
{
  "env": {
    "node": {
      "presets": [
        ["@babel/preset-env", {
          "targets": { "node": "12" }
        }]
      ]
    }
  },
  "plugins": [
    [
      "module-resolver", {
        "root": ["./src"]
      }
    ]
  ]
}
```

---
_Source: https://npm.io/package/@devpulsion/eslint-config-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
