Registry / testing / eslint-config-pretty-standard

eslint-config-pretty-standard

JSON →
library3.0.1jsnpmunverified

An ESLint shareable config that combines StandardJS linting rules (excluding stylistic rules) with Prettier formatting. Version 3.0.1 requires ESLint 6, eslint-plugin-promise 4.2.1+, and eslint-plugin-react 7.14.2+ as peer dependencies. Unlike eslint-config-standard, this config strips out style rules to avoid conflicts with Prettier. It is a lightweight alternative to full Standard or eslint-config-prettier setups, intended specifically for React projects. The package is rarely updated but stable for its target ESLint version range.

npm install eslint-config-pretty-standard
INSTALL
IMPORT
SIG · ESLINT-CONFIG-PRET
E
eslint-config-pretty-standard
testingjavascriptv3.0.1
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.

config
{ "extends": ["pretty-standard"] }
{ "extends": ["eslint-config-pretty-standard"] }
ESLint automatically resolves the eslint-config- prefix; use 'pretty-standard' not the full package name.
config (file extension)
// .eslintrc.js module.exports = { extends: ['pretty-standard'] }
// .eslintrc.json (incorrect if using .js extension) { "extends": ["pretty-standard"] }
For .eslintrc.js files, use module.exports = { extends: [...] }; .eslintrc.json expects plain JSON.
config (nested)
{ "extends": ["pretty-standard"] }
{ "extends": ["pretty-standard"], "rules": { "no-console": "error" } }
You can override rules, but be aware that this config already disables many stylistic rules in favor of Prettier.

Install peer dependencies and add the config to an ESLint config file. No need to add the eslint-config- prefix.

npm install --save-dev eslint-config-pretty-standard eslint prettier // .eslintrc.json { "extends": ["pretty-standard"] }
Debug
Known issues
breakingVersion 3.0.0 dropped support for ESLint < 6; peer dependency 'eslint': '^6'.
fix
Ensure ESLint 6.x is installed. For ESLint 5, use eslint-config-pretty-standard@2.x.
affects: >=3.0.0 <4.0.0
deprecatedESLint 6 is end-of-life. The config does not support ESLint 7+.
fix
Consider migrating to a maintained config like eslint-config-prettier or eslint-config-standard-with-typescript.
affects: >=3.0.0
gotchaThis config automatically disables all ESLint rules that conflict with Prettier. Do NOT manually disable inline style-related rules.
fix
Let Prettier handle formatting; avoid adding ESLint style rules (e.g., semi, quotes) to your config.
affects: >=1.0.0
gotchaThe config requires eslint-plugin-react even if you don't use React, but it does not require eslint-plugin-import.
fix
Install eslint-plugin-react as a dev dependency or consider using a different config if not using React.
affects: >=3.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'promise' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-promise'
Missing peer dependency eslint-plugin-promise.
fix
npm install --save-dev eslint-plugin-promise@^4.2.1
Error: Failed to load plugin 'react' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-react'
Missing peer dependency eslint-plugin-react.
fix
npm install --save-dev eslint-plugin-react@^7.14.2
Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration
eslint-plugin-react needs a React version setting from the project.
fix
Add 'settings': { 'react': { 'version': 'detect' } } to your ESLint config or set a specific version.
Upgrade
Version history
3.0.1latest on npm
Audit
Dependencies
eslintrequiredpeer dependency for ESLint configuration
eslint-plugin-promiserequiredpeer dependency required for Promise rules
eslint-plugin-reactrequiredpeer dependency required for React rules
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-pretty-standard — npm install eslint-config-pretty-standard · libregistry