@hh.ru/stylelint-config-hh
Advanced tools
Comparing version 4.1.1 to 4.1.2
12
index.js
@@ -0,1 +1,5 @@ | ||
const HEX_REGEX = new RegExp(/#[\da-f]{3,6}/); | ||
const RGBA_REGEX = new RegExp(/rgba?\(/); | ||
const HSLA_REGEX = new RegExp(/hsla?\(/); | ||
module.exports = { | ||
@@ -109,3 +113,9 @@ "plugins": [ | ||
"declaration-property-value-disallowed-list": { | ||
"/^border/": ["/\\bnone\\b/"] | ||
"/^border/": ["/\\bnone\\b/"], | ||
"/color$/": [HEX_REGEX, RGBA_REGEX, HSLA_REGEX], | ||
"/background/": [HEX_REGEX, RGBA_REGEX, HSLA_REGEX], | ||
"/border/": [HEX_REGEX, RGBA_REGEX, HSLA_REGEX], | ||
"/box-shadow/": [HEX_REGEX, RGBA_REGEX, HSLA_REGEX], | ||
"/fill/": [HEX_REGEX, RGBA_REGEX, HSLA_REGEX], | ||
"/stroke/": [HEX_REGEX, RGBA_REGEX, HSLA_REGEX] | ||
}, | ||
@@ -112,0 +122,0 @@ |
{ | ||
"name": "@hh.ru/stylelint-config-hh", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "HH.ru config for stylelint", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,6 @@ # stylelint конфиг HH.ru | ||
### 4.1.2 | ||
- В правило `declaration-property-value-disallowed-list` добавлена проверка, запрещающая использовать цвета HEX, RGBA и HSLA напрямую | ||
### 4.1.1 | ||
@@ -7,0 +11,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
15283
309
86