# @movable/eslint-config

> Shared ESLint configuration for Movable Ink

Latest version **3.0.0** (published 2024-03-20) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-03-20 |
| First published | 2019-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Alex LaFroscia |
| Maintainers | chayelheinsen, polera-mi, movable-ink, mnutt, shyshy, nicksteffens_mi, mansurtsutiev, mi_rtepper, aqmnguyen |

## Links

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

## Dependencies (9)

- [@babel/core](https://npm.io/package/@babel/core.md) ^7.15.5
- [@babel/eslint-parser](https://npm.io/package/@babel/eslint-parser.md) ^7.15.4
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.5.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^4.2.1
- [@movable/prettier-config](https://npm.io/package/@movable/prettier-config.md) ^2.0.0
- [eslint-plugin-no-unsanitized](https://npm.io/package/eslint-plugin-no-unsanitized.md) ^3.2.0
- [@babel/plugin-syntax-decorators](https://npm.io/package/@babel/plugin-syntax-decorators.md) ^7.14.5
- [@babel/plugin-syntax-top-level-await](https://npm.io/package/@babel/plugin-syntax-top-level-await.md) ^7.14.5
- [@movable/eslint-plugin-no-wildcard-postmessage](https://npm.io/package/@movable/eslint-plugin-no-wildcard-postmessage.md) ^1.0.0

## Recent versions

- 3.0.0 (latest) — 2024-03-20
- 2.0.0 — 2021-05-24
- 1.0.0 — 2021-05-11
- 0.6.12 — 2021-05-06
- 0.6.11 — 2021-05-06
- 0.6.10 — 2021-03-01
- 0.6.9 — 2021-01-27
- 0.6.8 — 2020-10-13
- 0.6.7 — 2020-09-15
- 0.6.6 — 2020-08-25
- 0.6.5 — 2020-08-24
- 0.6.4 — 2020-08-10
- 0.6.3 — 2020-07-24
- 0.6.2 — 2020-05-19
- 0.6.1 — 2020-05-06
- … 7 more at https://npm.io/package/@movable/eslint-config/versions

## README

# `@movable/eslint-config`

## Installation

The easiest way to set up this configuration is to leverage the Yeoman generator by running the following in the root of your project:

```bash
yarn create @movable/lint-config
```

This will ask you some questions about your project and set up the configuration for you based on the answers.

---

If you want to configure your project manually, you can do the following:

Add this package, as well as ESLint and Prettier, to your `devDependencies` by running:

```bash
yarn add -D @movable/eslint-config
```

## Configuration

A few ESLint configurations are provided, based on the kind of environment you are working in.

- [Base (`@movable/eslint-config`)](./index.js')
- [Node (`@movable/eslint-config-node`)](../node/index.js')
- [Ember (`@movable/eslint-config-ember`)](../ember/index.js')
- [React (`@movable/eslint-config-react`)](../react/index.js')

This sets up some shared rules, as well as configuring ESLint to run Prettier (so that both projects do not have to be run independently). You can extend from the base configuration like so:

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

Environment-specific packages can be included as well to better suit different use-cases. Note that each one is its own Node dependency and must be installed individually.

```json
{
  "extends": ["@movable/eslint-config", "@movable/eslint-config-node"]
}
```

## Linting Your Project

It is recommended that you add the following `package.json` to create an easy way to run ESLint from the command line:

```diff
{
  "scripts": {
+   "lint": "eslint ."
  }
}
```

This allows you to run the following:

```bash
yarn lint # Report errors in your project
yarn lint --fix # Fix anything that can be fixed automatically, and report everything else
```

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