eslint-plugin-inclusive-language
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -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 @@ |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18866
258