Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vkontakte/stylelint-config

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vkontakte/stylelint-config - npm Package Compare versions

Comparing version 4.0.0-beta.1 to 4.0.0-beta.2

90

index.js
module.exports = {
plugins: [
'stylelint-declaration-strict-value',
'./dist/stylelint-selector-bem-pattern',
'./dist/stylelint-vkui',
'./dist/stylelint-logical-shorthands',
],
plugins: ["stylelint-declaration-strict-value", "./dist/stylelint-selector-bem-pattern", "./dist/stylelint-vkui", "./dist/stylelint-logical-shorthands"],
rules: {
'max-nesting-depth': [0, { ignoreAtRules: ['supports'] }],
'indentation': 2,
'string-quotes': 'single',
'selector-max-id': 0,
'selector-max-type': 0,
'selector-max-universal': 0,
'selector-list-comma-newline-after': 'always',
'selector-pseudo-element-colon-notation': 'double',
'rule-empty-line-before': [
'always',
{ ignore: ['after-comment', 'first-nested'] },
],
'comment-empty-line-before': [
'always',
{ ignore: ['stylelint-commands'], except: ['first-nested'] },
],
'block-opening-brace-space-before': 'always',
'declaration-colon-space-after': 'always',
'declaration-colon-space-before': 'never',
'declaration-block-single-line-max-declarations': 1,
'declaration-property-value-disallowed-list': {
'/^border/': ['none'],
'/^(@|--).+/': ['/^#/', '/^rgb/'],
"max-nesting-depth": [0, { ignoreAtRules: ["supports"] }],
indentation: 2,
"selector-max-id": 0,
"selector-max-type": 0,
"selector-max-universal": 0,
"selector-pseudo-element-colon-notation": "double",
"rule-empty-line-before": ["always", { ignore: ["after-comment", "first-nested"] }],
"comment-empty-line-before": ["always", { ignore: ["stylelint-commands"], except: ["first-nested"] }],
"declaration-block-single-line-max-declarations": 1,
"declaration-property-value-disallowed-list": {
"/^border/": ["none"],
"/^(@|--).+/": ["/^#/", "/^rgb/"],
},
'declaration-block-no-shorthand-property-overrides': true,
'at-rule-empty-line-before': [
'always',
{ ignore: ['after-comment'], except: ['first-nested', 'after-same-name'] },
"declaration-block-no-shorthand-property-overrides": true,
"at-rule-empty-line-before": ["always", { ignore: ["after-comment"], except: ["first-nested", "after-same-name"] }],
"declaration-no-important": true,
"no-duplicate-selectors": true,
"color-named": "never",
"function-url-scheme-disallowed-list": ["/^data:/"],
"length-zero-no-unit": [
true,
{
ignore: ["custom-properties"],
},
],
'max-empty-lines': 1,
'declaration-no-important': true,
'no-duplicate-selectors': true,
'color-named': 'never',
'function-url-scheme-disallowed-list': ['/^data:/'],
'length-zero-no-unit': [true, {
ignore: ['custom-properties'],
}],
'property-disallowed-list': [/^\./, 'letter-spacing'],
'selector-pseudo-class-disallowed-list': ['root'],
'declaration-block-semicolon-newline-after': 'always',
'no-extra-semicolons': true,
'declaration-block-trailing-semicolon': 'always',
'block-opening-brace-newline-after': 'always',
'block-closing-brace-newline-before': 'always',
'function-linear-gradient-no-nonstandard-direction': true,
'plugin/selector-bem-pattern': {
'componentName': '^[A-Z][a-zA-Z0-9]+$',
'componentSelectors': '^\\.{componentName}(?:__[a-z][a-zA-Z0-9]*)?(?:--[a-z][a-zA-Z0-9]*)?$',
'implicitComponents': true,
'ignoreCustomProperties': /.*/,
"property-disallowed-list": [/^\./, "letter-spacing"],
"selector-pseudo-class-disallowed-list": ["root"],
"function-linear-gradient-no-nonstandard-direction": true,
"plugin/selector-bem-pattern": {
componentName: "^[A-Z][a-zA-Z0-9]+$",
componentSelectors: "^\\.{componentName}(?:__[a-z][a-zA-Z0-9]*)?(?:--[a-z][a-zA-Z0-9]*)?$",
implicitComponents: true,
ignoreCustomProperties: /.*/,
},
'plugin/vkui': true,
'plugin/logical-shorthands': null,
"plugin/vkui": true,
"plugin/logical-shorthands": null,
},
};
{
"name": "@vkontakte/stylelint-config",
"version": "4.0.0-beta.1",
"version": "4.0.0-beta.2",
"description": "stylelint config from VK",

@@ -5,0 +5,0 @@ "main": "index.js",

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