# laravel-mix-eslint

> A Laravel Mix extension for Eslint loader support.

Latest version **0.2.0** (published 2020-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install laravel-mix-eslint
pnpm add laravel-mix-eslint
yarn add laravel-mix-eslint
bun add laravel-mix-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.2.0 |
| Published | 2020-12-24 |
| First published | 2018-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rias Van der Veken |
| Maintainers | rias |
| Keywords | laravel, laravel mix, mix, eslint, webpack |

## Links

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

## 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.2.0 (latest) — 2020-12-24
- 0.1.3 — 2019-03-06
- 0.1.2 — 2018-09-03
- 0.1.1 — 2018-03-18
- 0.1.0 — 2018-03-17

## README

<p align="center">
<a href="https://www.npmjs.com/package/laravel-mix-eslint"><img src="https://img.shields.io/npm/v/laravel-mix-eslint.svg" alt="NPM"></a>
<a href="https://npmcharts.com/compare/laravel-mix-eslint?minimal=true"><img src="https://img.shields.io/npm/dt/laravel-mix-eslint.svg" alt="NPM"></a>
<a href="https://www.npmjs.com/package/laravel-mix-eslint"><img src="https://img.shields.io/npm/l/laravel-mix-eslint.svg" alt="NPM"></a>
</p>

# Laravel Mix Eslint

This extension provides instant Eslint support to your Mix (v2.1 and up) builds.

## Usage

First, install the extension.

```
npm install laravel-mix-eslint --save-dev
```

Then, require it within your `webpack.mix.js` file, like so:

```js
let mix = require('laravel-mix')

require('laravel-mix-eslint')

mix
  .js('resources/assets/js/app.js', 'public/js')
  .eslint({
    fix: true,
    extensions: ['js']
    //...
  })
  .less('resources/assets/less/app.less', 'public/css')
```

You can pass an object with options for the [eslint-webpack-plugin](https://github.com/webpack-contrib/eslint-webpack-plugin) to the `mix.eslint()` function.

And you're done! Compile everything down with `npm run dev`.

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