fix: migrate eslint and prettier configs to JS files (#4105)

This commit is contained in:
Nico Domino 2024-06-18 12:16:02 +02:00 committed by GitHub
parent 32a08f16bb
commit 7e3360de60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 11 deletions

View File

@ -1,3 +1,6 @@
/**
* @type {import('eslint').Linter.Config}
**/
module.exports = { module.exports = {
root: true, root: true,
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',

View File

@ -1,9 +0,0 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }],
"endOfLine": "auto"
}

15
app/.prettierrc.js Normal file
View File

@ -0,0 +1,15 @@
/**
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/
const config = {
useTabs: true,
singleQuote: true,
trailingComma: 'none',
printWidth: 100,
plugins: ['prettier-plugin-svelte'],
overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }],
endOfLine: 'auto'
};
export default config;

View File

@ -6,6 +6,7 @@
"engines": { "engines": {
"node": ">=20.11" "node": ">=20.11"
}, },
"packageManager": "pnpm@9.2.0",
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
"test": "vitest run --mode development", "test": "vitest run --mode development",

View File

@ -4,6 +4,7 @@
"engines": { "engines": {
"node": ">=20.11" "node": ">=20.11"
}, },
"packageManager": "pnpm@9.2.0",
"scripts": { "scripts": {
"dev": "pnpm --filter @gitbutler/ui run dev", "dev": "pnpm --filter @gitbutler/ui run dev",
"test": "pnpm --filter @gitbutler/ui run test", "test": "pnpm --filter @gitbutler/ui run test",
@ -20,6 +21,5 @@
}, },
"devDependencies": { "devDependencies": {
"@tauri-apps/cli": "^1.5.13" "@tauri-apps/cli": "^1.5.13"
}, }
"packageManager": "pnpm@9.2.0+sha256.94fab213df221c55b6956b14a2264c21c6203cca9f0b3b95ff2fe9b84b120390"
} }