ui_migration style(fix) Add less configuration for lint
This commit is contained in:
parent
72345622e5
commit
359558f012
3 changed files with 73 additions and 1 deletions
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue