chore: настройка линтинга, форматирования и проверок
ESLint 9 flat config, Prettier, Stylelint, husky-хуки, lint-staged и nx-таргеты проверок в корневом project.json.
This commit is contained in:
1 parent
8c368cd68f
commit
efba11d83f
7 files changed
+266
-2
No files matched your search
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"extends": [
|
||||
"stylelint-config-standard",
|
||||
"stylelint-config-recess-order",
|
||||
"stylelint-config-standard-scss",
|
||||
"stylelint-prettier/recommended",
|
||||
"stylelint-config-prettier-scss"
|
||||
],
|
||||
"plugins": [
|
||||
"stylelint-order",
|
||||
"stylelint-scss"
|
||||
],
|
||||
"rules": {
|
||||
"scss/at-rule-no-unknown": [
|
||||
true,
|
||||
{
|
||||
"ignoreAtRules": [
|
||||
"tailwind",
|
||||
"apply",
|
||||
"layer",
|
||||
"screen",
|
||||
"responsive",
|
||||
"variants",
|
||||
"config",
|
||||
"source",
|
||||
"theme",
|
||||
"utility",
|
||||
"custom-variant",
|
||||
"plugin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"selector-pseudo-class-no-unknown": [
|
||||
true,
|
||||
{
|
||||
"ignorePseudoClasses": [
|
||||
"global"
|
||||
]
|
||||
}
|
||||
],
|
||||
"max-nesting-depth": [
|
||||
3,
|
||||
{
|
||||
"ignore": [
|
||||
"blockless-at-rules",
|
||||
"pseudo-classes"
|
||||
]
|
||||
}
|
||||
],
|
||||
"selector-class-pattern": null,
|
||||
"scss/dollar-variable-pattern": null,
|
||||
"custom-property-pattern": null,
|
||||
"selector-id-pattern": null,
|
||||
"no-descending-specificity": null,
|
||||
"order/order": [
|
||||
"custom-properties",
|
||||
"declarations",
|
||||
{
|
||||
"type": "at-rule",
|
||||
"name": "media"
|
||||
},
|
||||
{
|
||||
"type": "rule",
|
||||
"selector": "^&::(before|after)"
|
||||
},
|
||||
{
|
||||
"type": "rule",
|
||||
"selector": "^&:\\w"
|
||||
},
|
||||
{
|
||||
"type": "rule",
|
||||
"selector": "^&_"
|
||||
},
|
||||
{
|
||||
"type": "rule",
|
||||
"selector": "^."
|
||||
}
|
||||
],
|
||||
"color-hex-length": null
|
||||
},
|
||||
"ignoreFiles": [
|
||||
"coverage/**/*",
|
||||
"apps/*/dist/**/*",
|
||||
"dist/**/*"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user