Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for custom properties in no-color-keywords #1124

Merged
merged 2 commits into from
Aug 30, 2017

Conversation

DanPurdy
Copy link
Member

@DanPurdy DanPurdy commented Aug 30, 2017

Fixes #1120

Checks for custom properties when looking at color-keywords. I.e. the custom property is named --red.

<DCO 1.1 Signed-off-by: Dan Purdy [email protected]>

@DanPurdy DanPurdy self-assigned this Aug 30, 2017
@DanPurdy DanPurdy requested a review from bgriffith August 30, 2017 23:11
@@ -16,7 +16,7 @@ var cssColors = yaml.safeLoad(fs.readFileSync(path.join(__dirname, '../../data',
*/
var checkValidParentType = function (node) {
if (node) {
return node.type === 'function' || node.type === 'variable';
return node.type === 'function' || node.type === 'variable' || node.type === 'customProperty';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably use .is method

@coveralls
Copy link

coveralls commented Aug 30, 2017

Coverage Status

Coverage remained the same at 97.529% when pulling e31abb6 on feature_fix-color-keywords into 373d345 on v1-dev.

@coveralls
Copy link

coveralls commented Aug 30, 2017

Coverage Status

Coverage increased (+0.04%) to 97.573% when pulling 9ee4330 on feature_fix-color-keywords into 373d345 on v1-dev.

@DanPurdy DanPurdy merged commit 8e7c398 into v1-dev Aug 30, 2017
@DanPurdy DanPurdy deleted the feature_fix-color-keywords branch August 30, 2017 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants