{"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,"search_vec":"'1':30 '2':28 '7.0.0':17 'babel':47 'babel-eslint':46 'code':10 'convent':58 'current':19 'custom':43 'detail':50 'differenti':35 'drop':31 'emit':49 'eshint':68 'eslint':48,66 'follow':56 'format':60 'guid':41 'integr':25 'javascript':9,12,64 'key':34 'leverag':36 'like':45 'lint':8,67 'loader':3,6,63 'mainten':21 'modul':59 'need':23 'output':54 'parser':44 'popular':38 'snazzi':53 'standard':2,13,15,39 'standard-load':1 'style':14,40 'support':42 'use':11 'v6':33 'version':16 'warnings/errors':51 'webpack':5,27,29,62,65","created_at":"2026-04-25T11:23:48.456677+00:00","updated_at":"2026-04-25T11:23:48.456677+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"standard","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/standard/standard-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/standard-loader","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}