# @envisagesoftware/eslint-config

> The base ESLint shareable config for Envisage Software Solutions Typescript projects.

Latest version **0.4.0** (published 2024-08-15) · CC-BY-NC-SA-4.0 license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2024-08-15 |
| First published | 2020-08-27 |
| Weekly downloads | 0 |
| License | CC-BY-NC-SA-4.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Envisage Software Solutions |
| Maintainers | travisvalenti |

## Links

- npm: https://www.npmjs.com/package/@envisagesoftware/eslint-config
- npm.io page: https://npm.io/package/@envisagesoftware/eslint-config

## Recent versions

- 0.4.0 (latest) — 2024-08-15
- 0.3.1 — 2021-02-12
- 0.3.0 — 2020-09-25
- 0.2.4 — 2020-08-27

## README

# Envisage ESLint Shareable Config

## Basic setup

1. Install the following dev dependencies (`npm i -D <package>`):
  - `eslint`
  - `@typescript-eslint/eslint-plugin`
  - `@typescript-eslint/parser`
  - `eslint-plugin-jest`
  - `eslint-plugin-only-warn`
  - `@envisagesoftware/eslint-config`

2. Create an `.eslintrc.json` file in the root of the project (not `/src`).

3. Add the following:
```
{
  "extends": [
    "@envisagesoftware/eslint-config",
    "plugin:jest/recommended",
    "plugin:jest/style",
    "plugin:import/errors",
    "plugin:import/warnings",
    "plugin:import/typescript"
  ],
  "rules": {
    "import/no-unresolved": "off",
    "import/order": [
      "warn",
      {
        "groups": [
          "builtin",
          "external",
          "internal",
          "parent",
          "sibling",
          "index"
        ],
        "newlines-between": "always-and-inside-groups"
      }
    ]
  }
}
```

3a. If you're using webpack, add the following setting:
```
"settings": {
  "import/resolver": "webpack",
  ...
}
```

3b. If you are using `@/` paths, add the following setting:
```
"settings": {
  "import/internal-regex": "^@/.*",
  ...
}
```


## Setup in React projects

1. Add the following extensions to your `.eslintrc.json`:
```
"extends": [
  "plugin:react/recommended",
  "plugin:react-hooks/recommended",
]
```

2. Add the following setting:
```
"settings": {
  "react": {
    "version": "detect"
  },
  ...
}
```

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