Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

laravel-mix-eslint

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-mix-eslint

A Laravel Mix extension for Eslint loader support.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.1K
decreased by-3.85%
Maintainers
1
Weekly downloads
 
Created
Source

NPM NPM NPM

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:

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 to the mix.eslint() function.

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

Keywords

FAQs

Package last updated on 24 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc