{"id":20178,"library":"laravel-mix-eslint","title":"laravel-mix-eslint","description":"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.","status":"maintenance","version":"0.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/riasvdv/laravel-mix-eslint","tags":["javascript","laravel","laravel mix","mix","eslint","webpack"],"install":[{"cmd":"npm install laravel-mix-eslint","lang":"bash","label":"npm"},{"cmd":"yarn add laravel-mix-eslint","lang":"bash","label":"yarn"},{"cmd":"pnpm add laravel-mix-eslint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required to extend Mix build system.","package":"laravel-mix","optional":false}],"imports":[{"note":"Side-effect import: only need to require it, no named export.","wrong":"","symbol":"laravel-mix-eslint","correct":"require('laravel-mix-eslint')"}],"quickstart":{"code":"// Install: npm install laravel-mix-eslint --save-dev\n// In webpack.mix.js:\nlet mix = require('laravel-mix');\nrequire('laravel-mix-eslint');\nmix\n  .js('resources/assets/js/app.js', 'public/js')\n  .eslint({\n    fix: true,\n    extensions: ['js']\n  })\n  .less('resources/assets/less/app.less', 'public/css');","lang":"javascript","description":"Shows how to require the extension and call .eslint() with options in a Laravel Mix file."},"warnings":[{"fix":"Set fix: false or run in CI with read-only.","message":"Option fix: true may modify source files in place. Use with caution.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Create an .eslintrc file or install a preset like eslint-config-standard.","message":"ESLint configuration must be present in your project (e.g., .eslintrc); otherwise no rules are applied.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install eslint-webpack-plugin --save-dev","cause":"Missing eslint-webpack-plugin dependency.","error":"Module not found: Can't resolve 'eslint-webpack-plugin'"},{"fix":"Ensure require('laravel-mix-eslint') is called and Mix >=2.1.7","cause":"Extension not loaded or Mix version too old.","error":"mix.eslint is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}