Skip to content

Commit

Permalink
Merge pull request #14 from sevor005/migration-to-stylelint-v-15
Browse files Browse the repository at this point in the history
Migration to stylelint v 15
  • Loading branch information
NetDead authored Dec 8, 2023
2 parents b939ce6 + a05d26a commit 4bd84cf
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 363 deletions.
63 changes: 2 additions & 61 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,113 +3,59 @@
"plugins": [
"stylelint-order",
"stylelint-scss",
"stylelint-stylistic",
"@funboxteam/stylelint-rules"
],
"rules": {
"at-rule-name-case": "lower",
"at-rule-name-space-after": "always",
"at-rule-no-vendor-prefix": true,
"at-rule-semicolon-newline-after": "always",
"at-rule-semicolon-space-before": "never",
"block-closing-brace-newline-after": ["always", {
"ignoreAtRules": ["if", "else"]
}],
"block-no-empty": true,
"block-opening-brace-newline-after": "always",
"block-opening-brace-space-after": "always-single-line",
"block-opening-brace-space-before": "always",
"color-hex-case": "lower",
"color-hex-length": "short",
"color-named": "never",
"color-no-invalid-hex": true,
"comment-no-empty": true,
"comment-whitespace-inside": "always",
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-redundant-longhand-properties": [true, {
"ignoreShorthands": ["/font/", "/flex/"]
}],
"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-trailing-semicolon": "always",
"declaration-colon-space-after": "always",
"declaration-colon-space-before": "never",
"declaration-no-important": true,
"font-family-name-quotes": "always-where-recommended",
"font-family-no-duplicate-names": true,
"font-weight-notation": "numeric",
"function-disallowed-list": "rgb",
"function-calc-no-unspaced-operator": true,
"function-comma-space-after": "always",
"function-comma-space-before": "never",
"function-linear-gradient-no-nonstandard-direction": true,
"function-name-case": "lower",
"function-parentheses-space-inside": "never",
"function-url-quotes": "always",
"function-whitespace-after": "always",
"indentation": 2,
"keyframe-declaration-no-important": true,
"length-zero-no-unit": true,
"max-line-length": 120,
"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-space-after": "always",
"media-query-list-comma-space-before": "never",
"no-descending-specificity": true,
"no-duplicate-selectors": true,
"no-empty-source": true,
"no-eol-whitespace": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true,
"no-missing-end-of-source-newline": true,
"no-unknown-animations": true,
"number-leading-zero": "never",
"number-no-trailing-zeros": true,
"property-case": "lower",
"property-no-unknown": true,
"property-no-vendor-prefix": true,
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-attribute-quotes": "always",
"selector-class-pattern": ["^[a-z0-9]+(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?(?:_[a-z0-9]+(?:-[a-z0-9]+)*){0,2}$", {
"resolveNestedSelectors": true
}],
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-descendant-combinator-no-non-space": true,
"selector-list-comma-space-after": "always-single-line",
"selector-list-comma-space-before": "never",
"selector-max-id": 0,
"selector-max-type": null,
"selector-max-universal": 0,
"selector-no-qualifying-type": true,
"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": "double",
"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": "single",
"unit-case": "lower",
"unit-no-unknown": true,
"value-list-comma-space-after": "always",
"value-list-comma-space-before": "never",
"value-no-vendor-prefix": true,
"order/properties-order": [
"counter-reset",
Expand Down Expand Up @@ -446,17 +392,12 @@
"except": ["first-nested"],
"ignoreAtRules": ["if", "else", "import"]
}],
"block-closing-brace-empty-line-before": "never",
"declaration-empty-line-before": ["always", {
"except": ["after-comment", "after-declaration", "first-nested"]
}],
"function-max-empty-lines": 0,
"max-empty-lines": 1,
"rule-empty-line-before": ["always", {
"except": ["first-nested"],
"ignore": ["after-comment"]
}],
"selector-max-empty-lines": 0,
"value-list-max-empty-lines": 0
}]
}
}
Loading

0 comments on commit 4bd84cf

Please sign in to comment.