mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-03 15:06:01 +03:00
fix: migrate eslint and prettier configs to JS files (#4105)
This commit is contained in:
parent
32a08f16bb
commit
7e3360de60
@ -1,3 +1,6 @@
|
||||
/**
|
||||
* @type {import('eslint').Linter.Config}
|
||||
**/
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: '@typescript-eslint/parser',
|
||||
|
@ -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
15
app/.prettierrc.js
Normal 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;
|
@ -6,6 +6,7 @@
|
||||
"engines": {
|
||||
"node": ">=20.11"
|
||||
},
|
||||
"packageManager": "pnpm@9.2.0",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
"test": "vitest run --mode development",
|
||||
|
@ -4,6 +4,7 @@
|
||||
"engines": {
|
||||
"node": ">=20.11"
|
||||
},
|
||||
"packageManager": "pnpm@9.2.0",
|
||||
"scripts": {
|
||||
"dev": "pnpm --filter @gitbutler/ui run dev",
|
||||
"test": "pnpm --filter @gitbutler/ui run test",
|
||||
@ -20,6 +21,5 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tauri-apps/cli": "^1.5.13"
|
||||
},
|
||||
"packageManager": "pnpm@9.2.0+sha256.94fab213df221c55b6956b14a2264c21c6203cca9f0b3b95ff2fe9b84b120390"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user