Registry / testing / eslint-plugin-woke

eslint-plugin-woke

JSON →
library1.0.1jsnpmunverified

ESLint plugin to promote diversity and inclusion in codebases by flagging offensive or insensitive terms. Version 1.0.1, released as a single stable version. It provides out-of-the-box rules for racism, profanity, gender bias, and LGBTQ+ issues, with an optional 'all' rule. Unlike other linting plugins, it focuses specifically on language inclusivity. The plugin has not been updated since 2020 and has low maintenance activity.

npm install eslint-plugin-woke
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-WOKE
E
eslint-plugin-woke
testingjavascriptv1.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.

default import
module.exports = { plugins: ['woke'] }
const woke = require('eslint-plugin-woke')
The plugin is intended for configuration files (.eslintrc), not programmatic use. Importing as a module is unnecessary and not documented.
rule reference
"woke/all": 2
"woke-all": 2
Rule names use a slash separator (woke/ruleName), not a hyphen.
individual rule
"woke/racism": 2
"racism": 2
Rules must be prefixed with 'woke/' to work.

Shows installation and minimal ESLint config to enable all woke rules using the plugin.

// .eslintrc.json { "plugins": ["woke"], "rules": { "woke/all": 2 } } // With npm scripts: // npm install eslint eslint-plugin-woke --save-dev // npx eslint .
Debug
Known issues
gotchaThe plugin has not been updated since 2020; codebase may not reflect current inclusive language best practices.
fix
Consider using a more actively maintained alternative like eslint-plugin-inclusive-language.
affects: >=1.0.0
breakingOnly works with ESLint 3.x through 8.x; not compatible with ESLint 9.x flat config.
fix
Ensure you are using ESLint 8 or lower, or migrate to a modern plugin.
affects: >=1.0.0
deprecatedThe 'all' rule is a meta-rule that enables all sub-rules; future updates may deprecate this pattern.
fix
Use individual rules for finer control.
affects: >=1.0.0
gotchaPlugin install must match ESLint's install scope (global vs local).
fix
Install both ESLint and eslint-plugin-woke globally together, or locally together.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'woke' declared in '.eslintrc': Cannot find module 'eslint-plugin-woke'
eslint-plugin-woke not installed or installed globally while ESLint is local (or vice versa).
fix
Ensure eslint-plugin-woke is installed in the same scope as ESLint: `npm install eslint-plugin-woke --save-dev` (or `-g` for global).
Error: Configuration for rule "woke/all" is invalid: Severity should be one of: 0, 1, 2.
Using a string like 'error' instead of numeric severity.
fix
Use numeric severity: 0 = off, 1 = warning, 2 = error.
Error: Cannot read property 'rules' of undefined
Trying to use the plugin as a Node module programmatically (require) without proper setup.
fix
Use the plugin only in ESLint configuration files; do not require() it in scripts.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies
eslintrequiredRequired ESLint version (peer dependency)
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-woke — npm install eslint-plugin-woke · libregistry