We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f496bf commit f0ba77dCopy full SHA for f0ba77d
eslint-rules/lib/rules/no-hard-coded-color.js
@@ -79,6 +79,10 @@ module.exports = {
79
const colorExceptions = ['transparent'];
80
81
function isColorException(colorString = '') {
82
+ if (colorString === null) {
83
+ return true;
84
+ }
85
+
86
const lowerCaseColorString = colorString.toLowerCase();
87
return colorExceptions.indexOf(lowerCaseColorString) !== -1;
88
}
eslint-rules/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "eslint-plugin-uilib",
3
- "version": "2.1.4",
+ "version": "2.1.5",
4
"description": "uilib set of eslint rules",
5
"keywords": [
6
"eslint",
0 commit comments