diff --git a/.eslintrc b/.eslintrc index 890abe8afe4b..f4630ff4e979 100644 --- a/.eslintrc +++ b/.eslintrc @@ -5,6 +5,9 @@ // prefer global Buffer to not initialize the whole module "n/prefer-global/buffer": "off", "@typescript-eslint/no-invalid-this": "off", + "@typescript-eslint/quotes": ["error", "single", { + "allowTemplateLiterals": true + }], "no-restricted-imports": [ "error", { diff --git a/examples/vue/test/imports.test.ts b/examples/vue/test/imports.test.ts index 73592f215d8c..9914b0723b98 100644 --- a/examples/vue/test/imports.test.ts +++ b/examples/vue/test/imports.test.ts @@ -5,7 +5,6 @@ describe('import vue components', () => { }) test('template string imports as expected', async () => { - // eslint-disable-next-line @typescript-eslint/quotes const cmp = await import(`../components/Hello.vue`) expect(cmp).toBeDefined() }) diff --git a/test/browser/test/mocked.test.ts b/test/browser/test/mocked.test.ts index 4441b13ae301..34bbdc977993 100644 --- a/test/browser/test/mocked.test.ts +++ b/test/browser/test/mocked.test.ts @@ -25,6 +25,5 @@ test('imports are still the same', async () => { // @ts-expect-error typescript resolution await expect(import('../src/calculator')).resolves.toBe(calculatorModule) // @ts-expect-error typescript resolution - // eslint-disable-next-line @typescript-eslint/quotes await expect(import(`../src/calculator`)).resolves.toBe(calculatorModule) }) diff --git a/test/core/test/jest-expect.test.ts b/test/core/test/jest-expect.test.ts index 922b54b361a1..f67671fbcc80 100644 --- a/test/core/test/jest-expect.test.ts +++ b/test/core/test/jest-expect.test.ts @@ -770,7 +770,7 @@ describe('async expect', () => { expect.unreachable() } catch (err: any) { - expect(err.message).toMatchInlineSnapshot('"promise resolved \\"{ foo: { bar: 42 } }\\" instead of rejecting"') + expect(err.message).toMatchInlineSnapshot(`"promise resolved "{ foo: { bar: 42 } }" instead of rejecting"`) expect(err.stack).toContain('jest-expect.test.ts') } @@ -781,7 +781,7 @@ describe('async expect', () => { expect.unreachable() } catch (err: any) { - expect(err.message).toMatchInlineSnapshot('"promise rejected \\"Error: some error { foo: { bar: 42 } }\\" instead of resolving"') + expect(err.message).toMatchInlineSnapshot(`"promise rejected "Error: some error { foo: { bar: 42 } }" instead of resolving"`) expect(err.stack).toContain('jest-expect.test.ts') } }) @@ -849,9 +849,9 @@ it('correctly prints diff with asymmetric matchers', () => { + Received Object { - \\"a\\": Any, - - \\"b\\": Any, - + \\"b\\": \\"string\\", + "a": Any, + - "b": Any, + + "b": "string", }" `) }