Commit 54b19ad1 authored by Vitaly Slobodin's avatar Vitaly Slobodin Committed by Natalia Tepluhina

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
parent 56a6b2b5
......@@ -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,
......
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment