summaryrefslogtreecommitdiff
path: root/.stylelintrc
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-16 18:18:33 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-16 18:18:33 +0000
commitf64a639bcfa1fc2bc89ca7db268f594306edfd7c (patch)
treea2c3c2ebcc3b45e596949db485d6ed18ffaacfa1 /.stylelintrc
parentbfbc3e0d6583ea1a91f627528bedc3d65ba4b10f (diff)
downloadgitlab-ce-f64a639bcfa1fc2bc89ca7db268f594306edfd7c.tar.gz
Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40
Diffstat (limited to '.stylelintrc')
-rw-r--r--.stylelintrc99
1 files changed, 6 insertions, 93 deletions
diff --git a/.stylelintrc b/.stylelintrc
index b9174d1dca1..13ec6ea340b 100644
--- a/.stylelintrc
+++ b/.stylelintrc
@@ -1,59 +1,19 @@
{
+ "extends": ["@gitlab/stylelint-config"],
"ignoreFiles": [
"app/assets/stylesheets/pages/emojis.scss",
"app/assets/stylesheets/startup/startup-*.scss",
"app/assets/stylesheets/lazy_bundles/select2.scss",
- "app/assets/stylesheets/highlight/themes/*.scss"
+ "app/assets/stylesheets/highlight/themes/*.scss",
+ "app/assets/stylesheets/lazy_bundles/cropper.css"
],
"plugins":[
"./scripts/frontend/stylelint/stylelint-duplicate-selectors.js",
"./scripts/frontend/stylelint/stylelint-utility-classes.js",
- "stylelint-scss"
],
"rules":{
- "at-rule-blacklist":[
- "debug"
- ],
- "at-rule-no-unknown":null,
- "at-rule-no-vendor-prefix":true,
- "block-no-empty":true,
- "block-opening-brace-space-before":"always",
- "color-hex-case":"lower",
- "color-hex-length":"short",
- "color-named":"never",
- "color-no-invalid-hex":true,
- "declaration-bang-space-after":"never",
- "declaration-bang-space-before":"always",
- "declaration-block-semicolon-newline-after":"always",
- "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-property-value-blacklist":{
- "border":[
- "none"
- ],
- "border-top":[
- "none"
- ],
- "border-right":[
- "none"
- ],
- "border-bottom":[
- "none"
- ],
- "border-left":[
- "none"
- ]
- },
- "function-comma-space-after":"always-single-line",
- "function-parentheses-space-inside":"never",
- "function-url-quotes":"always",
- "indentation":2,
- "length-zero-no-unit":true,
- "max-nesting-depth":[
- 6,
+ "max-nesting-depth": [
+ 3,
{
"ignoreAtRules":[
"each",
@@ -64,54 +24,7 @@
"severity":"warning"
}
],
- "media-feature-name-no-vendor-prefix":true,
- "media-feature-parentheses-space-inside":"never",
- "no-missing-end-of-source-newline":true,
- "number-leading-zero":"always",
- "number-no-trailing-zeros":true,
- "property-no-unknown":true,
- "property-no-vendor-prefix": [true, { "ignoreProperties": ["user-select"] }],
- "rule-empty-line-before":[
- "always-multi-line",
- {
- "except":[
- "first-nested"
- ],
- "ignore":[
- "after-comment"
- ]
- }
- ],
- "scss/at-extend-no-missing-placeholder":[true,{ "severity": "warning" }],
- "scss/at-function-pattern":"^[a-z]+([a-z0-9-]+[a-z0-9]+)?$",
- "scss/at-import-no-partial-leading-underscore":true,
- "scss/at-import-partial-extension-blacklist":[
- "scss"
- ],
- "scss/at-mixin-pattern":"^[a-z]+([a-z0-9-]+[a-z0-9]+)?$",
- "scss/at-rule-no-unknown":true,
- "scss/dollar-variable-colon-space-after":"always",
- "scss/dollar-variable-colon-space-before":"never",
- "scss/dollar-variable-pattern":"^[_]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$",
- "scss/percent-placeholder-pattern":"^[a-z]+([a-z0-9-]+[a-z0-9]+)?$",
- "scss/selector-no-redundant-nesting-selector":true,
- "selector-class-pattern":[
- "^[a-z0-9\\-]+$",
- {
- "message":"Selector should be written in lowercase with hyphens (selector-class-pattern)",
- "severity": "warning"
- }
- ],
- "selector-list-comma-newline-after":"always",
- "selector-max-compound-selectors":[6, { "severity": "warning" }],
- "selector-max-id":1,
- "selector-no-vendor-prefix":true,
- "selector-pseudo-element-colon-notation":"double",
- "selector-pseudo-element-no-unknown":true,
- "shorthand-property-no-redundant-values":true,
- "string-quotes":"single",
- "value-no-vendor-prefix": [true, { "ignoreValues": ["sticky"] }],
- "stylelint-gitlab/duplicate-selectors":[true,{ "severity": "warning" }],
+ "selector-max-compound-selectors":[3, { "severity": "warning" }],
"stylelint-gitlab/utility-classes":[true,{ "severity": "warning" }],
"declaration-block-no-duplicate-properties": [
true,