{"id":26379,"library":"semistandard-loader","title":"semistandard-loader","description":"A webpack pre-loader that runs Flet/semistandard (a semicolon-aware variant of JavaScript Standard Style) during builds. Version 0.0.4 is the latest and only stable release; no further updates have been made. It integrates seamlessly with webpack 1.x and standard's configuration options (e.g., parser). Unlike ESLint loaders, this enforces semistandard's specific style rules out of the box with minimal configuration.","status":"abandoned","version":"0.0.4","language":"javascript","source_language":"en","source_url":"https://github.com/wombleton/semistandard-loader%22","tags":["javascript","webpack","eslint","lint","eshint","semistandard"],"install":[{"cmd":"npm install semistandard-loader","lang":"bash","label":"npm"},{"cmd":"yarn add semistandard-loader","lang":"bash","label":"yarn"},{"cmd":"pnpm add semistandard-loader","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Loader interface required by webpack 1.x","package":"webpack","optional":false},{"reason":"Core linting engine that provides the standard rules plus semicolons","package":"semistandard","optional":false}],"imports":[{"note":"This loader is designed for webpack 1.x preLoaders. For webpack 2+, use enforce: 'pre' instead of preLoaders.","wrong":"Using 'loader: semistandard-loader' instead of 'loader: semistandard' (webpack resolves from loader name)","symbol":"config object","correct":"In webpack 1.x config: { module: { preLoaders: [{ test: /\\.jsx?$/, loader: 'semistandard', exclude: /node_modules/ }] }, semistandard: { parser: 'babel-eslint' } }"},{"note":"The loader itself is CommonJS; mixing with ESM may cause issues in older webpack.","wrong":"import webpack from 'webpack'; (ESM import works, but this loader is CJS-only)","symbol":"webpack require","correct":"var webpack = require('webpack');"},{"note":"Webpack 1 expects module.exports; ES6 exports break the config.","wrong":"Using ES6 export default config; (not supported by webpack 1.x config files)","symbol":"plugin configuration","correct":"var config = { ... }; module.exports = config;"}],"quickstart":{"code":"// webpack.config.js\nvar webpack = require('webpack');\n\nvar config = {\n  entry: './index.js',\n  output: { filename: 'bundle.js' },\n  module: {\n    preLoaders: [\n      {\n        test: /\\.jsx?$/,\n        loader: 'semistandard',\n        exclude: /(node_modules|bower_components)/\n      }\n    ],\n    loaders: [\n      // your other loaders\n    ]\n  },\n  semistandard: {\n    // optional: parser: 'babel-eslint'\n  }\n};\n\nmodule.exports = config;","lang":"javascript","description":"Shows how to set up semistandard-loader as a preloader in a webpack 1 configuration file."},"warnings":[{"fix":"Replace 'preLoaders' with 'rules' and add 'enforce: 'pre'' to the rule for semistandard.","message":"preLoaders syntax is webpack 1 only; does not work with webpack 2+ (use enforce: 'pre' instead).","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Consider migrating to eslint-loader with eslint-config-semistandard for modern webpack.","message":"Package has no updates since 2016; semistandard itself may have breaking changes.","severity":"deprecated","affected_versions":"*"},{"fix":"Prefix custom options with loader name or use module.rules options for better isolation.","message":"The 'semistandard' key in config is not webpack standard; it's specific to this loader and may conflict with other loaders using similar keys.","severity":"gotcha","affected_versions":"*"},{"fix":"Upgrade Node.js to LTS (>= 4) or pin semistandard to an older version.","message":"Node.js 0.10/0.12 not supported by modern semistandard dependencies; loader requires Node >= 4.","severity":"breaking","affected_versions":">=1.0.0 (semistandard 10+)"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install semistandard --save-dev","cause":"semistandard not installed or not in node_modules","error":"Error: Cannot find module 'semistandard'"},{"fix":"Fix the reported linting issues or disable the loader for that file.","cause":"Semistandard linting errors reported as warnings by the loader","error":"WARNING in ./index.js\n<text>:1:1: Expected space or tab after // in comment."},{"fix":"Ensure the loader is placed as a pre-loader and that your source uses standard JS syntax or configure parser (e.g., babel-eslint).","cause":"Loader does not transpile code; it runs on raw source before transpilation","error":"Module build failed: SyntaxError: Unexpected token (1:9)"},{"fix":"Migrate to webpack 2+ configuration: use module.rules with enforce: 'pre'.","cause":"Using preLoaders with webpack 2+","error":"Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}