chore(front/package): add fmt scripts and pre-commit prettier boundaries
This commit is contained in:
parent
b20bfe3ac2
commit
c1d33132e7
|
@ -16,10 +16,12 @@
|
|||
"test": "vitest run",
|
||||
"test:unit": "vitest run --coverage",
|
||||
"test:generate-mock-server": "msw-auto-mock ../docs/schema.yml -o test/msw-server.ts --node",
|
||||
"lint": "eslint --cache --cache-strategy content --ext .ts,.js,.vue,.json,.html src test cypress public/embed.html",
|
||||
"lint:tsc": "vue-tsc --noEmit --incremental && tsc --noEmit --incremental -p cypress",
|
||||
"lint": "eslint --cache --cache-strategy content --ext .ts,.js,.vue,.json,.html,.cjs . cypress public/embed.html src test ui-docs",
|
||||
"lint:tsc": "vue-tsc --noEmit --incremental && tsc --noEmit --incremental -p cypress src test ui-docs",
|
||||
"generate-local-schema": "yarn run openapi-typescript ../api/funkwhale_api/schema.yml -o src/generated/types.ts",
|
||||
"generate-remote-schema": "yarn run openapi-typescript https://docs.funkwhale.audio/develop/swagger/schema.yml -o src/generated/types.ts"
|
||||
"generate-remote-schema": "yarn run openapi-typescript https://docs.funkwhale.audio/develop/swagger/schema.yml -o src/generated/types.ts",
|
||||
"fmt": "yarn lint --fix",
|
||||
"fmt:html": "node --experimental-strip-types node_modules/prettier/bin/prettier.cjs index.html public/embed.html --write"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sentry/tracing": "7.47.0",
|
||||
|
@ -135,9 +137,27 @@
|
|||
"bracketSpacing": true,
|
||||
"embeddedLanguageFormatting": "off",
|
||||
"htmlWhitespaceSensitivity": "strict",
|
||||
"printWidth": 160,
|
||||
"semi": false,
|
||||
"singleAttributePerLine": true,
|
||||
"trailingComma": "es5",
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none",
|
||||
"tabWidth": 2,
|
||||
"useTabs": false
|
||||
"useTabs": false,
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.html",
|
||||
"options": {
|
||||
"singleAttributePerLine": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": "*.json",
|
||||
"options": {
|
||||
"parser": "json",
|
||||
"printWidth": 80
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue