Registry / devops / ws-eslint-config

ws-eslint-config

JSON →
library1.13.3jsnpmunverified

A shareable ESLint configuration package for personal/professional use, version 1.13.3. It provides a base ESLint config with rules for JavaScript and TypeScript, and includes peer dependencies for inquirer and js-yaml for interactive setup and YAML config. Release cadence is irregular; primarily maintained by the author. Compared to other shareable configs (e.g., eslint-config-airbnb), this one is simpler and more opinionated, tailored to individual preferences.

npm install ws-eslint-config
INSTALL
IMPORT
SIG · WS-ESLINT-CONFIG
W
ws-eslint-config
devopsjavascriptv1.13.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import config from 'ws-eslint-config'
const config = require('ws-eslint-config')
Package is ESM-only; CommonJS require will fail. Use the default export for base config.
typescript
import { typescript } from 'ws-eslint-config'
import typescript from 'ws-eslint-config/typescript'
Named export for TypeScript-specific config; available since v1.0.
react
import { react } from 'ws-eslint-config'
import react from 'ws-eslint-config/react'
Named export for React-specific config; common mistake to use subpath import.

Quick start to extend the base config with optional TypeScript and React presets in .eslintrc.json.

// .eslintrc.json { "extends": [ "ws-eslint-config", "ws-eslint-config/typescript", "ws-eslint-config/react" ] }
Debug
Known issues
breakingESM-only since v1.0.0; CommonJS require() will fail with ERR_REQUIRE_ESM.
fix
Use import syntax or dynamic import(). If you need CJS, stay on v0.x (not available).
affects: >=1.0.0
deprecatedInquirer peer dependency may be deprecated if moving to newer versions; check compatibility.
fix
Update inquirer to ^8.2.5 as specified in peer deps, or migrate to alternative prompts.
affects: <2.0.0
gotchaThe peer dependencies (inquirer, js-yaml) must be installed manually; npm 7+ auto-installs but can cause version conflicts.
fix
Run: npm install inquirer@^8.2.5 js-yaml@^4.1.0 --save-dev
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'ws-eslint-config'
Package not installed or not in node_modules.
fix
Run: npm install ws-eslint-config --save-dev
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
Using CommonJS require() with ESM-only package.
fix
Switch to import statement or use dynamic import(): const config = await import('ws-eslint-config')
Parse error: unknown property 'ws-eslint-config/typescript'
Using subpath import instead of named export in extends array.
fix
Use: "extends": ["ws-eslint-config", "ws-eslint-config"] and for TypeScript, install and use named export: import { typescript } from 'ws-eslint-config'
Upgrade
Version history
1.13.3latest on npm
Audit
Dependencies
inquirerrequiredPeer dependency for interactive command-line prompts during setup
js-yamlrequiredPeer dependency for parsing YAML configuration files
Agent activity
13 hits · last 30 days
node
12
Resources
ws-eslint-config — npm install ws-eslint-config · libregistry