diff --git a/frontend/package.json b/frontend/package.json index 96e58973..ddd9e1c3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -22,6 +22,7 @@ }, "devDependencies": { "concurrently": "^9.2.1", + "eclint": "^2.8.1", "eslint": "9.38.0", "eslint-plugin-unused-imports": "^4.1.4", "npm-check-updates": "^19.1.1", diff --git a/scripts/check.sh b/scripts/check.sh index 933bb60f..6300c592 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -32,6 +32,13 @@ if [[ "$FIX_MODE" == true ]]; then else npm ci fi + +echo "Checking .editorconfig compliance" +if [[ "$FIX_MODE" == true ]]; then + npx eclint fix '../**/*' '!../node_modules/**' '!../frontend/node_modules/**' '!../sync-server/target/**' '!../frontend/dist/**' '!../.git/**' +else + npx eclint check '../**/*' '!../node_modules/**' '!../frontend/node_modules/**' '!../sync-server/target/**' '!../frontend/dist/**' '!../.git/**' +fi npm run build npm run test npm run lint