diff --git a/stylelint.d.ts b/lib/stylelint.d.ts similarity index 80% rename from stylelint.d.ts rename to lib/stylelint.d.ts index 0fdd7558..c78cc072 100644 --- a/stylelint.d.ts +++ b/lib/stylelint.d.ts @@ -1,7 +1,7 @@ /** * 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"; noEmptyLineBetween: boolean; properties: string | Array; diff --git a/stylelint.config.js b/stylelint.config.js index c15d10e3..758a17b8 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -2,7 +2,7 @@ import { propertyGroups } from "stylelint-config-clean-order"; -/** @type {Array} */ +/** @type {Array} */ const propertiesOrder = propertyGroups.map(properties => ({ emptyLineBefore: "never", noEmptyLineBetween: true, diff --git a/tsconfig.json b/tsconfig.json index bc57e75f..523186f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ "module": "NodeNext", "moduleDetection": "force", "moduleResolution": "NodeNext", - "noEmit": true, + "noEmit": false, "noImplicitAny": false, "noImplicitReturns": false, "noPropertyAccessFromIndexSignature": true, @@ -18,9 +18,10 @@ "noUnusedParameters": true, "strict": true, "strictFunctionTypes": true, + "strictNullChecks": true, "strictPropertyInitialization": true, "target": "ES2022" }, "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"] }