Add stylelint to avoid warning on Tailwind's @rules

This commit is contained in:
2020-10-28 18:11:54 +01:00
parent b3bcedbc44
commit 0f7ef825e3
4 changed files with 32 additions and 0 deletions

3
.gitignore vendored
View File

@@ -88,3 +88,6 @@ sw.*
# Vim swap files
*.swp
#
.vscode

15
package-lock.json generated
View File

@@ -13519,6 +13519,21 @@
}
}
},
"stylelint-config-recommended": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-3.0.0.tgz",
"integrity": "sha512-F6yTRuc06xr1h5Qw/ykb2LuFynJ2IxkKfCMf+1xqPffkxh0S09Zc902XCffcsw/XMFq/OzQ1w54fLIDtmRNHnQ==",
"dev": true
},
"stylelint-config-standard": {
"version": "20.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-20.0.0.tgz",
"integrity": "sha512-IB2iFdzOTA/zS4jSVav6z+wGtin08qfj+YyExHB3LF9lnouQht//YyB0KZq9gGz5HNPkddHOzcY8HsUey6ZUlA==",
"dev": true,
"requires": {
"stylelint-config-recommended": "^3.0.0"
}
},
"supports-color": {
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",

View File

@@ -20,6 +20,7 @@
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^26.5.0",
"jest": "^26.5.0",
"stylelint-config-standard": "^20.0.0",
"vue-jest": "^3.0.4"
}
}

13
stylelint.config.js Normal file
View File

@@ -0,0 +1,13 @@
module.exports = {
extends: ["stylelint-config-recommended"],
rules: {
"at-rule-no-unknown": [
true,
{
ignoreAtRules: ["tailwind", "apply", "variants", "responsive", "screen"]
}
],
"declaration-block-trailing-semicolon": null,
"no-descending-specificity": null
}
};