trydofor / professional-razor

Use front-end tech (Vue/Css/Ts) to build multi-platform from one codebase, suitable for small team and app to write logic once, run anywhere.
Apache License 2.0
1 stars 0 forks source link

lint and conf of vscode #4

Closed trydofor closed 1 month ago

trydofor commented 7 months ago
trydofor commented 7 months ago
## .vscode and editor

cat > .editorconfig << "EOF"
root = true

[*]
charset = utf-8-bom
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
EOF

mkdir .vscode
cat > .vscode/settings.json << EOF 
{
    "files.encoding": "utf8bom",
    "files.autoGuessEncoding": true
}
EOF

mv packages/front-desktop/.vscode/extensions.json .vscode
rm -rf packages/front-desktop/.vscode
rm -rf packages/front-mobile/.vscode
trydofor commented 7 months ago
cat > .gitignore << "EOF"
## temp
*~
*.sw[mnpcod]
.tmp
*.tmp
*.tmp.*
*.sublime-project
*.sublime-workspace
.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate
$RECYCLE.BIN/

## log
*.log
log.txt
npm-debug.log*
logs/

## project
.idea/
.ionic/
.sass-cache/
.sourcemaps/
.versions/
coverage/
node_modules/
dist/
platforms/
plugins/
EOF

rm -rf packages/front-desktop/.gitignore 
rm -rf packages/front-mobile/.gitignore

find packages -name .gitignore
##> packages/front-mobile/ios/.gitignore
##> packages/front-mobile/android/app/.gitignore
##> packages/front-mobile/android/.gitignore
##> packages/front-desktop/electron/.gitignore

git add --all && git commit -am '3.1 .vscode, .gitignore #3'
trydofor commented 7 months ago
trydofor commented 2 months ago

nuxt eslint at top project

trydofor commented 2 months ago

https://github.com/nuxt/eslint/discussions/420

trydofor commented 2 months ago

layer the flat eslint config to each multi-repo