From ceda3c18ecee3cc5dfb904d8bdeba2d663c63fbf Mon Sep 17 00:00:00 2001 From: zoobestik Date: Wed, 1 Nov 2023 18:50:15 +0100 Subject: [PATCH] chore; fix differences in lint and fix --- .eslintrc.js | 6 ++++++ playwright.config.ts | 2 +- tests/crosslink.test.ts | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 25cf457..e7932c8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -19,4 +19,10 @@ module.exports = { sourceType: 'module', }, plugins: ['@typescript-eslint', 'eslint-plugin-import'], + rules: { + quotes: ['error', 'single', { + 'avoidEscape': true, + 'allowTemplateLiterals': false + }] + } }; diff --git a/playwright.config.ts b/playwright.config.ts index 6bae8be..0a97ccc 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -3,7 +3,7 @@ import { config as dotenv } from 'dotenv'; import { defineConfig, devices } from '@playwright/test'; import { isKeyOfObject } from './src/utils/types'; -dotenv({ path: `.env.local`, override: true }); +dotenv({ path: '.env.local', override: true }); const PROJECTS_LIST = { DEV: ['Desktop Chrome'], diff --git a/tests/crosslink.test.ts b/tests/crosslink.test.ts index 426781f..13bdbd5 100644 --- a/tests/crosslink.test.ts +++ b/tests/crosslink.test.ts @@ -60,11 +60,12 @@ ${' '} }); //language=text - const codeWithMark = `fun containsEven(collection: Collection): Boolean = collection.any {[mark]TODO()[/mark]}`; + const codeWithMark = + 'fun containsEven(collection: Collection): Boolean = collection.any {[mark]TODO()[/mark]}'; checkLink(generateCrosslink(codeWithMark), { //language=kotlin - code: `fun containsEven(collection: Collection): Boolean = collection.any {TODO()}`, + code: 'fun containsEven(collection: Collection): Boolean = collection.any {TODO()}', }); });