# @k8slens/eslint-config

> Lens eslint and prettier configurations

Latest version **6.5.0** (published 2023-05-26) · MIT license · 0 weekly downloads

## Install

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

Provides the command `lens-lint`.

## Health

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

Positive: esm support; no vulnerabilities; popular repo.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.5.0 |
| Published | 2023-05-26 |
| First published | 2023-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23233 |
| Author | OpenLens Authors |
| Maintainers | mirantis_it, jakolehm, k8slens-bot |

## Links

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

## Recent versions

- 6.5.0 (latest) — 2023-05-26
- 6.5.0-alpha.3 (alpha) — 2023-05-04
- 6.5.0-alpha.2 — 2023-04-12
- 6.5.0-alpha.1 — 2023-03-14

## README

# Lens Code Style

**Note:** This package contains Eslint and Prettier configurations, name of package is `@k8slens/eslint-config` just because Eslint has arbitrary requirement (https://eslint.org/docs/latest/extend/shareable-configs).

## Usage

1. Install `@k8slens/eslint-config`
2. Create `.prettierrc` that contains `"@k8slens/eslint-config/prettier"`
3. Add a `.eslintrc.js` that extends `@k8slens/eslint-config/eslint`, for example:

```
module.exports = {
  extends: "@k8slens/eslint-config/eslint",
  parserOptions: {
    project: "./tsconfig.json"
  }
};
```

4. Add linting and formatting scripts to `package.json`

```
{
  "scripts": {
    "lint": "lens-lint",
    "lint:fix": "lens-lint --fix"
  }
}
```

6. Run `npm run lint` to lint
7. Run `npm run format` to fix all formatting

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