{"id":20567,"library":"standard-loader","title":"standard-loader","description":"A webpack loader that lints JavaScript code using JavaScript Standard Style (standard). Version 7.0.0 is current, with maintenance as needed. It integrates with webpack 2+ (webpack 1 dropped in v6). Key differentiators: leverages the popular 'standard' style guide, supports custom parsers like babel-eslint, emits detailed warnings/errors with snazzy output, and follows the conventional module format for webpack loaders.","status":"active","version":"7.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/standard/standard-loader","tags":["javascript","webpack","eslint","lint","eshint"],"install":[{"cmd":"npm install standard-loader","lang":"bash","label":"npm"},{"cmd":"yarn add standard-loader","lang":"bash","label":"yarn"},{"cmd":"pnpm add standard-loader","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"No direct import needed; use as loader in webpack config.","wrong":"const standardLoader = require('standard-loader')","symbol":"loader","correct":"import 'standard-loader'"},{"note":"Use 'rules' array, not 'loaders'. 'enforce: pre' for preloader.","wrong":"module.exports = { module: { loaders: [ { test: /\\.jsx?$/, loader: 'standard' } ] } }","symbol":"webpack config","correct":"module.exports = { module: { rules: [ { enforce: 'pre', test: /\\.jsx?$/, loader: 'standard-loader', options: {} } ] } }"},{"note":"Option 'error' toggles error/warning; 'snazzy' controls output formatting.","wrong":"options: { parser: 'babel-eslint', emitErrors: true }","symbol":"options","correct":"options: { parser: 'babel-eslint', error: false, snazzy: true, standard: 'standard' }"}],"quickstart":{"code":"// webpack.config.js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        enforce: 'pre',\n        test: /\\.jsx?$/,\n        loader: 'standard-loader',\n        exclude: /node_modules/,\n        options: {\n          parser: 'babel-eslint',\n          snazzy: true\n        }\n      }\n    ]\n  }\n};","lang":"javascript","description":"Configure standard-loader as a webpack preloader to lint .js and .jsx files using Standard style with optional parser."},"warnings":[{"fix":"Upgrade to webpack 2+ or use standard-loader@5.x.","message":"webpack 1 support dropped in version 6.0.0. Use 5.x branch for webpack 1.","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"Replace 'emitErrors: true' with 'error: true'.","message":"Option 'emitErrors' is deprecated; use 'error' instead.","severity":"deprecated","affected_versions":">=6.0.0"},{"fix":"Use module.rules, not module.loaders.","message":"Loader must be placed in 'rules' array, not 'loaders'.","severity":"gotcha","affected_versions":">=6.0.0"},{"fix":"Run 'npm install --save-dev standard-loader standard'.","message":"standard must be installed as a peer dependency; not included automatically.","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":"npm install --save-dev standard","cause":"Missing peer dependency 'standard'.","error":"Error: Cannot find module 'standard'"},{"fix":"Add standard-loader to module.rules with enforce: 'pre'.","cause":"Loader not configured in webpack rules.","error":"Module build failed: Error: No matching loader for 'standard-loader'"},{"fix":"npm install --save-dev babel-eslint","cause":"Parser not installed.","error":"WARNING: Failed to load parser 'babel-eslint'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}