ui_migration style(fix) Add less configuration for lint

This commit is contained in:
Antonio Anaya 2026-05-07 04:41:02 -06:00
parent 72345622e5
commit 359558f012
3 changed files with 73 additions and 1 deletions

View file

@ -1,15 +1,22 @@
// stylelint.config.mjs
export default {
// This applies standard CSS rules to the whole project by default
extends: ["stylelint-config-standard"],
overrides: [
{
files: ["**/*.vue"],
customSyntax: "postcss-html",
// If you write <style lang="less"> inside Vue components and get
// the same error there, uncomment the rule below:
// rules: { "declaration-property-value-no-unknown": null }
},
{
files: ["**/*.less"],
customSyntax: "postcss-less",
// THIS IS THE FIX: Tell Stylelint to apply LESS-specific
// rules (which ignore @ variables) only to these files.
extends: ["stylelint-config-standard-less"],
},
],
@ -20,4 +27,4 @@ export default {
"no-invalid-position-at-import-rule": null,
"no-empty-source": null,
},
};
};