Registry / testing / eslint-config-semistandard

eslint-config-semistandard

JSON →
library17.0.0jsnpmunverified

`eslint-config-semistandard` provides an ESLint shareable configuration that enforces the JavaScript Semistandard Style. This style is a direct derivative of JavaScript Standard Style, with the key distinction of requiring semicolons at the end of statements, addressing a common preference among developers. Currently at version 17.0.0, the package maintains a close release cadence with `eslint-config-standard`, its upstream dependency, typically updating its major version whenever `eslint-config-standard` does. Its primary differentiator is this explicit support for semicolons, offering a pre-configured, opinionated linting setup for projects that value code consistency without the need to define a multitude of individual ESLint rules. This makes it an efficient choice for quick project setup while adhering to a widely recognized JavaScript style guide.

npm install eslint-config-semistandard
INSTALL
IMPORT
SIG · ESLINT-CONFIG-SEMI
E
eslint-config-semistandard
testingjavascriptv17.0.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.

semistandard
{ "extends": "semistandard" }
import semistandard from 'eslint-config-semistandard';
This package provides an ESLint shareable configuration. It is referenced as a string within the `extends` array of your ESLint configuration file (e.g., `.eslintrc.json` or `.eslintrc.js`), not imported as a JavaScript module.

Installs `eslint-config-semistandard` along with all necessary peer dependencies, then shows how to configure an `.eslintrc.json` file to extend the `semistandard` configuration, and provides a simple JavaScript file to demonstrate its application.

npm install --save-dev eslint eslint-config-semistandard eslint-plugin-import eslint-plugin-n eslint-plugin-promise eslint-config-standard // .eslintrc.json { "extends": "semistandard", "env": { "browser": true, "node": true, "es2021": true } } // index.js (example file to lint) const path = require('path'); const greet = (name) => { console.log(`Hello, ${name}!`); }; greet('World'); // Linting this file will enforce semicolon usage and other semistandard rules. // For example, missing semicolons will be reported. // To run: `npx eslint index.js`
Debug
Known issues
breakingVersion 16.0.0 was a breaking change, updating its base to `eslint-config-standard` version 16.x. Projects upgrading from older versions must also ensure their `eslint-config-standard` peer dependency is updated accordingly and review for any rule changes introduced by `standard`.
fix
Update `eslint-config-standard` to version `^16.0.0` or higher, compatible with `eslint-config-semistandard` v16.x. Review the `eslint-config-standard` changelog for specific rule changes.
affects: >=16.0.0 <17.0.0
breakingWith version 16.0.0, the recommended ESLint configuration filename was changed from `.eslintrc.js` to `eslintrc.json` to align with `eslint-config-standard` practices. While `.eslintrc.js` might still work, using `.eslintrc.json` is the new standard.
fix
Rename your ESLint configuration file from `.eslintrc.js` to `.eslintrc.json` if you are using an older JavaScript-based config, or update your build tools/IDE to recognize the new `.eslintrc.json` filename.
affects: >=16.0.0
breakingVersion 17.0.0 is based on `eslint-config-standard` version 17.0.0. This implies potential breaking changes or new rules inherited from the upstream `standard` configuration. All peer dependencies, especially `eslint-config-standard`, must be updated to their compatible major versions.
fix
Ensure `eslint-config-standard` is installed at version `^17.0.0`. Review the changelog for `eslint-config-standard` v17.0.0 for details on any new rules or modifications that might affect your codebase.
affects: >=17.0.0
gotchaThis package, like many ESLint shareable configs, relies on several peer dependencies (e.g., `eslint`, `eslint-config-standard`, `eslint-plugin-import`). Failing to install these explicitly, or installing incompatible versions, will lead to errors.
fix
Always install all listed peer dependencies alongside `eslint-config-semistandard` at compatible versions. Use `npm info eslint-config-semistandard peerDependencies` to check current requirements, and `npm install --save-dev [all-peer-deps]`.
affects: *
Errors
Common errors & fixes
Error: Failed to load config 'semistandard' to extend from.
The `eslint-config-semistandard` package is not installed or not resolvable by ESLint.
fix
Ensure `eslint-config-semistandard` is installed: `npm install --save-dev eslint-config-semistandard`.
ESLint: The 'extends' property in your ESLint configuration specifies a configuration that is incompatible with your current ESLint version.
The installed ESLint version is not compatible with the `eslint-config-semistandard` or its base `eslint-config-standard` package's peer dependency requirements.
fix
Check the `peerDependencies` of `eslint-config-semistandard` and `eslint-config-standard` (e.g., `npm info eslint-config-semistandard peerDependencies`) and install a compatible `eslint` version, typically `npm install --save-dev eslint@^8.13.0` for recent versions.
ESLint: Rule 'promise/always-return' is not found.
One or more of the required ESLint plugins (e.g., `eslint-plugin-promise`, `eslint-plugin-import`, `eslint-plugin-n`) are missing or an incompatible version is installed.
fix
Install all necessary peer dependencies at their specified versions: `npm install --save-dev eslint-plugin-import@^2.26.0 eslint-plugin-n@^15.0.0 eslint-plugin-promise@^6.0.0`.
Upgrade
Version history
17.0.0latest on npm
Audit
Dependencies
eslintrequiredCore ESLint engine, required to run linting.
eslint-config-standardrequiredThis package extends `eslint-config-standard`, inheriting most of its rules.
eslint-plugin-importrequiredProvides linting rules for ES2015+ import/export syntax.
eslint-plugin-nrequiredProvides Node.js specific ESLint rules.
eslint-plugin-promiserequiredProvides ESLint rules for best practices around Promises.
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-semistandard — npm install eslint-config-semistandard · libregistry