# eslint-config-labnol

> ESLint and Prettier Config

Latest version **1.0.24** (published 2022-01-08) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install eslint-config-labnol
pnpm add eslint-config-labnol
yarn add eslint-config-labnol
bun add eslint-config-labnol
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.24 |
| Published | 2022-01-08 |
| First published | 2020-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Amit Agarwal |
| Maintainers | labnol |
| Keywords | eslint, prettier, google apps script |

## Links

- npm: https://www.npmjs.com/package/eslint-config-labnol
- Repository: https://github.com/labnol/eslint-config-labnol
- Homepage: https://github.com/labnol/eslint-config-labnol#readme
- Issues: https://github.com/labnol/eslint-config-labnol/issues
- npm.io page: https://npm.io/package/eslint-config-labnol

## 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
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.24 (latest) — 2022-01-08
- 1.0.23 — 2021-10-26
- 1.0.22 — 2021-09-04
- 1.0.21 — 2021-09-03
- 1.0.20 — 2021-09-03
- 1.0.19 — 2021-08-10
- 1.0.18 — 2021-06-30
- 1.0.17 — 2021-05-08
- 1.0.16 — 2021-04-12
- 1.0.15 — 2021-04-12
- 1.0.14 — 2021-04-12
- 1.0.13 — 2021-03-30
- 1.0.12 — 2021-03-20
- 1.0.11 — 2021-03-04
- 1.0.10 — 2021-02-16
- … 10 more at https://npm.io/package/eslint-config-labnol/versions

## README

# eslint-config-labnol

ESLint and Prettier configuration for [Digital Inspiration](https://digitalinspiration.com/) projects

## Installation

```sh
npm install --save-dev eslint-config-labnol
```

## Usage

Then add the extends to your `.eslintrc.js` file:

The ESLint rules go directly under "rules" while prettier options go under "prettier/prettier". Note that prettier rules overwrite anything in my config (trailing comma, and single quote), so you'll need to include those as well.

```js
module.exports = {
  extends: 'labnol',
  rules: {
    'no-debugger': 'off',
    'no-await-in-loop': 'warning',
    'prettier/prettier': [
      'error',
      {
        printWidth: 120,
        trailingComma: 'es5',
        singleQuote: true,
      },
    ],
  },
};
```

## ESlint and Prettier in VS Code

Update your VS Code settings to run the linter action on saving the file.

```json
{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "[javascript]": {
    "editor.formatOnSave": false
  },
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true,
    "source.organizeImports": true
  },
  "files.autoSave": "onFocusChange",
  "eslint.validate": ["javascript", "javascriptreact"]
}
```

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