# @amplication/plugin-linter-eslint

> This plugin is created to add eslint functionality to the amplication app

Latest version **0.0.5** (published 2023-12-28) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @amplication/plugin-linter-eslint
pnpm add @amplication/plugin-linter-eslint
yarn add @amplication/plugin-linter-eslint
bun add @amplication/plugin-linter-eslint
```

## 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.0.5 |
| Published | 2023-12-28 |
| First published | 2023-08-30 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 36.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ashish Padhy |
| Maintainers | amplication-bot, mulygottlieb, levivannoort, overbit, barshimi, morhag, amitbarletz, yuvalhazaz |

## Links

- npm: https://www.npmjs.com/package/@amplication/plugin-linter-eslint
- npm.io page: https://npm.io/package/@amplication/plugin-linter-eslint

## Recent versions

- 0.0.5 (latest) — 2023-12-28
- 0.0.8-beta.pr-354.1e83d71 (beta) — 2024-03-12
- 0.0.8-beta.pr-354.31d30ce — 2024-03-12
- 0.0.7 — 2024-03-08
- 0.0.6 — 2024-03-08
- 0.0.3 — 2023-11-28
- 0.0.3-beta.pr-297.80f0b66 — 2023-11-28
- 0.0.2-beta.pr-295.e09faa7 — 2023-11-27
- 0.0.2-beta.pr-289.0d3954c — 2023-11-22
- 0.0.2 — 2023-11-20
- 0.0.2-beta.pr-282.2ad4d06 — 2023-11-20
- 0.0.2-beta.pr-282.bc8390d — 2023-11-20
- 0.0.1 — 2023-08-30

## README

# @amplication/plugin-linter-eslint

<!-- [![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-auth-basic)](https://www.npmjs.com/package/@amplication/plugin-auth-basic) -->

This plugin helps in integrating eslint into your app generated by Amplication.

## Purpose

Provides linting out of the box by leveraging one of the best and most popular solutions in industry. This plugin is based on recommended eslint configuration for React projects for the admin app and recommended eslint configuration for Node.js projects for the server app.

## Configuration

This plugin requires the following settings during plugin configuration:

- `rules` - eslint rules to be used in the app. See [eslint rules](https://eslint.org/docs/rules/) for more information. Example ( Default rules in settings ) :-

```ts
{
  "rules" : {
    "indent": [ "error", 4 ],
    "linebreak-style": [ "error", "unix" ],
    "quotes": [ "error", "single" ],
    "semi": [ "error", "always" ]
  }
}
```

## Scripts

### `build`

Running `npm run build` will bundle your plugin with Webpack for production.

### `dev`

Running `npm run dev` will watch your plugin's source code and automatically bundle it with every change.

### `lint`

Running `npm run lint` will lint your plugin's source code. If run with `npm run lint:fix` it will also fix the linting errors.

## Usage

It can be used by adding the plugin in the `plugins` page of the app settings. The plugin can be added by providing the settings as shown in the [Configuration](#configuration) section.

Results in creating a `.eslintrc` file in the root of the app's server and admin with the rules provided in the settings.

To view the files that will be created, check the [templates](./src/static/) folder.

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