corvée(stylelint) Corrige la configuration
This commit is contained in:
parent
692407c1f7
commit
1bd8ced70a
3 changed files with 5 additions and 4 deletions
2
stylelint.d.ts → lib/stylelint.d.ts
vendored
2
stylelint.d.ts → lib/stylelint.d.ts
vendored
|
|
@ -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>;
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue