Enforce editorconfig
This commit is contained in:
parent
5edd6430dc
commit
1ea465fcf8
2 changed files with 8 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue