mirror of
https://github.com/rommapp/romm.git
synced 2025-12-22 10:27:13 +00:00
Add support for formatting vuejs with trunk
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@@ -18,12 +18,13 @@ coverage
|
||||
/cypress/screenshots/
|
||||
|
||||
# Editor directories and files
|
||||
.vscode
|
||||
.zed
|
||||
pyrightconfig.json
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
.zed/*
|
||||
!.zed/settings.json
|
||||
pyrightconfig.json
|
||||
.idea
|
||||
*.suo
|
||||
*.ntvs*
|
||||
|
||||
@@ -44,12 +44,31 @@ lint:
|
||||
- frontend/src/__generated__/**
|
||||
- docker/Dockerfile
|
||||
- docker/nginx/js/**
|
||||
files:
|
||||
- name: vue
|
||||
extensions: [vue]
|
||||
definitions:
|
||||
- name: eslint
|
||||
files: [typescript, javascript]
|
||||
files:
|
||||
- javascript
|
||||
- typescript
|
||||
commands:
|
||||
- name: lint
|
||||
run_from: ${root_or_parent_with_any_config}
|
||||
- name: prettier
|
||||
files:
|
||||
- typescript
|
||||
- yaml
|
||||
- css
|
||||
- postcss
|
||||
- sass
|
||||
- html
|
||||
- markdown
|
||||
- json
|
||||
- javascript
|
||||
- graphql
|
||||
- vue
|
||||
- prettier_supported_configs
|
||||
actions:
|
||||
disabled:
|
||||
- trunk-check-pre-push
|
||||
|
||||
16
.zed/settings.json
Normal file
16
.zed/settings.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"languages": {
|
||||
"Python": {
|
||||
"tab_size": 4
|
||||
},
|
||||
"Vue.js": {
|
||||
"tab_size": 2,
|
||||
"formatter": {
|
||||
"external": {
|
||||
"command": "prettier",
|
||||
"arguments": ["--stdin-filepath", "{buffer_path}"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user