# AMCEF Eslint config for NodeJS apps

Extended Eslint config using import sort packages plugin and airbnb base

## Installation

```sh
npm install --save-dev eslint@^8.0.0 @amcef/eslint-config-node
```

or

```sh
yarn add --dev eslint@^8.0.0 @amcef/eslint-config-node
```

Config is installed together with dependencies (airbnb, import sorting plugins)

Update package.json file (tsconfig.json path must be provided to parserOptions):

```json
{
  "eslintConfig": {
    "extends": [
      "@amcef/eslint-config-node"
    ],
    "parserOptions": {
      "project": "./tsconfig.json"
    }
  },
  "scripts": {
    "lint": "eslint src/. --ext .ts",
    "lint:fix": "eslint src/. --ext .ts --fix"
  }
}
```
