Skip to content

Commit 54d2423

Browse files
authored
chore: update all vue and vite to their latest version (#521)
* update all vue related package to their latest version * migrate vite conf to version 5 * update dep + migrate prettier/eslint/husky conf * resolved vue-tsc errors in bouquetFormView * Merge branch 'main' into chore/update-vue * removed chart.js and related components/store * Chore: fix update errors (#551) * temp fix for useOwnerName with dataset * explicit inject type to remove if statement * type route.meta properties * freeze @gouv dependencies before merge
1 parent 19f6d42 commit 54d2423

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+3220
-3518
lines changed

.babelrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = function (api) {
1+
export default function (api) {
22
api.cache(true)
33
return {}
44
}

.eslintrc.js

-35
This file was deleted.

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npx lint-staged

.prettierrc.js

-8
This file was deleted.

.prettierrc.mjs

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const config = {
2+
arrowParens: 'always',
3+
bracketSameLine: false,
4+
bracketSpacing: true,
5+
embeddedLanguageFormatting: 'auto',
6+
endOfLine: 'lf',
7+
htmlWhitespaceSensitivity: 'css',
8+
insertPragma: false,
9+
jsxSingleQuote: true,
10+
printWidth: 80,
11+
proseWrap: 'preserve',
12+
quoteProps: 'as-needed',
13+
requirePragma: false,
14+
semi: false,
15+
singleAttributePerLine: false,
16+
singleQuote: true,
17+
tabWidth: 2,
18+
trailingComma: 'none',
19+
useTabs: false,
20+
vueIndentScriptAndStyle: false,
21+
plugins: ['prettier-plugin-organize-imports']
22+
}
23+
24+
export default config

env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

eslint.config.mjs

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
2+
import vueTsEslintConfig from '@vue/eslint-config-typescript'
3+
import eslintConfigPrettier from 'eslint-config-prettier'
4+
import json from 'eslint-plugin-json'
5+
import pluginVue from 'eslint-plugin-vue'
6+
7+
export default [
8+
{
9+
name: 'app/files-to-lint',
10+
files: ['**/*.{js,mjs,ts,mts,tsx,vue}'],
11+
rules: {
12+
'@typescript-eslint/no-unused-vars': [
13+
'error',
14+
{ ignoreRestSiblings: true }
15+
]
16+
}
17+
},
18+
{
19+
name: 'files-to-ignore',
20+
ignores: ['.gitignore', '**/dist/**', '**/dist-ssr/**', '**/coverage/**']
21+
},
22+
eslintConfigPrettier,
23+
24+
...pluginVue.configs['flat/recommended'],
25+
...vueTsEslintConfig(),
26+
{
27+
files: ['**/*.json'],
28+
...json.configs['recommended']
29+
},
30+
skipFormatting
31+
]

0 commit comments

Comments
 (0)