Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riasvdv/laravel-mix-eslint
mix.eslint()
https://github.com/riasvdv/laravel-mix-eslint
eslint eslint-loader laravel-mix laravel-mix-plugin
Last synced: 3 months ago
JSON representation
mix.eslint()
- Host: GitHub
- URL: https://github.com/riasvdv/laravel-mix-eslint
- Owner: riasvdv
- Created: 2018-03-17T20:39:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-03T07:01:52.000Z (over 3 years ago)
- Last Synced: 2024-11-01T10:42:37.323Z (3 months ago)
- Topics: eslint, eslint-loader, laravel-mix, laravel-mix-plugin
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 20
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`.