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 26b81ab commit e1e5da7Copy full SHA for e1e5da7
eslint-rules/lib/rules/no-hard-coded-color.js
@@ -32,8 +32,8 @@ module.exports = {
32
message: `Found '${colorString}'. Use UILib colors instead of hardcoded colors.${dueDateNotice}`,
33
fix(fixer) {
34
if (node) {
35
- const {validColors} = context.options[0];
36
- const {customColors: extraColors} = context.options[0];
+ const validColors = context.options[0] && context.options[0].validColors;
+ const extraColors = context.options[0] && context.options[0].customColors;
37
if (validColors) {
38
const validColorsDic = _.chain(validColors)
39
.mapValues(value => value.toLowerCase())
0 commit comments