diff --git a/.gitignore b/.gitignore index e8f682b..424c27d 100644 --- a/.gitignore +++ b/.gitignore @@ -88,3 +88,6 @@ sw.* # Vim swap files *.swp + +# +.vscode diff --git a/package-lock.json b/package-lock.json index 2f794f1..36b76bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 61a8d3c..c29ebad 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/stylelint.config.js b/stylelint.config.js new file mode 100644 index 0000000..8664466 --- /dev/null +++ b/stylelint.config.js @@ -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 + } +};