From 840e7733412bdac1c56faf4972d8e15877fd6cb7 Mon Sep 17 00:00:00 2001 From: Cem KIRAY Date: Thu, 9 Mar 2023 14:28:11 +0100 Subject: [PATCH] chore: remove deprecated rules in stylelint 15 --- index.js | 69 -------------------------------------------------------- 1 file changed, 69 deletions(-) diff --git a/index.js b/index.js index 441da3c..5c55075 100644 --- a/index.js +++ b/index.js @@ -5,20 +5,9 @@ module.exports = { plugins: ["stylelint-order", "stylelint-scss"], rules: { - "block-closing-brace-empty-line-before": "never", - "block-closing-brace-newline-after": [ - "always", - { - ignoreAtRules: ["if", "else"], - }, - ], - "block-opening-brace-space-before": "always", - "block-closing-brace-newline-before": "always", "scss/at-import-partial-extension": null, "scss/at-import-no-partial-leading-underscore": null, "block-no-empty": true, - "block-opening-brace-newline-after": "always", - "color-hex-case": "upper", "color-hex-length": "long", "color-named": "always-where-possible", "color-no-hex": true, @@ -32,8 +21,6 @@ module.exports = { ], "comment-no-empty": true, "comment-whitespace-inside": "always", - "declaration-bang-space-after": "never", - "declaration-bang-space-before": "always", "declaration-block-no-duplicate-properties": [ true, { @@ -41,14 +28,7 @@ module.exports = { }, ], "declaration-block-no-shorthand-property-overrides": true, - "declaration-block-semicolon-newline-after": "always", - "declaration-block-semicolon-newline-before": "never-multi-line", - "declaration-block-semicolon-space-after": "always-single-line", - "declaration-block-semicolon-space-before": "never", "declaration-block-single-line-max-declarations": 1, - "declaration-block-trailing-semicolon": "always", - "declaration-colon-space-after": "always-single-line", - "declaration-colon-space-before": "never", "declaration-empty-line-before": [ "always", { @@ -61,50 +41,20 @@ module.exports = { "font-family-no-duplicate-names": true, "font-weight-notation": "numeric", "function-calc-no-unspaced-operator": true, - "function-comma-newline-after": "always-multi-line", - "function-comma-space-after": "always-single-line", - "function-comma-space-before": "never", "function-linear-gradient-no-nonstandard-direction": true, - "function-max-empty-lines": 0, "function-name-case": "lower", - "function-parentheses-newline-inside": "always-multi-line", - "function-parentheses-space-inside": "never-single-line", "function-url-no-scheme-relative": true, "function-url-quotes": "always", - "function-whitespace-after": "always", - indentation: 2, "keyframe-declaration-no-important": true, "length-zero-no-unit": true, - "max-empty-lines": 1, - "max-line-length": 140, "max-nesting-depth": 5, - "media-feature-colon-space-after": "always", - "media-feature-colon-space-before": "never", - "media-feature-name-case": "lower", "media-feature-name-no-unknown": true, "media-feature-name-no-vendor-prefix": true, - "media-feature-parentheses-space-inside": "never", - "media-feature-range-operator-space-after": "always", - "media-feature-range-operator-space-before": "always", - "media-query-list-comma-newline-after": "always-multi-line", - "media-query-list-comma-space-after": "always", - "media-query-list-comma-space-before": "never", "no-duplicate-selectors": true, "no-empty-source": true, - "no-eol-whitespace": [ - true, - { - ignore: ["empty-lines"], - }, - ], - "no-extra-semicolons": true, "no-invalid-double-slash-comments": true, - "no-missing-end-of-source-newline": true, "no-unknown-animations": true, - "number-leading-zero": "always", "number-max-precision": 3, - "number-no-trailing-zeros": true, - "property-case": "lower", "property-no-unknown": true, "property-no-vendor-prefix": [true, {}], "rule-empty-line-before": [ @@ -113,20 +63,10 @@ module.exports = { except: ["first-nested"], }, ], - "selector-attribute-brackets-space-inside": "never", - "selector-attribute-operator-space-after": "never", - "selector-attribute-operator-space-before": "never", "selector-attribute-quotes": "always", - "selector-combinator-space-after": "always", - "selector-combinator-space-before": "always", - "selector-descendant-combinator-no-non-space": true, - "selector-list-comma-newline-after": "always-multi-line", - "selector-list-comma-space-after": "always-single-line", - "selector-list-comma-space-before": "never", "selector-max-attribute": 2, "selector-max-class": 6, "selector-max-combinators": 4, - "selector-max-empty-lines": 0, "selector-max-id": 1, "selector-max-specificity": "1,3,1", "selector-max-type": 3, @@ -138,25 +78,16 @@ module.exports = { }, ], "selector-no-vendor-prefix": true, - "selector-pseudo-class-case": "lower", "selector-pseudo-class-no-unknown": true, - "selector-pseudo-class-parentheses-space-inside": "never", - "selector-pseudo-element-case": "lower", "selector-pseudo-element-colon-notation": "single", "selector-pseudo-element-no-unknown": true, "selector-type-case": "lower", "selector-type-no-unknown": true, "shorthand-property-no-redundant-values": true, "string-no-newline": true, - "string-quotes": "double", - "unit-case": "lower", "unit-no-unknown": true, "unit-allowed-list": ["px", "em", "fr", "deg", "%", "s", "ms", "vh", "vw"], "value-keyword-case": "lower", - "value-list-comma-newline-after": "always-multi-line", - "value-list-comma-space-after": "always-single-line", - "value-list-comma-space-before": "never", - "value-list-max-empty-lines": 0, "value-no-vendor-prefix": true, "scss/at-mixin-pattern": "[a-z]+(-[a-z]+)*", "scss/dollar-variable-pattern": "[a-z]+(-[a-z]+)*",