chore(lint): switched to a better lint config

This commit is contained in:
Corentin Thomasset authored and Corentin THOMASSET committed 2023-05-28 23:29:14 +02:00
1 parent 4d2b037dbe
commit 33c9b6643f
178 files changed
+4105 -3371

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import { defineTool } from '../tool';
export const tool = defineTool({
name: 'Math evaluator',
path: '/math-evaluator',
description: `Evaluate math expression, like a calculator on steroid (you can use function like sqrt, cos, sin, abs, ...)`,
description: 'Evaluate math expression, like a calculator on steroid (you can use function like sqrt, cos, sin, abs, ...)',
keywords: [
'math',
'evaluator',
+10 -10
View File
@@ -1,3 +1,13 @@
<script setup lang="ts">
import { evaluate } from 'mathjs';
import { computed, ref } from 'vue';
import { withDefaultOnError } from '@/utils/defaults';
const expression = ref('');
const result = computed(() => withDefaultOnError(() => evaluate(expression.value) ?? '', ''));
</script>
<template>
<div>
<n-input
@@ -17,13 +27,3 @@
</c-card>
</div>
</template>
<script setup lang="ts">
import { withDefaultOnError } from '@/utils/defaults';
import { evaluate } from 'mathjs';
import { computed, ref } from 'vue';
const expression = ref('');
const result = computed(() => withDefaultOnError(() => evaluate(expression.value) ?? '', ''));
</script>