eslint-plugin-woke
Advanced tools
Comparing version
@@ -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; |
{ | ||
"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. |
14656
0.49%297
0.34%54
1.89%