From fe1f222209da59e76b0cf6466bc2e7e8ab22b3ca Mon Sep 17 00:00:00 2001 From: Sebastian Werner Date: Fri, 21 Apr 2017 15:05:06 +0200 Subject: [PATCH] Fixed wrongly constructed reg-exp name checks --- stylelint/scss.yml | 8 ++++---- stylelint/selector.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stylelint/scss.yml b/stylelint/scss.yml index 2180d2b..de0d6da 100644 --- a/stylelint/scss.yml +++ b/stylelint/scss.yml @@ -3,21 +3,21 @@ plugins: rules: # lowercase-single-dashed-names-only-0 - scss/at-function-pattern: /^[a-z0-9]+(-[a-z0-9]+)*$/ + scss/at-function-pattern: ^[a-z0-9]+(-[a-z0-9]+)*$ scss/at-import-no-partial-leading-underscore: true # TODO: coming in next stylelint-scss release # scss/at-mixin-argumentless-call-parentheses: always - scss/at-mixin-pattern: /^[a-z0-9]+(-[a-z0-9]+)*$/ + scss/at-mixin-pattern: ^[a-z0-9]+(-[a-z0-9]+)*$ scss/dollar-variable-no-missing-interpolation: true - scss/dollar-variable-pattern: /^[a-z0-9]+(-[a-z0-9]+)*$/ + scss/dollar-variable-pattern: ^[a-z0-9]+(-[a-z0-9]+)*$ scss/dollar-variable-colon-space-after: always scss/media-feature-value-dollar-variable: always - scss/percent-placeholder-pattern: /^[a-z0-9]+(-[a-z0-9]+)*$/ + scss/percent-placeholder-pattern: ^[a-z0-9]+(-[a-z0-9]+)*$ scss/selector-no-redundant-nesting-selector: true diff --git a/stylelint/selector.yml b/stylelint/selector.yml index 5601351..516eda0 100644 --- a/stylelint/selector.yml +++ b/stylelint/selector.yml @@ -27,6 +27,6 @@ rules: - true - ignore: descendant selector-class-pattern: - - "^[a-z][a-zA-Z0-9]+$" + - ^[a-z][a-zA-Z0-9]+$ - resolveNestedSelectors: true selector-no-id: true