Add stylelint to avoid warning on Tailwind's @rules
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -88,3 +88,6 @@ sw.*
|
|||||||
|
|
||||||
# Vim swap files
|
# Vim swap files
|
||||||
*.swp
|
*.swp
|
||||||
|
|
||||||
|
#
|
||||||
|
.vscode
|
||||||
|
|||||||
15
package-lock.json
generated
15
package-lock.json
generated
@@ -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": {
|
"supports-color": {
|
||||||
"version": "5.5.0",
|
"version": "5.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
"babel-core": "7.0.0-bridge.0",
|
"babel-core": "7.0.0-bridge.0",
|
||||||
"babel-jest": "^26.5.0",
|
"babel-jest": "^26.5.0",
|
||||||
"jest": "^26.5.0",
|
"jest": "^26.5.0",
|
||||||
|
"stylelint-config-standard": "^20.0.0",
|
||||||
"vue-jest": "^3.0.4"
|
"vue-jest": "^3.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
stylelint.config.js
Normal file
13
stylelint.config.js
Normal 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
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user