corvée(stylelint) Corrige la configuration

This commit is contained in:
gcch 2024-08-14 09:39:06 +02:00
commit 1bd8ced70a
3 changed files with 5 additions and 4 deletions

View file

@ -1,7 +1,7 @@
/** /**
* Définition d'un groupe de Propriétés _CSS_ du plugin `stylelint-config-clean-order` pour _Stylelint_. * Définition d'un groupe de Propriétés _CSS_ du plugin `stylelint-config-clean-order` pour _Stylelint_.
*/ */
type StylelintConfigCleanOrderPropertyGroup = { export type StylelintConfigCleanOrderPropertyGroup = {
emptyLineBefore: "never" | "threshold"; emptyLineBefore: "never" | "threshold";
noEmptyLineBetween: boolean; noEmptyLineBetween: boolean;
properties: string | Array<string>; properties: string | Array<string>;

View file

@ -2,7 +2,7 @@
import { propertyGroups } from "stylelint-config-clean-order"; import { propertyGroups } from "stylelint-config-clean-order";
/** @type {Array<StylelintConfigCleanOrderPropertyGroup>} */ /** @type {Array<import("./lib/stylelint.js").StylelintConfigCleanOrderPropertyGroup>} */
const propertiesOrder = propertyGroups.map(properties => ({ const propertiesOrder = propertyGroups.map(properties => ({
emptyLineBefore: "never", emptyLineBefore: "never",
noEmptyLineBetween: true, noEmptyLineBetween: true,

View file

@ -10,7 +10,7 @@
"module": "NodeNext", "module": "NodeNext",
"moduleDetection": "force", "moduleDetection": "force",
"moduleResolution": "NodeNext", "moduleResolution": "NodeNext",
"noEmit": true, "noEmit": false,
"noImplicitAny": false, "noImplicitAny": false,
"noImplicitReturns": false, "noImplicitReturns": false,
"noPropertyAccessFromIndexSignature": true, "noPropertyAccessFromIndexSignature": true,
@ -18,9 +18,10 @@
"noUnusedParameters": true, "noUnusedParameters": true,
"strict": true, "strict": true,
"strictFunctionTypes": true, "strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true, "strictPropertyInitialization": true,
"target": "ES2022" "target": "ES2022"
}, },
"exclude": ["vendor", "web/app/plugins", "web/wp"], "exclude": ["vendor", "web/app/plugins", "web/wp"],
"include": ["web/app/themes/haiku-atelier-2024/src"] "include": ["*.js", "lib", "web/app/themes/haiku-atelier-2024/src"]
} }