style(eslint): fixing eslint errors and warnings

This commit is contained in:
Daniel Eduardo Almagro 2024-05-12 23:52:41 -05:00
parent 089853e05b
commit e672cdae63
5 changed files with 29 additions and 5 deletions

View file

@ -1,4 +1,4 @@
import { test, expect } from '@playwright/test';
import { expect, test } from '@playwright/test';
test.describe('Tool - Extract text from html', () => {
test.beforeEach(async ({ page }) => {

View file

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

View file

@ -1,7 +1,8 @@
function validateHtml(value: string) {
try {
new DOMParser().parseFromString(value, 'text/html');
} catch (error) {
}
catch (error) {
return false;
}

View file

@ -29,5 +29,3 @@ const rules: UseValidationRule<string>[] = [
:transformer="transformer"
/>
</template>
<style lang="less" scoped></style>