chore(lint): switched to a better lint config

This commit is contained in:
Corentin Thomasset 2023-05-28 23:13:24 +02:00 committed by Corentin THOMASSET
parent 4d2b037dbe
commit 33c9b6643f
178 changed files with 4105 additions and 3371 deletions

View file

@ -4,7 +4,7 @@ import { defineTool } from '../tool';
export const tool = defineTool({
name: 'Text statistics',
path: '/text-statistics',
description: "Get information about a text, the amount of characters, the amount of words, it's size, ...",
description: 'Get information about a text, the amount of characters, the amount of words, it\'s size, ...',
keywords: ['text', 'statistics', 'length', 'characters', 'count', 'size', 'bytes'],
component: () => import('./text-statistics.vue'),
icon: FileText,

View file

@ -1,4 +1,4 @@
import { expect, describe, it } from 'vitest';
import { describe, expect, it } from 'vitest';
import { getStringSizeInBytes } from './text-statistics.service';
describe('text-statistics', () => {

View file

@ -1,3 +1,11 @@
<script setup lang="ts">
import { ref } from 'vue';
import { getStringSizeInBytes } from './text-statistics.service';
import { formatBytes } from '@/utils/convert';
const text = ref('');
</script>
<template>
<c-card>
<n-input v-model:value="text" type="textarea" placeholder="Your text..." rows="5" />
@ -10,11 +18,3 @@
</div>
</c-card>
</template>
<script setup lang="ts">
import { formatBytes } from '@/utils/convert';
import { ref } from 'vue';
import { getStringSizeInBytes } from './text-statistics.service';
const text = ref('');
</script>