Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2019-02-14 16:40:42 +0300
committerTim Zallmann <tzallmann@gitlab.com>2019-02-14 16:40:50 +0300
commit0b53566111daa07e56fc5b519acc14c9a02f6209 (patch)
treef7a2c0f234b64650d5870846cbd67beeb67eecb8 /.stylelintrc
parented7144ad58c32936c902d93da23eeb2159ee0158 (diff)
Added Stylelint Setup
Added stylelint to static-analysis Updated yarn dependencies CSS Fixes and rule adoptions of stylelint Added stylelint-scss Deduplicated yarn.lock to clear dependencies
Diffstat (limited to '.stylelintrc')
-rw-r--r--.stylelintrc30
1 files changed, 30 insertions, 0 deletions
diff --git a/.stylelintrc b/.stylelintrc
new file mode 100644
index 00000000000..69de9a5dd13
--- /dev/null
+++ b/.stylelintrc
@@ -0,0 +1,30 @@
+{
+ "extends": "stylelint-config-recommended",
+ "plugins": [
+ "stylelint-scss"
+ ],
+ "rules": {
+ "no-descending-specificity": null,
+ "font-family-no-missing-generic-family-keyword": null,
+ "at-rule-no-unknown": [ true, {
+ ignoreAtRules: ["include", "each", "mixin", "extend", "if", "function", "for", "else", "return"]
+ }],
+ "selector-type-no-unknown": [true, {
+ "ignoreTypes": ["gl-emoji"]
+ }],
+ "unit-no-unknown" : [true, {
+ "ignoreFunctions": ["-webkit-image-set"]
+ }],
+ "scss/at-extend-no-missing-placeholder": null,
+ "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,
+ }
+}