Skip to content

Commit

Permalink
Youhouuuu 0 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
VachetVirginie committed Jul 24, 2024
1 parent 027e8fc commit b3a86c8
Show file tree
Hide file tree
Showing 489 changed files with 26,134 additions and 26,145 deletions.
213 changes: 106 additions & 107 deletions packages/synapse-bridge/CHANGELOG.md

Large diffs are not rendered by default.

22 changes: 12 additions & 10 deletions packages/synapse-bridge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,32 @@ Pour utiliser ce Design System, vous devez avoir au moins les versions suivantes

## Stack Technique

- Vue 3
- Vuetify 3
- Vue Router 4
- Vuex 4
- Vue 3
- Vuetify 3
- Vue Router 4
- Vuex 4

## Outils Inclus

- Typescript
- Axios
- Sass
- Vitest pour les tests unitaires
- Typescript
- Axios
- Sass
- Vitest pour les tests unitaires

## Installation et utilisation

### Starter kits

Pour utiliser ce package, vous pouvez installer un des starter kits suivants :
- [Starter Kit Bridge](https://github.com/assurance-maladie-digital/starter-kit-vue-bridge/tree/dev) (projets en migration)
- [Starter Kit Synapse](https://github.com/assurance-maladie-digital/starter-kit-vue-bridge/tree/dev) (nouveaux projets)

- [Starter Kit Bridge](https://github.com/assurance-maladie-digital/starter-kit-vue-bridge/tree/dev) (projets en migration)
- [Starter Kit Synapse](https://github.com/assurance-maladie-digital/starter-kit-vue-bridge/tree/dev) (nouveaux projets)

### Librairie uniquement

Vous pouvez également utiliser ce package en tant que librairie de composants dans votre projet.
Pour cela, vous pouvez l'installer via npm ou un autre gestionnaire de paquets :

```bash
npm i @cnamts/synapse-bridge
```
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-bridge/dev/Playground.template.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<template>
<div />
<div />
</template>
66 changes: 33 additions & 33 deletions packages/synapse-bridge/dev/main.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
import { createApp } from "vue";
import { createStore } from "vuex";
import { createApp } from 'vue'
import { createStore } from 'vuex'

import "vuetify/styles";
import { createVuetify } from "vuetify";
import { aliases, mdi } from "vuetify/iconsets/mdi-svg";
import 'vuetify/styles'
import { createVuetify } from 'vuetify'
import { aliases, mdi } from 'vuetify/iconsets/mdi-svg'

import { colorTheme } from "@cnamts/design-tokens/src/colors";
import Playground from "./Playground.vue";
import { router } from "./router";
import { colorTheme } from '@cnamts/design-tokens/src/colors'
import Playground from './Playground.vue'
import { router } from './router'

import { notification } from "@/modules/notification";
import { notification } from '@/modules/notification'

const vuetify = createVuetify({
icons: {
defaultSet: "mdi",
aliases,
sets: {
mdi,
},
},
theme: {
defaultTheme: "light",
themes: {
light: {
colors: colorTheme,
},
dark: {
colors: colorTheme,
},
},
},
});
icons: {
defaultSet: 'mdi',
aliases,
sets: {
mdi,
},
},
theme: {
defaultTheme: 'light',
themes: {
light: {
colors: colorTheme,
},
dark: {
colors: colorTheme,
},
},
},
})

const store = createStore({
modules: {
notification,
},
});
modules: {
notification,
},
})

createApp(Playground).use(store).use(vuetify).use(router).mount("#app");
createApp(Playground).use(store).use(vuetify).use(router).mount('#app')
20 changes: 10 additions & 10 deletions packages/synapse-bridge/dev/router.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { createRouter, createWebHistory } from "vue-router";
import { createRouter, createWebHistory } from 'vue-router'

export const router = createRouter({
history: createWebHistory(),
routes: [
{
name: "home",
path: "/",
component: () => import("./Playground.vue"),
},
],
});
history: createWebHistory(),
routes: [
{
name: 'home',
path: '/',
component: () => import('./Playground.vue'),
},
],
})
96 changes: 53 additions & 43 deletions packages/synapse-bridge/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,59 @@
import a11y from "eslint-plugin-vuejs-accessibility";
import antfu from "@antfu/eslint-config";
import a11y from 'eslint-plugin-vuejs-accessibility'
import antfu from '@antfu/eslint-config'

export default antfu({
plugins: {
"vuejs-accessibility": a11y,
export default antfu(
{
plugins: {
'vuejs-accessibility': a11y,
},
ignores: [
'src/elements/Logo/*',
'src/elements/CustomIcon/mixins/themeIcon.ts',
'src/assets/locales/*.json',
'src/assets/locales/*.json/**',
'public/**/*',
],
rules: {
...a11y.configs.recommended.rules,
'ts/semi': 'off',
curly: ['error', 'all'],
'no-console': 'error',
'no-alert': 'off',
'no-shadow': 'off',
'vue/html-self-closing': 'off',
'vue/no-template-shadow': 'off',
'vue/custom-event-name-casing': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'style/max-len': ['error', { code: 120, tabWidth: 4 }],
'style/semi': ['error', 'always'],
'style/indent': 'off',
'style/quotes': ['error', 'double'],
'style/no-tabs': 'off',
'vuejs-accessibility/label-has-for': [
'error',
{ required: { every: ['nesting'] } },
],
'vuejs-accessibility/anchor-has-content': 'off',
},
},
ignores: [
"src/elements/Logo/*",
"src/elements/CustomIcon/mixins/themeIcon.ts",
"src/assets/locales/*.json",
"src/assets/locales/*.json/**",
"public/**/*",
],
rules: {
...a11y.configs.recommended.rules,
"ts/semi": "off",
"curly": ["error", "all"],
"no-console": "error",
"no-alert": "off",
"no-shadow": "off",
"vue/html-self-closing": "off",
"vue/no-template-shadow": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"style/max-len": ["error", { code: 120, tabWidth: 4 }],
"style/semi": ["error", "always"],
"style/indent": "off",
"style/quotes": ["error", "double"],
"style/no-tabs": "off",
"vuejs-accessibility/label-has-for": ["error", { required: { every: ["nesting"] } }],
"vuejs-accessibility/anchor-has-content": "off",
{
ignores: ['public/**/*'],
},
}, {
ignores: ["public/**/*"],
}, {
files: ["**/*.json", "**/*.md", "**/*.spec.ts"],
ignores: ["public/**/*.json"],
rules: {
"style/max-len": ["error", { code: 600, tabWidth: 2 }],
{
files: ['**/*.json', '**/*.md', '**/*.spec.ts'],
ignores: ['public/**/*.json'],
rules: {
'style/max-len': ['error', { code: 600, tabWidth: 2 }],
},
},

}, {
files: ["src/elements/FranceConnectBtn/FranceConnectBtn.vue", "src/elements/FilePreview/FilePreview.vue"],
{
files: [
'src/elements/FranceConnectBtn/FranceConnectBtn.vue',
'src/elements/FilePreview/FilePreview.vue',
],
rules: {
"style/max-len": "off",
'style/max-len': 'off',
},

});
}
)
Loading

0 comments on commit b3a86c8

Please sign in to comment.