Registry / testing / laravel-mix-eslint

laravel-mix-eslint

JSON →
library0.2.0jsnpmunverified

A Laravel Mix extension (v0.2.0) that adds ESLint support to Mix builds (v2.1+). Automatically integrates eslint-webpack-plugin into the Mix pipeline. Usage is simple: require the package in webpack.mix.js, then call .eslint({…}) with any eslint-webpack-plugin options. Last release appears stable but no recent updates.

npm install laravel-mix-eslint
INSTALL
IMPORT
SIG · LARAVEL-MIX-ESLINT
L
laravel-mix-eslint
testingjavascriptv0.2.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

laravel-mix-eslint
require('laravel-mix-eslint')
Side-effect import: only need to require it, no named export.

Shows how to require the extension and call .eslint() with options in a Laravel Mix file.

// Install: npm install laravel-mix-eslint --save-dev // In webpack.mix.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');
Debug
Known issues
gotchaOption fix: true may modify source files in place. Use with caution.
fix
Set fix: false or run in CI with read-only.
affects: >=0.0.0
gotchaESLint configuration must be present in your project (e.g., .eslintrc); otherwise no rules are applied.
fix
Create an .eslintrc file or install a preset like eslint-config-standard.
affects: >=0.0.0
Errors
Common errors & fixes
Module not found: Can't resolve 'eslint-webpack-plugin'
Missing eslint-webpack-plugin dependency.
fix
Run npm install eslint-webpack-plugin --save-dev
mix.eslint is not a function
Extension not loaded or Mix version too old.
fix
Ensure require('laravel-mix-eslint') is called and Mix >=2.1.7
Upgrade
Version history
0.2.0latest on npm
Audit
Dependencies
laravel-mixrequiredPeer dependency required to extend Mix build system.
Agent activity
4 hits · last 30 days
node
4
Resources
laravel-mix-eslint — npm install laravel-mix-eslint · libregistry