chore: настройка линтинга, форматирования и проверок

ESLint 9 flat config, Prettier, Stylelint, husky-хуки, lint-staged и nx-таргеты проверок
в корневом project.json.
This commit is contained in:
arswarog committed 2026-10-26 20:31:02 +03:00
1 parent 8c368cd68f
commit efba11d83f
7 files changed
+266 -2

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
{
"name": "geo-platform",
"$schema": "./node_modules/nx/schemas/project-schema.json",
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"tools/**/*.{ts,js}",
"*.{ts,mjs}"
],
"fix": true
}
},
"lint-check": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"tools/**/*.{ts,js}",
"*.{ts,mjs}"
]
}
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "prettier --write . \"!apps/**\" \"!packages/**\""
}
},
"format-check": {
"executor": "nx:run-commands",
"options": {
"command": "prettier --check . \"!apps/**\" \"!packages/**\""
}
}
}
}