2024-08-05
This commit is contained in:
parent
8e75a421d2
commit
68b42420a3
1004 changed files with 367652 additions and 42 deletions
35
stylelint.config.js
Normal file
35
stylelint.config.js
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
// @ts-check
|
||||
|
||||
import { propertyGroups } from "stylelint-config-clean-order";
|
||||
|
||||
// TODO: Typer tout ça
|
||||
const propertiesOrder = propertyGroups.map(properties => ({
|
||||
emptyLineBefore: "never",
|
||||
noEmptyLineBetween: true,
|
||||
properties,
|
||||
}));
|
||||
|
||||
/** @type {import("stylelint").Config} */
|
||||
export default {
|
||||
extends: ["stylelint-config-standard-scss", "stylelint-config-sass-guidelines", "stylelint-config-clean-order"],
|
||||
plugins: ["stylelint-declaration-block-no-ignored-properties"],
|
||||
rules: {
|
||||
"@stylistic/selector-list-comma-newline-after": null,
|
||||
"@stylistic/string-quotes": null,
|
||||
"custom-property-pattern": null,
|
||||
"declaration-block-no-duplicate-custom-properties": true,
|
||||
"declaration-block-no-duplicate-properties": true,
|
||||
"declaration-block-no-redundant-longhand-properties": true,
|
||||
"declaration-block-no-shorthand-property-overrides": true,
|
||||
"max-nesting-depth": null,
|
||||
"no-descending-specificity": null,
|
||||
"no-duplicate-selectors": [true, { disallowInList: false }],
|
||||
"order/properties-order": [propertiesOrder, { severity: "error", unspecified: "bottomAlphabetical" }],
|
||||
"plugin/declaration-block-no-ignored-properties": true,
|
||||
"selector-class-pattern": null,
|
||||
"selector-id-pattern": null,
|
||||
"selector-max-id": null,
|
||||
"selector-no-qualifying-type": null,
|
||||
"selector-max-compound-selectors": null,
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue