Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-inclusive-language

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-inclusive-language - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

6

CHANGELOG.md

@@ -8,2 +8,8 @@ # Changelog

## [2.1.0](https://github.com/muenzpraeger/eslint-plugin-inclusive-language/compare/2.0.0...2.1.0) - 2021-02-03
- Change autofix to opt-in [muenzpraeger](https://github.com/muenzpraeger) [`PR 27`](https://github.com/muenzpraeger/eslint-plugin-inclusive-language/pull/27)
- Change string linting to opt-in [muenzpraeger](https://github.com/muenzpraeger) [`PR 28`](https://github.com/muenzpraeger/eslint-plugin-inclusive-language/pull/28)
## [2.0.0](https://github.com/muenzpraeger/eslint-plugin-inclusive-language/compare/1.2.1...2.0.0) - 2021-01-29

@@ -10,0 +16,0 @@

10

lib/rules/use-inclusive-words.js

@@ -107,3 +107,5 @@ 'use strict';

suggest,
fix: buildFixer(context, node, regex, word, suggestions[0]),
fix: ruleConfig.autofix
? buildFixer(context, node, regex, word, suggestions[0])
: undefined,
message: explanation || DEFAULT_MESSAGE

@@ -135,3 +137,3 @@ };

if (customConfig) {
ruleConfig = mergeRuleConfigs(customConfig, ruleConfig);
ruleConfig = mergeRuleConfigs(ruleConfig, customConfig);
}

@@ -141,3 +143,5 @@

Literal(node) {
validateIfInclusive(context, node, node.value);
ruleConfig.lintStrings
? validateIfInclusive(context, node, node.value)
: undefined;
},

@@ -144,0 +148,0 @@ Identifier(node) {

@@ -55,3 +55,5 @@ const fs = require('fs');

words: customConfig.words || [],
allowedTerms: allowedTerms
allowedTerms: allowedTerms,
autofix: customConfig.autofix,
lintStrings: customConfig.lintStrings
};

@@ -75,4 +77,6 @@ };

...customConfig.allowedTerms
]
],
autofix: customConfig.autofix,
lintStrings: customConfig.lintStrings
};
};
{
"name": "eslint-plugin-inclusive-language",
"version": "2.0.1",
"version": "2.1.0",
"description": "An ESLint plugin to raise awareness for using inclusive language not only in your codebase, but in life.",

@@ -13,3 +13,3 @@ "main": "lib/index.js",

"devDependencies": {
"eslint": "^7.18.0",
"eslint": "^7.19.0",
"husky": "^4.3.8",

@@ -16,0 +16,0 @@ "jest": "^26.6.3",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc