# @sennery/eslint-config

> sennery eslint config

Latest version **0.4.1** (published 2023-07-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.1 |
| Published | 2023-07-10 |
| First published | 2023-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 17 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Arsenii Likhachev |
| Maintainers | sennery |
| Keywords | eslint-config |

## Links

- npm: https://www.npmjs.com/package/@sennery/eslint-config
- Repository: https://github.com/sennery/eslint-config
- Issues: https://github.com/sennery/eslint-config/issues
- npm.io page: https://npm.io/package/@sennery/eslint-config

## Dependencies (3)

- [eslint-plugin-vue](https://npm.io/package/eslint-plugin-vue.md) ^9.15.1
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.61.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^5.61.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.4.1 (latest) — 2023-07-10
- 0.4.0 — 2023-06-13
- 0.3.4 — 2023-06-06
- 0.3.3 — 2023-01-21
- 0.3.2 — 2023-01-20
- 0.3.1 — 2023-01-13
- 0.3.0 — 2023-01-13
- 0.2.1 — 2023-01-12
- 0.2.0 — 2023-01-12
- 0.1.0 — 2023-01-10

## README

# @sennery/eslint-config

My personal eslint config. Key features:

- TypeScript + Vue 3
- Single quotes
- No semicolons
- 2 spaces indent
- Dangling commas
- Sorted imports

## Usage
### Intall

Add `@sennery/eslint-config` to your project as development dependency:

```sh
pnpm add -D @sennery/eslint-config
```

### Config `.eslintrc`

Add `@sennery` to your eslint config for full TypeScript and Vue support:

```json
{
  "extends": "@sennery"
}
```

... or use separate configs:

- #### Config for TS 
  You have to set *ENV* variable `ESLINT_TSCONFIG` with location of TS config for type based linting (`tsconfig.eslint.json` - is searched by default). If there is no TS config - type based linting will not work

    ```json
    {
      "extends": "@sennery/eslint-config/typescript"
    }
    ```

- #### Config for Vue

    ```json
    {
      "extends": "@sennery/eslint-config/vue"
    }
    ```

- #### Basic config for JS (already included in all previous configs)

    ```json
    { 
      "extends": "@sennery/eslint-config/basic"
    }
    ```

### Eslint scripts

Add following eslint commands to your `package.json`:

```json
{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}
```

### Config auto fix

- #### VS Code

    Install [VS Code ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) and create `.vscode/settings.json`
    
    ```json
    {
      "prettier.enable": false,
      "editor.formatOnSave": false,
      "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
      }
    }
    ```

- #### WebStorm

    Open the settings (`Ctrl+Alt+S`) and go to `Languages & Frameworks` > `JavaScript` > `Code Quality Tools` > `ESLint`. Enable the following setting:


- [x] Run eslint --fix on save

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