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,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/**\""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user