Socket
Socket
Sign inDemoInstall

@hh.ru/stylelint-config-hh

Package Overview
Dependencies
Maintainers
15
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hh.ru/stylelint-config-hh - npm Package Compare versions

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 @@

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc