Enforce editorconfig
This commit is contained in:
parent
e6bfefd2d5
commit
1ed22c72d7
2 changed files with 8 additions and 0 deletions
|
|
@ -22,6 +22,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"concurrently": "^9.2.1",
|
"concurrently": "^9.2.1",
|
||||||
|
"eclint": "^2.8.1",
|
||||||
"eslint": "9.38.0",
|
"eslint": "9.38.0",
|
||||||
"eslint-plugin-unused-imports": "^4.1.4",
|
"eslint-plugin-unused-imports": "^4.1.4",
|
||||||
"npm-check-updates": "^19.1.1",
|
"npm-check-updates": "^19.1.1",
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,13 @@ if [[ "$FIX_MODE" == true ]]; then
|
||||||
else
|
else
|
||||||
npm ci
|
npm ci
|
||||||
fi
|
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 build
|
||||||
npm run test
|
npm run test
|
||||||
npm run lint
|
npm run lint
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue