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 7ba9fa6 commit 61224d0
Show file tree
Hide file tree
Showing 461 changed files with 5,544 additions and 5,544 deletions.
24 changes: 12 additions & 12 deletions packages/synapse-bridge/dev/main.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
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",
defaultSet: 'mdi',
aliases,
sets: {
mdi,
},
},
theme: {
defaultTheme: "light",
defaultTheme: 'light',
themes: {
light: {
colors: colorTheme,
Expand All @@ -38,4 +38,4 @@ const store = createStore({
},
});

createApp(Playground).use(store).use(vuetify).use(router).mount("#app");
createApp(Playground).use(store).use(vuetify).use(router).mount('#app');
8 changes: 4 additions & 4 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"),
name: 'home',
path: '/',
component: () => import('./Playground.vue'),
},
],
});
61 changes: 31 additions & 30 deletions packages/synapse-bridge/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,50 @@
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,
'vuejs-accessibility': a11y,
},
ignores: [
"src/elements/Logo/*",
"src/elements/CustomIcon/mixins/themeIcon.ts",
"src/assets/locales/*.json",
"src/assets/locales/*.json/**",
"public/**/*",
'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",
'ts/semi': 'off',
'curly': ['error', 'all'],
'no-console': 'error',
'no-alert': 'off',
'no-shadow': 'off',
'vue/custom-event-name-casing': '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', 'single'],
'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"],
files: ['**/*.json', '**/*.md', '**/*.spec.ts'],
ignores: ['public/**/*.json'],
rules: {
"style/max-len": ["error", { code: 600, tabWidth: 2 }],
'style/max-len': ['error', { code: 600, tabWidth: 4 }],
},

}, {
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',
},

});
2 changes: 1 addition & 1 deletion packages/synapse-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"preview": "vite preview",
"analyze": "vite build --mode analyze",
"build": "vue-tsc && vite build",
"lint": "pnpm lint:eslint && pnpm lint:prettier",
"lint": "pnpm lint:eslint",
"lint:eslint": "eslint . --ignore-pattern 'dist/*'",
"lint:prettier": "pnpm exec prettier . --write",
"lint:fix": "eslint . --fix && prettier --write --list-different .",
Expand Down
4 changes: 2 additions & 2 deletions packages/synapse-bridge/prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const config = {
trailingComma: "es5",
trailingComma: 'es5',
tabWidth: 4,
semi: false,
singleQuote: true,
htmlWhitespaceSensitivity: "ignore",
htmlWhitespaceSensitivity: 'ignore',
};

export default config;
4 changes: 2 additions & 2 deletions packages/synapse-bridge/scripts/devSetup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { copyFile, existsSync } from "node:fs";
import { copyFile, existsSync } from 'node:fs';

function createPlayground(): void {
const devFolder = "./dev";
const devFolder = './dev';
const targetFile = `${devFolder}/Playground.vue`;

if (existsSync(targetFile)) {
Expand Down
16 changes: 8 additions & 8 deletions packages/synapse-bridge/src/constants/enums/StateEnum.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export enum StateEnum {
IDLE = "idle",
PENDING = "pending",
REJECTED = "rejected",
RESOLVED = "resolved",
IDLE = 'idle',
PENDING = 'pending',
REJECTED = 'rejected',
RESOLVED = 'resolved',
}

/** @deprecated Use StateEnum instead */
export enum STATE_ENUM {
idle = "idle",
pending = "pending",
rejected = "rejected",
resolved = "resolved",
idle = 'idle',
pending = 'pending',
rejected = 'rejected',
resolved = 'resolved',
}
14 changes: 7 additions & 7 deletions packages/synapse-bridge/src/constants/enums/ThemeEnum.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export enum ThemeEnum {
AMELI = "ameli",
AMELI_PRO = "ameli-pro",
CNAM = "cnam",
COMPTE_AMELI = "compte-ameli",
COMPTE_ENTREPRISE = "compte-entreprise",
DEFAULT = "default",
RISQUE_PRO = "risque-pro",
AMELI = 'ameli',
AMELI_PRO = 'ameli-pro',
CNAM = 'cnam',
COMPTE_AMELI = 'compte-ameli',
COMPTE_ENTREPRISE = 'compte-entreprise',
DEFAULT = 'default',
RISQUE_PRO = 'risque-pro',
}

export const THEME_ENUM_VALUES = Object.values(ThemeEnum);
8 changes: 4 additions & 4 deletions packages/synapse-bridge/src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import dayjs from "dayjs";
import { formatDate } from "../functions/formatDate";
import { StateEnum } from "./enums/StateEnum";
import { THEME_ENUM_VALUES, ThemeEnum } from "./enums/ThemeEnum";
import dayjs from 'dayjs';
import { formatDate } from '../functions/formatDate';
import { StateEnum } from './enums/StateEnum';
import { THEME_ENUM_VALUES, ThemeEnum } from './enums/ThemeEnum';

export const TODAY = formatDate(dayjs());
export { StateEnum };
Expand Down
6 changes: 3 additions & 3 deletions packages/synapse-bridge/src/elements/BackBtn/BackBtn.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import { defineComponent } from "vue";
import { mdiArrowLeft } from "@mdi/js";
import { defineComponent } from 'vue';
import { mdiArrowLeft } from '@mdi/js';
import { locales } from "./locales";
import { locales } from './locales';
export default defineComponent({
props: {
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-bridge/src/elements/BackBtn/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import BackBtn from "./BackBtn.vue";
import BackBtn from './BackBtn.vue';

export default BackBtn;
2 changes: 1 addition & 1 deletion packages/synapse-bridge/src/elements/BackBtn/locales.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const locales = {
label: "Retour",
label: 'Retour',
};
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { describe, expect, it } from "vitest";
import { shallowMount } from "@vue/test-utils";
import { vuetify } from "@tests/unit/setup";
import { describe, expect, it } from 'vitest';
import { shallowMount } from '@vue/test-utils';
import { vuetify } from '@tests/unit/setup';

import BackBtn from "../";
import BackBtn from '../';

describe("backBtn", () => {
it("renders correctly", () => {
describe('backBtn', () => {
it('renders correctly', () => {
const wrapper = shallowMount(BackBtn, {
global: {
plugins: [vuetify],
Expand All @@ -15,7 +15,7 @@ describe("backBtn", () => {
expect(wrapper.html()).toMatchSnapshot();
});

it("renders correctly in dark mode", () => {
it('renders correctly in dark mode', () => {
const wrapper = shallowMount(BackBtn, {
props: {
dark: true,
Expand Down
28 changes: 14 additions & 14 deletions packages/synapse-bridge/src/elements/BackToTopBtn/BackToTopBtn.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
import { defineComponent } from "vue";
import { mdiArrowUp } from "@mdi/js";
import { defineComponent } from 'vue';
import { mdiArrowUp } from '@mdi/js';
import { config } from "./config";
import { locales } from "./locales";
import { customizable } from "@/mixins/customizable";
import { convertToUnit } from "@/helpers/convertToUnit";
import { config } from './config';
import { locales } from './locales';
import { customizable } from '@/mixins/customizable';
import { convertToUnit } from '@/helpers/convertToUnit';
export default defineComponent({
mixins: [customizable(config)],
Expand All @@ -16,11 +16,11 @@ export default defineComponent({
},
nudgeRight: {
type: [String, Number],
default: "16px",
default: '16px',
},
nudgeBottom: {
type: [String, Number],
default: "16px",
default: '16px',
},
target: {
type: String,
Expand All @@ -45,14 +45,14 @@ export default defineComponent({
isMobile(): boolean {
return (
this.$vuetify.display.name === "xs"
|| this.$vuetify.display.name === "sm"
this.$vuetify.display.name === 'xs'
|| this.$vuetify.display.name === 'sm'
);
},
btnStyle(): Record<string, string> {
const right = convertToUnit(this.nudgeRight) || "0";
const bottom = convertToUnit(this.nudgeBottom) || "0";
const right = convertToUnit(this.nudgeRight) || '0';
const bottom = convertToUnit(this.nudgeBottom) || '0';
return {
bottom,
Expand All @@ -61,11 +61,11 @@ export default defineComponent({
},
minWidth(): string | null {
return this.isMobile ? "36px" : null;
return this.isMobile ? '36px' : null;
},
labelClasses(): Record<string, boolean> {
return { "d-sr-only": this.isMobile };
return { 'd-sr-only': this.isMobile };
},
},
methods: {
Expand Down
14 changes: 7 additions & 7 deletions packages/synapse-bridge/src/elements/BackToTopBtn/config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
export const config = {
btn: {
position: "fixed",
variant: "outlined",
color: "primary",
class: "text-wrap px-0 px-md-4",
position: 'fixed',
variant: 'outlined',
color: 'primary',
class: 'text-wrap px-0 px-md-4',
},
icon: {
color: "primary",
size: "small",
class: "ml-0 ml-md-1",
color: 'primary',
size: 'small',
class: 'ml-0 ml-md-1',
},
};
2 changes: 1 addition & 1 deletion packages/synapse-bridge/src/elements/BackToTopBtn/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import BackToTopBtn from "./BackToTopBtn.vue";
import BackToTopBtn from './BackToTopBtn.vue';

export default BackToTopBtn;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const locales = {
label: "Retour en haut",
label: 'Retour en haut',
};
Loading

0 comments on commit 61224d0

Please sign in to comment.