📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

eslint-plugin-woke

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-woke - npm Package Compare versions

Comparing version

to
0.1.0

5

lib/index.js

@@ -17,3 +17,2 @@ /**

//------------------------------------------------------------------------------
console.log('LOADED WOKE!');
const categories = requireIndex(__dirname + "/categories");

@@ -73,3 +72,5 @@ const categoryList = Object.keys(categories);

return {
'VariableDeclarator > Identifier': function (node) {
Identifier: function (node) {
if (node.parent.type === 'CallExpression') return;
if (node.parent.type === 'MemberExpression') return;
const wordMatch = splitWords(node.name).find(word => wordMap.hasOwnProperty(word));

@@ -76,0 +77,0 @@ if (wordMatch == null) return;

2

package.json
{
"name": "eslint-plugin-woke",
"version": "0.0.2",
"version": "0.1.0",
"description": "ESLint plugin to make your code more woke.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -50,4 +50,5 @@ # eslint-plugin-woke

* gender
* LGBTQ
## Contributions Welcome
While this plugin attemts to call attention to as many offensive terms as possible, the work of inclusivity is never complete. Please help to expand the categories and offensive words list so that we can all benefit from our collective lived experiences.