Fix and apply editorconfig
This commit is contained in:
parent
b05e415acf
commit
0a5bbbf20e
11 changed files with 457 additions and 452 deletions
|
|
@ -11,5 +11,6 @@ indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
tab_width = 4
|
tab_width = 4
|
||||||
|
|
||||||
[*.{yml,yaml}]
|
[*.{yml,yaml,md}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
tab_width = 2
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ sequenceDiagram
|
||||||
```
|
```
|
||||||
┌─────────┐
|
┌─────────┐
|
||||||
│ Client │
|
│ Client │
|
||||||
└────┬────┘
|
└───┬─-───┘
|
||||||
│ 1. Detect file change
|
│ 1. Detect file change
|
||||||
│
|
│
|
||||||
├─► 2. Read file content
|
├─► 2. Read file content
|
||||||
|
|
@ -142,7 +142,7 @@ sequenceDiagram
|
||||||
▼
|
▼
|
||||||
┌─────────┐
|
┌─────────┐
|
||||||
│ Server │
|
│ Server │
|
||||||
└────┬────┘
|
└───┬────-┘
|
||||||
│ 4. Validate message
|
│ 4. Validate message
|
||||||
│
|
│
|
||||||
├─► 5. Check permissions
|
├─► 5. Check permissions
|
||||||
|
|
@ -163,7 +163,7 @@ sequenceDiagram
|
||||||
```
|
```
|
||||||
┌─────────┐
|
┌─────────┐
|
||||||
│ Server │
|
│ Server │
|
||||||
└────┬────┘
|
└───┬─-───┘
|
||||||
│ 1. File updated by another client
|
│ 1. File updated by another client
|
||||||
│
|
│
|
||||||
├─► 2. Broadcast notification
|
├─► 2. Broadcast notification
|
||||||
|
|
@ -176,7 +176,7 @@ sequenceDiagram
|
||||||
▼
|
▼
|
||||||
┌─────────┐
|
┌─────────┐
|
||||||
│ Client │
|
│ Client │
|
||||||
└────┬────┘
|
└───┬─-───┘
|
||||||
│ 3. Receive notification
|
│ 3. Receive notification
|
||||||
│
|
│
|
||||||
├─► 4. Request file download
|
├─► 4. Request file download
|
||||||
|
|
@ -189,7 +189,7 @@ sequenceDiagram
|
||||||
▼
|
▼
|
||||||
┌─────────┐
|
┌─────────┐
|
||||||
│ Server │
|
│ Server │
|
||||||
└────┬────┘
|
└───┬─=───┘
|
||||||
│ 5. Retrieve from database
|
│ 5. Retrieve from database
|
||||||
│
|
│
|
||||||
└─► 6. Send file content
|
└─► 6. Send file content
|
||||||
|
|
@ -203,7 +203,7 @@ sequenceDiagram
|
||||||
▼
|
▼
|
||||||
┌─────────┐
|
┌─────────┐
|
||||||
│ Client │
|
│ Client │
|
||||||
└────┬────┘
|
└───-─┬───┘
|
||||||
│ 7. Write to filesystem
|
│ 7. Write to filesystem
|
||||||
│
|
│
|
||||||
└─► 8. Update local metadata
|
└─► 8. Update local metadata
|
||||||
|
|
|
||||||
|
|
@ -18,5 +18,7 @@
|
||||||
"declarationMap": true,
|
"declarationMap": true,
|
||||||
"sourceMap": true
|
"sourceMap": true
|
||||||
},
|
},
|
||||||
"exclude": ["dist"]
|
"exclude": [
|
||||||
|
"dist"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Parse arguments
|
|
||||||
FIX_MODE=false
|
FIX_MODE=false
|
||||||
if [[ "$1" == "--fix" ]]; then
|
if [[ "$1" == "--fix" ]]; then
|
||||||
FIX_MODE=true
|
FIX_MODE=true
|
||||||
|
|
@ -33,12 +32,16 @@ else
|
||||||
npm ci
|
npm ci
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Checking .editorconfig compliance"
|
cd ..
|
||||||
|
|
||||||
|
# Use git ls-files to only check tracked files, respecting .gitignore
|
||||||
if [[ "$FIX_MODE" == true ]]; then
|
if [[ "$FIX_MODE" == true ]]; then
|
||||||
npx eclint fix '../**/*' '!../node_modules/**' '!../frontend/node_modules/**' '!../sync-server/target/**' '!../frontend/dist/**' '!../.git/**'
|
git ls-files | xargs npx eclint fix
|
||||||
else
|
else
|
||||||
npx eclint check '../**/*' '!../node_modules/**' '!../frontend/node_modules/**' '!../sync-server/target/**' '!../frontend/dist/**' '!../.git/**'
|
git ls-files | xargs npx eclint check
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd frontend
|
||||||
npm run build
|
npm run build
|
||||||
npm run test
|
npm run test
|
||||||
npm run lint
|
npm run lint
|
||||||
|
|
|
||||||
|
|
@ -109,4 +109,3 @@ while true; do
|
||||||
|
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue