zhb 7 månader sedan
förälder
incheckning
f65cbb81ce
2 ändrade filer med 24 tillägg och 2 borttagningar
  1. 2 2
      package.json
  2. 22 0
      stylelint.config.cjs

+ 2 - 2
package.json

@@ -16,7 +16,7 @@
     "lint": "eslint .",
     "lint:fix": "eslint . --fix",
     "lint:ts": "vue-tsc --noEmit",
-    "lint:css": "stylelint '**/*.{css,scss}' --fix"
+    "lint:css": "stylelint 'src/**/*.{css,scss}' --fix"
   },
   "dependencies": {
     "@lincy/utils": "^0.6.2",
@@ -93,6 +93,6 @@
     "*.{[jt]s?(x),vue,md}": [
       "eslint --fix"
     ],
-    "*.{css,scss}": "stylelint --fix --allow-empty-input"
+    "src/**/*.{css,scss}": "stylelint --fix --allow-empty-input"
   }
 }

+ 22 - 0
stylelint.config.cjs

@@ -0,0 +1,22 @@
+module.exports = {
+    extends: ['@lincy/stylelint-config'],
+    overrides: [
+        {
+            files: ['**/*.scss'],
+            customSyntax: 'postcss-scss',
+        },
+    ],
+    ignoreFiles: ['dist/**', 'public/**', 'node_modules/**'],
+    rules: {
+        'at-rule-no-unknown': [
+            true,
+            {
+                ignoreAtRules: ['tailwind', 'apply', 'variants', 'responsive', 'screen', 'use'],
+            },
+        ],
+        'no-duplicate-selectors': null,
+        'color-function-notation': null,
+        'font-family-no-missing-generic-family-keyword': null,
+        'keyframes-name-pattern': null,
+    },
+}