{"id":19985,"library":"eslint-plugin-woke","title":"eslint-plugin-woke","description":"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.","status":"maintenance","version":"1.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/amwmedia/eslint-plugin-woke","tags":["javascript","eslint","eslintplugin","eslint-plugin","trigger-warnings","triggering","woke"],"install":[{"cmd":"npm install eslint-plugin-woke","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-woke","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-woke","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required ESLint version (peer dependency)","package":"eslint","optional":false}],"imports":[{"note":"The plugin is intended for configuration files (.eslintrc), not programmatic use. Importing as a module is unnecessary and not documented.","wrong":"const woke = require('eslint-plugin-woke')","symbol":"default import","correct":"module.exports = { plugins: ['woke'] }"},{"note":"Rule names use a slash separator (woke/ruleName), not a hyphen.","wrong":"\"woke-all\": 2","symbol":"rule reference","correct":"\"woke/all\": 2"},{"note":"Rules must be prefixed with 'woke/' to work.","wrong":"\"racism\": 2","symbol":"individual rule","correct":"\"woke/racism\": 2"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"plugins\": [\"woke\"],\n  \"rules\": {\n    \"woke/all\": 2\n  }\n}\n\n// With npm scripts:\n// npm install eslint eslint-plugin-woke --save-dev\n// npx eslint .","lang":"javascript","description":"Shows installation and minimal ESLint config to enable all woke rules using the plugin."},"warnings":[{"fix":"Consider using a more actively maintained alternative like eslint-plugin-inclusive-language.","message":"The plugin has not been updated since 2020; codebase may not reflect current inclusive language best practices.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Ensure you are using ESLint 8 or lower, or migrate to a modern plugin.","message":"Only works with ESLint 3.x through 8.x; not compatible with ESLint 9.x flat config.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Use individual rules for finer control.","message":"The 'all' rule is a meta-rule that enables all sub-rules; future updates may deprecate this pattern.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Install both ESLint and eslint-plugin-woke globally together, or locally together.","message":"Plugin install must match ESLint's install scope (global vs local).","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Ensure eslint-plugin-woke is installed in the same scope as ESLint: `npm install eslint-plugin-woke --save-dev` (or `-g` for global).","cause":"eslint-plugin-woke not installed or installed globally while ESLint is local (or vice versa).","error":"Error: Failed to load plugin 'woke' declared in '.eslintrc': Cannot find module 'eslint-plugin-woke'"},{"fix":"Use numeric severity: 0 = off, 1 = warning, 2 = error.","cause":"Using a string like 'error' instead of numeric severity.","error":"Error: Configuration for rule \"woke/all\" is invalid: Severity should be one of: 0, 1, 2."},{"fix":"Use the plugin only in ESLint configuration files; do not require() it in scripts.","cause":"Trying to use the plugin as a Node module programmatically (require) without proper setup.","error":"Error: Cannot read property 'rules' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}