From 54b19ad11b7d05543a621c73516a32af748a61aa Mon Sep 17 00:00:00 2001 From: Vitaly Slobodin <vslobodin@gitlab.com> Date: Mon, 15 Mar 2021 10:01:15 +0000 Subject: [PATCH] Remove the cache option for stylelint Surprisingly stylelint does not support reporting of already found violations with enabled caching. The caching option works for changed files only. See https://github.com/stylelint/stylelint/issues/4314 --- .stylelintrc | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.stylelintrc b/.stylelintrc index 22152dec26757..13ec6ea340b34 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -13,7 +13,7 @@ ], "rules":{ "max-nesting-depth": [ - 5, + 3, { "ignoreAtRules":[ "each", @@ -24,7 +24,7 @@ "severity":"warning" } ], - "selector-max-compound-selectors":[6, { "severity": "warning" }], + "selector-max-compound-selectors":[3, { "severity": "warning" }], "stylelint-gitlab/utility-classes":[true,{ "severity": "warning" }], "declaration-block-no-duplicate-properties": [ true, diff --git a/package.json b/package.json index 56b54b74047c3..013340023c43e 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "lint:prettier:fix": "yarn run prettier --write '**/*.{graphql,js,vue}'", "lint:prettier:staged": "scripts/frontend/execute-on-staged-files.sh prettier '(graphql|js|vue)' --check", "lint:prettier:staged:fix": "scripts/frontend/execute-on-staged-files.sh prettier '(graphql|js|vue)' --write", - "lint:stylelint": "stylelint --cache -q '{ee/,}app/assets/stylesheets/**/*.{css,scss}'", + "lint:stylelint": "stylelint -q '{ee/,}app/assets/stylesheets/**/*.{css,scss}'", "lint:stylelint:fix": "yarn run lint:stylelint --fix", "lint:stylelint:staged": "scripts/frontend/execute-on-staged-files.sh stylelint '(css|scss)' -q", "lint:stylelint:staged:fix": "yarn run lint:stylelint:staged --fix", -- GitLab