ESLint 9 flat config, Prettier, Stylelint, husky-хуки, lint-staged и nx-таргеты проверок в корневом project.json.
38 lines
1.0 KiB
JSON
38 lines
1.0 KiB
JSON
{
|
|
"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/**\""
|
|
}
|
|
}
|
|
}
|
|
}
|