From 1bd8ced70a22207f4f8a5a9d645b5bdf338665f6 Mon Sep 17 00:00:00 2001 From: gcch Date: Wed, 14 Aug 2024 09:39:06 +0200 Subject: [PATCH] =?UTF-8?q?corv=C3=A9e(stylelint)=20Corrige=20la=20configu?= =?UTF-8?q?ration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stylelint.d.ts => lib/stylelint.d.ts | 2 +- stylelint.config.js | 2 +- tsconfig.json | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) rename stylelint.d.ts => lib/stylelint.d.ts (80%) 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"] }