From dc924892ccd6a6297ebb02e9e9a9a538a910df0f Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:55:17 +0000 Subject: [PATCH] test: add trailing line breaks to conformance fixtures (#5541) Continuation of #5537. Ensure all conformance fixture files have a trailing line break. --- .../tests/fixtures/arrow-function-return-type.ts | 2 +- crates/oxc_isolated_declarations/tests/fixtures/as-const.ts | 2 +- .../oxc_isolated_declarations/tests/fixtures/async-function.ts | 2 +- .../oxc_isolated_declarations/tests/fixtures/declare-global.ts | 2 +- .../tests/fixtures/eliminate-imports.ts | 2 +- crates/oxc_isolated_declarations/tests/fixtures/empty-export.ts | 2 +- .../oxc_isolated_declarations/tests/fixtures/empty-export2.ts | 2 +- .../tests/fixtures/expando-function.ts | 2 +- .../tests/fixtures/function-overloads.ts | 2 +- .../tests/fixtures/function-parameters.ts | 2 +- crates/oxc_isolated_declarations/tests/fixtures/generator.ts | 2 +- .../tests/fixtures/infer-expression.ts | 2 +- .../tests/fixtures/infer-return-type.ts | 2 +- .../tests/fixtures/infer-template-literal.ts | 2 +- crates/oxc_isolated_declarations/tests/fixtures/mapped-types.ts | 2 +- .../tests/fixtures/non-exported-binding-elements.ts | 2 +- .../tests/fixtures/set-get-accessor.ts | 2 +- crates/oxc_linter/fixtures/import/constants/index.js | 2 +- crates/oxc_linter/fixtures/import/deep-deprecated.js | 2 +- crates/oxc_linter/fixtures/import/deep-es7/d.js | 2 +- crates/oxc_linter/fixtures/import/deep/a.js | 2 +- crates/oxc_linter/fixtures/import/deep/c.js | 2 +- crates/oxc_linter/fixtures/import/deep/d.js | 2 +- crates/oxc_linter/fixtures/import/deep/default.js | 2 +- crates/oxc_linter/fixtures/import/empty-folder/anchor.txt | 2 +- crates/oxc_linter/fixtures/import/issue-195/Users.js | 2 +- .../fixtures/import/issue-370-commonjs-namespace/bar.js | 2 +- .../fixtures/import/issue-370-commonjs-namespace/foo.js | 2 +- crates/oxc_linter/fixtures/import/issue210.config.js | 2 +- crates/oxc_linter/fixtures/import/issue210.js | 2 +- crates/oxc_linter/fixtures/import/jsx/bar/baz.jsx | 2 +- crates/oxc_linter/fixtures/import/jsx/bar/index.js | 2 +- crates/oxc_linter/fixtures/import/jsx/bar/qux.jsx | 2 +- crates/oxc_linter/fixtures/import/jsx/re-export.js | 2 +- crates/oxc_linter/fixtures/import/named-trampoline.js | 2 +- crates/oxc_linter/fixtures/import/narcissist.js | 2 +- .../fixtures/import/no-unused-modules/file-destructured-2.js | 2 +- crates/oxc_linter/fixtures/import/no-unused-modules/file-p.js | 2 +- .../oxc_linter/fixtures/import/node_modules/es6-module/index.js | 2 +- .../import/node_modules/eslint-import-resolver-foo/index.js | 2 +- crates/oxc_linter/fixtures/import/oxc/indirect-export.js | 2 +- crates/oxc_linter/fixtures/import/test-module/index.js | 2 +- crates/oxc_linter/fixtures/import/test.giffy | 2 +- .../fixtures/import/unused-modules-reexport-crash/src/index.tsx | 2 +- .../import/unused-modules-reexport-crash/src/magic/test.js | 2 +- crates/oxc_linter/fixtures/import/webpack.empty.config.js | 2 +- crates/oxc_semantic/tests/fixtures/oxc/jsx/element-name.jsx | 2 +- .../oxc_semantic/tests/fixtures/oxc/jsx/member-expression.jsx | 2 +- .../tests/fixtures/typescript-eslint/catch/scope.ts | 2 +- tasks/coverage/misc/fail/oxc-1942-1.ts | 2 +- tasks/coverage/misc/fail/oxc-1942-2.ts | 2 +- tasks/coverage/misc/fail/oxc-2394.ts | 2 +- tasks/coverage/misc/fail/oxc-4212-1.ts | 2 +- tasks/coverage/misc/fail/oxc-5036.js | 2 +- tasks/coverage/misc/pass/oxc-2394.ts | 2 +- tasks/coverage/misc/pass/oxc-3443.tsx | 2 +- tasks/coverage/src/runtime/runtime.js | 2 +- 57 files changed, 57 insertions(+), 57 deletions(-) diff --git a/crates/oxc_isolated_declarations/tests/fixtures/arrow-function-return-type.ts b/crates/oxc_isolated_declarations/tests/fixtures/arrow-function-return-type.ts index a188069a364dc..5367a3ac603ec 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/arrow-function-return-type.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/arrow-function-return-type.ts @@ -8,4 +8,4 @@ const B = () => { return B }; const C = function () {} -const D = () => `${''}`; \ No newline at end of file +const D = () => `${''}`; diff --git a/crates/oxc_isolated_declarations/tests/fixtures/as-const.ts b/crates/oxc_isolated_declarations/tests/fixtures/as-const.ts index b9638532cfa2d..6f1fbe55402a9 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/as-const.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/as-const.ts @@ -13,4 +13,4 @@ const F = { b: `b` }, array: [`a`, , { b: `\n` }], -} as const \ No newline at end of file +} as const diff --git a/crates/oxc_isolated_declarations/tests/fixtures/async-function.ts b/crates/oxc_isolated_declarations/tests/fixtures/async-function.ts index b1a8d9a6aeb34..0087316edc5f5 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/async-function.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/async-function.ts @@ -25,4 +25,4 @@ class AsyncClassBad { async method() { return 42; } -} \ No newline at end of file +} diff --git a/crates/oxc_isolated_declarations/tests/fixtures/declare-global.ts b/crates/oxc_isolated_declarations/tests/fixtures/declare-global.ts index fd994c73dcb10..490fbc14eb84f 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/declare-global.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/declare-global.ts @@ -8,4 +8,4 @@ declare global { } } -export {} \ No newline at end of file +export {} diff --git a/crates/oxc_isolated_declarations/tests/fixtures/eliminate-imports.ts b/crates/oxc_isolated_declarations/tests/fixtures/eliminate-imports.ts index eccce3d1e016c..a6bdc391eddf3 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/eliminate-imports.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/eliminate-imports.ts @@ -8,4 +8,4 @@ export const bar: (this: ThisType2) => void = function() {} import { type InferType1, type InferType2 } from 'infer'; -export type F = X extends infer U extends InferType2 ? U : never \ No newline at end of file +export type F = X extends infer U extends InferType2 ? U : never diff --git a/crates/oxc_isolated_declarations/tests/fixtures/empty-export.ts b/crates/oxc_isolated_declarations/tests/fixtures/empty-export.ts index 4d1ef02d37e90..0b8a0adab3bcf 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/empty-export.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/empty-export.ts @@ -1,4 +1,4 @@ type A = string; export function a(): A { return "" -} \ No newline at end of file +} diff --git a/crates/oxc_isolated_declarations/tests/fixtures/empty-export2.ts b/crates/oxc_isolated_declarations/tests/fixtures/empty-export2.ts index 17abd44386b75..ad8031ab484a2 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/empty-export2.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/empty-export2.ts @@ -1 +1 @@ -import * as a from "mod"; \ No newline at end of file +import * as a from "mod"; diff --git a/crates/oxc_isolated_declarations/tests/fixtures/expando-function.ts b/crates/oxc_isolated_declarations/tests/fixtures/expando-function.ts index c36a527cd1b1d..64ed1b43d8755 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/expando-function.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/expando-function.ts @@ -31,4 +31,4 @@ namespace qux { qux.woo = 42; -export default qux; \ No newline at end of file +export default qux; diff --git a/crates/oxc_isolated_declarations/tests/fixtures/function-overloads.ts b/crates/oxc_isolated_declarations/tests/fixtures/function-overloads.ts index e33f9a36e753b..959f4bb35c803 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/function-overloads.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/function-overloads.ts @@ -4,4 +4,4 @@ function a(a: any): any {} function b(a: number): number {}; -function b(a: string): string {}; \ No newline at end of file +function b(a: string): string {}; diff --git a/crates/oxc_isolated_declarations/tests/fixtures/function-parameters.ts b/crates/oxc_isolated_declarations/tests/fixtures/function-parameters.ts index 6dd3b10ddadcc..e22af6aac55b9 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/function-parameters.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/function-parameters.ts @@ -25,4 +25,4 @@ export function fooBad([a, b] = [1, 2]): number { export const fooBad2 = ({a, b} = { a: 1, b: 2 }): number => { return 2; -} \ No newline at end of file +} diff --git a/crates/oxc_isolated_declarations/tests/fixtures/generator.ts b/crates/oxc_isolated_declarations/tests/fixtures/generator.ts index 2666ea0292c7d..b99e25e4cceaf 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/generator.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/generator.ts @@ -22,4 +22,4 @@ class GeneratorClassBad { yield 50; return 42; } -} \ No newline at end of file +} diff --git a/crates/oxc_isolated_declarations/tests/fixtures/infer-expression.ts b/crates/oxc_isolated_declarations/tests/fixtures/infer-expression.ts index a861197730968..1ac3f10922aa9 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/infer-expression.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/infer-expression.ts @@ -15,4 +15,4 @@ const unaryB = -1_2n; // UnaryExpression const unaryC = +"str" const unaryD = typeof "str" -const unaryE = {E: -"str"} as const \ No newline at end of file +const unaryE = {E: -"str"} as const diff --git a/crates/oxc_isolated_declarations/tests/fixtures/infer-return-type.ts b/crates/oxc_isolated_declarations/tests/fixtures/infer-return-type.ts index 2a489ed8e1a74..4f0730d59b832 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/infer-return-type.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/infer-return-type.ts @@ -29,4 +29,4 @@ function qux() { function quux() { return `${''}` } -// Inferred type is string \ No newline at end of file +// Inferred type is string diff --git a/crates/oxc_isolated_declarations/tests/fixtures/infer-template-literal.ts b/crates/oxc_isolated_declarations/tests/fixtures/infer-template-literal.ts index dca3f8568ec66..004941dfad977 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/infer-template-literal.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/infer-template-literal.ts @@ -11,4 +11,4 @@ export let GOOD = `useCssV${v}ars` export const BAD = `useCssV${v}ars` -export let BAD2 = `useCssV${v}ars` as const \ No newline at end of file +export let BAD2 = `useCssV${v}ars` as const diff --git a/crates/oxc_isolated_declarations/tests/fixtures/mapped-types.ts b/crates/oxc_isolated_declarations/tests/fixtures/mapped-types.ts index adcdd2418de69..ab48648b2a6b1 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/mapped-types.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/mapped-types.ts @@ -3,4 +3,4 @@ import {T} from 'bar' export interface I { prop: {[key in K]: T} -} \ No newline at end of file +} diff --git a/crates/oxc_isolated_declarations/tests/fixtures/non-exported-binding-elements.ts b/crates/oxc_isolated_declarations/tests/fixtures/non-exported-binding-elements.ts index 22f6d6a8021f5..97568f620bfcb 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/non-exported-binding-elements.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/non-exported-binding-elements.ts @@ -9,4 +9,4 @@ const { c, d } = { c: 1, d: 2 }; const [ e ] = [4]; export { c, d, e } -export const { f, g } = { f: 5, g: 6 }; \ No newline at end of file +export const { f, g } = { f: 5, g: 6 }; diff --git a/crates/oxc_isolated_declarations/tests/fixtures/set-get-accessor.ts b/crates/oxc_isolated_declarations/tests/fixtures/set-get-accessor.ts index 5884d615ffae4..4edaf9099eda9 100644 --- a/crates/oxc_isolated_declarations/tests/fixtures/set-get-accessor.ts +++ b/crates/oxc_isolated_declarations/tests/fixtures/set-get-accessor.ts @@ -23,4 +23,4 @@ class ClsBad { } set a(v) { } -} \ No newline at end of file +} diff --git a/crates/oxc_linter/fixtures/import/constants/index.js b/crates/oxc_linter/fixtures/import/constants/index.js index 2d7500a680c1f..c447eb42726a3 100644 --- a/crates/oxc_linter/fixtures/import/constants/index.js +++ b/crates/oxc_linter/fixtures/import/constants/index.js @@ -1 +1 @@ -export const FOO = 'FOO' \ No newline at end of file +export const FOO = 'FOO' diff --git a/crates/oxc_linter/fixtures/import/deep-deprecated.js b/crates/oxc_linter/fixtures/import/deep-deprecated.js index 8e9a62780a410..81c396ea940ef 100644 --- a/crates/oxc_linter/fixtures/import/deep-deprecated.js +++ b/crates/oxc_linter/fixtures/import/deep-deprecated.js @@ -1,2 +1,2 @@ import * as deepDep from './deprecated' -export { deepDep } \ No newline at end of file +export { deepDep } diff --git a/crates/oxc_linter/fixtures/import/deep-es7/d.js b/crates/oxc_linter/fixtures/import/deep-es7/d.js index 6a539d9422028..ec19d1ab82ce9 100644 --- a/crates/oxc_linter/fixtures/import/deep-es7/d.js +++ b/crates/oxc_linter/fixtures/import/deep-es7/d.js @@ -1 +1 @@ -export const e = "e" \ No newline at end of file +export const e = "e" diff --git a/crates/oxc_linter/fixtures/import/deep/a.js b/crates/oxc_linter/fixtures/import/deep/a.js index 655f0d64e9fab..8a73b228f8fc8 100644 --- a/crates/oxc_linter/fixtures/import/deep/a.js +++ b/crates/oxc_linter/fixtures/import/deep/a.js @@ -1,2 +1,2 @@ import * as b from './b' -export { b } \ No newline at end of file +export { b } diff --git a/crates/oxc_linter/fixtures/import/deep/c.js b/crates/oxc_linter/fixtures/import/deep/c.js index 37dd47636111c..4bb6ca663c5a4 100644 --- a/crates/oxc_linter/fixtures/import/deep/c.js +++ b/crates/oxc_linter/fixtures/import/deep/c.js @@ -1,2 +1,2 @@ import * as d from './d' -export { d } \ No newline at end of file +export { d } diff --git a/crates/oxc_linter/fixtures/import/deep/d.js b/crates/oxc_linter/fixtures/import/deep/d.js index 6a539d9422028..ec19d1ab82ce9 100644 --- a/crates/oxc_linter/fixtures/import/deep/d.js +++ b/crates/oxc_linter/fixtures/import/deep/d.js @@ -1 +1 @@ -export const e = "e" \ No newline at end of file +export const e = "e" diff --git a/crates/oxc_linter/fixtures/import/deep/default.js b/crates/oxc_linter/fixtures/import/deep/default.js index b22c17c8ad5ee..163a6b15a2abf 100644 --- a/crates/oxc_linter/fixtures/import/deep/default.js +++ b/crates/oxc_linter/fixtures/import/deep/default.js @@ -1,2 +1,2 @@ import * as b from './b' -export default b \ No newline at end of file +export default b diff --git a/crates/oxc_linter/fixtures/import/empty-folder/anchor.txt b/crates/oxc_linter/fixtures/import/empty-folder/anchor.txt index d56c5fb2e8879..e6a5e9f917555 100644 --- a/crates/oxc_linter/fixtures/import/empty-folder/anchor.txt +++ b/crates/oxc_linter/fixtures/import/empty-folder/anchor.txt @@ -1 +1 @@ -no js here! \ No newline at end of file +no js here! diff --git a/crates/oxc_linter/fixtures/import/issue-195/Users.js b/crates/oxc_linter/fixtures/import/issue-195/Users.js index 7419b8c9760c8..79ecdc9d9c288 100644 --- a/crates/oxc_linter/fixtures/import/issue-195/Users.js +++ b/crates/oxc_linter/fixtures/import/issue-195/Users.js @@ -1 +1 @@ -export default "Users" \ No newline at end of file +export default "Users" diff --git a/crates/oxc_linter/fixtures/import/issue-370-commonjs-namespace/bar.js b/crates/oxc_linter/fixtures/import/issue-370-commonjs-namespace/bar.js index 3ec93603af112..1f811269f59e8 100644 --- a/crates/oxc_linter/fixtures/import/issue-370-commonjs-namespace/bar.js +++ b/crates/oxc_linter/fixtures/import/issue-370-commonjs-namespace/bar.js @@ -1,2 +1,2 @@ // bar.js -export { default as foo } from './foo' \ No newline at end of file +export { default as foo } from './foo' diff --git a/crates/oxc_linter/fixtures/import/issue-370-commonjs-namespace/foo.js b/crates/oxc_linter/fixtures/import/issue-370-commonjs-namespace/foo.js index ba097965ed62f..6b252a4d476db 100644 --- a/crates/oxc_linter/fixtures/import/issue-370-commonjs-namespace/foo.js +++ b/crates/oxc_linter/fixtures/import/issue-370-commonjs-namespace/foo.js @@ -1,2 +1,2 @@ // foo.js -module.exports = { foo: 'foo' } \ No newline at end of file +module.exports = { foo: 'foo' } diff --git a/crates/oxc_linter/fixtures/import/issue210.config.js b/crates/oxc_linter/fixtures/import/issue210.config.js index 26f3534d7bb9c..d6749a5ecba16 100644 --- a/crates/oxc_linter/fixtures/import/issue210.config.js +++ b/crates/oxc_linter/fixtures/import/issue210.config.js @@ -1,3 +1,3 @@ exports.parserOptions = { sourceType: 'module', -} \ No newline at end of file +} diff --git a/crates/oxc_linter/fixtures/import/issue210.js b/crates/oxc_linter/fixtures/import/issue210.js index db18fa2defe9b..729b4988d339d 100644 --- a/crates/oxc_linter/fixtures/import/issue210.js +++ b/crates/oxc_linter/fixtures/import/issue210.js @@ -1 +1 @@ -export { test } from './issue210.js' \ No newline at end of file +export { test } from './issue210.js' diff --git a/crates/oxc_linter/fixtures/import/jsx/bar/baz.jsx b/crates/oxc_linter/fixtures/import/jsx/bar/baz.jsx index ab0eb07e92296..17c49d1611819 100644 --- a/crates/oxc_linter/fixtures/import/jsx/bar/baz.jsx +++ b/crates/oxc_linter/fixtures/import/jsx/bar/baz.jsx @@ -13,4 +13,4 @@ export function Baz2() { Baz2 ); -} \ No newline at end of file +} diff --git a/crates/oxc_linter/fixtures/import/jsx/bar/index.js b/crates/oxc_linter/fixtures/import/jsx/bar/index.js index 2d36b837ed001..ca9a1e772d25c 100644 --- a/crates/oxc_linter/fixtures/import/jsx/bar/index.js +++ b/crates/oxc_linter/fixtures/import/jsx/bar/index.js @@ -1,2 +1,2 @@ export * from "./baz.jsx"; -export { Qux1, Qux2 } from "./qux.jsx"; \ No newline at end of file +export { Qux1, Qux2 } from "./qux.jsx"; diff --git a/crates/oxc_linter/fixtures/import/jsx/bar/qux.jsx b/crates/oxc_linter/fixtures/import/jsx/bar/qux.jsx index 9325207d74a20..bdbb1396df476 100644 --- a/crates/oxc_linter/fixtures/import/jsx/bar/qux.jsx +++ b/crates/oxc_linter/fixtures/import/jsx/bar/qux.jsx @@ -13,4 +13,4 @@ export function Qux2() {

Qux1

);; -} \ No newline at end of file +} diff --git a/crates/oxc_linter/fixtures/import/jsx/re-export.js b/crates/oxc_linter/fixtures/import/jsx/re-export.js index 70f8509aac084..78aefeed120f2 100644 --- a/crates/oxc_linter/fixtures/import/jsx/re-export.js +++ b/crates/oxc_linter/fixtures/import/jsx/re-export.js @@ -1 +1 @@ -export * from './named.jsx' \ No newline at end of file +export * from './named.jsx' diff --git a/crates/oxc_linter/fixtures/import/named-trampoline.js b/crates/oxc_linter/fixtures/import/named-trampoline.js index 9db079cdd6373..cf49074380384 100644 --- a/crates/oxc_linter/fixtures/import/named-trampoline.js +++ b/crates/oxc_linter/fixtures/import/named-trampoline.js @@ -1,2 +1,2 @@ export bar from './bar' -export foo from './default-export' \ No newline at end of file +export foo from './default-export' diff --git a/crates/oxc_linter/fixtures/import/narcissist.js b/crates/oxc_linter/fixtures/import/narcissist.js index c75ba12c222ab..626482bdcb1f4 100644 --- a/crates/oxc_linter/fixtures/import/narcissist.js +++ b/crates/oxc_linter/fixtures/import/narcissist.js @@ -1,2 +1,2 @@ export const me = 'awesome' -export { me as soGreat } from './narcissist' \ No newline at end of file +export { me as soGreat } from './narcissist' diff --git a/crates/oxc_linter/fixtures/import/no-unused-modules/file-destructured-2.js b/crates/oxc_linter/fixtures/import/no-unused-modules/file-destructured-2.js index 06dc48a9dcc2d..675374b9705b2 100644 --- a/crates/oxc_linter/fixtures/import/no-unused-modules/file-destructured-2.js +++ b/crates/oxc_linter/fixtures/import/no-unused-modules/file-destructured-2.js @@ -1 +1 @@ -import { destructured } from './file-destructured-1'; \ No newline at end of file +import { destructured } from './file-destructured-1'; diff --git a/crates/oxc_linter/fixtures/import/no-unused-modules/file-p.js b/crates/oxc_linter/fixtures/import/no-unused-modules/file-p.js index 60f3fbae468a4..1e44affe53353 100644 --- a/crates/oxc_linter/fixtures/import/no-unused-modules/file-p.js +++ b/crates/oxc_linter/fixtures/import/no-unused-modules/file-p.js @@ -1 +1 @@ -import { h3 as h0 } from './file-h' \ No newline at end of file +import { h3 as h0 } from './file-h' diff --git a/crates/oxc_linter/fixtures/import/node_modules/es6-module/index.js b/crates/oxc_linter/fixtures/import/node_modules/es6-module/index.js index 7212fb6787a9f..21ec276fc7f82 100644 --- a/crates/oxc_linter/fixtures/import/node_modules/es6-module/index.js +++ b/crates/oxc_linter/fixtures/import/node_modules/es6-module/index.js @@ -1 +1 @@ -export const foo = 'bar' \ No newline at end of file +export const foo = 'bar' diff --git a/crates/oxc_linter/fixtures/import/node_modules/eslint-import-resolver-foo/index.js b/crates/oxc_linter/fixtures/import/node_modules/eslint-import-resolver-foo/index.js index d194dba0df618..93f6f473a90d9 100644 --- a/crates/oxc_linter/fixtures/import/node_modules/eslint-import-resolver-foo/index.js +++ b/crates/oxc_linter/fixtures/import/node_modules/eslint-import-resolver-foo/index.js @@ -1 +1 @@ -../../foo-bar-resolver-v2.js \ No newline at end of file +../../foo-bar-resolver-v2.js diff --git a/crates/oxc_linter/fixtures/import/oxc/indirect-export.js b/crates/oxc_linter/fixtures/import/oxc/indirect-export.js index 345b2d126dc01..075c9213b2ca9 100644 --- a/crates/oxc_linter/fixtures/import/oxc/indirect-export.js +++ b/crates/oxc_linter/fixtures/import/oxc/indirect-export.js @@ -1,2 +1,2 @@ import { a } from '../named-exports' -export { a } \ No newline at end of file +export { a } diff --git a/crates/oxc_linter/fixtures/import/test-module/index.js b/crates/oxc_linter/fixtures/import/test-module/index.js index 2d4eab380f442..04afba423c9c2 100644 --- a/crates/oxc_linter/fixtures/import/test-module/index.js +++ b/crates/oxc_linter/fixtures/import/test-module/index.js @@ -1 +1 @@ -export function someThing() {} \ No newline at end of file +export function someThing() {} diff --git a/crates/oxc_linter/fixtures/import/test.giffy b/crates/oxc_linter/fixtures/import/test.giffy index abadbacd0a11a..911143c4ebb47 100644 --- a/crates/oxc_linter/fixtures/import/test.giffy +++ b/crates/oxc_linter/fixtures/import/test.giffy @@ -1 +1 @@ -boo! \ No newline at end of file +boo! diff --git a/crates/oxc_linter/fixtures/import/unused-modules-reexport-crash/src/index.tsx b/crates/oxc_linter/fixtures/import/unused-modules-reexport-crash/src/index.tsx index 124b1745d205e..a5f847942abb6 100644 --- a/crates/oxc_linter/fixtures/import/unused-modules-reexport-crash/src/index.tsx +++ b/crates/oxc_linter/fixtures/import/unused-modules-reexport-crash/src/index.tsx @@ -1,3 +1,3 @@ import App from './App'; -export const x = App \ No newline at end of file +export const x = App diff --git a/crates/oxc_linter/fixtures/import/unused-modules-reexport-crash/src/magic/test.js b/crates/oxc_linter/fixtures/import/unused-modules-reexport-crash/src/magic/test.js index a6d74afd9bfad..9b2b3eea44ef0 100644 --- a/crates/oxc_linter/fixtures/import/unused-modules-reexport-crash/src/magic/test.js +++ b/crates/oxc_linter/fixtures/import/unused-modules-reexport-crash/src/magic/test.js @@ -4,4 +4,4 @@ export function hello() { export function unused() { console.log('im unused!!'); -} \ No newline at end of file +} diff --git a/crates/oxc_linter/fixtures/import/webpack.empty.config.js b/crates/oxc_linter/fixtures/import/webpack.empty.config.js index 7c6d6c73d3d5a..4ba52ba2c8df6 100644 --- a/crates/oxc_linter/fixtures/import/webpack.empty.config.js +++ b/crates/oxc_linter/fixtures/import/webpack.empty.config.js @@ -1 +1 @@ -module.exports = {} \ No newline at end of file +module.exports = {} diff --git a/crates/oxc_semantic/tests/fixtures/oxc/jsx/element-name.jsx b/crates/oxc_semantic/tests/fixtures/oxc/jsx/element-name.jsx index 425799304166e..b1ab99780b967 100644 --- a/crates/oxc_semantic/tests/fixtures/oxc/jsx/element-name.jsx +++ b/crates/oxc_semantic/tests/fixtures/oxc/jsx/element-name.jsx @@ -1,2 +1,2 @@ let Component = () =>
; - \ No newline at end of file + diff --git a/crates/oxc_semantic/tests/fixtures/oxc/jsx/member-expression.jsx b/crates/oxc_semantic/tests/fixtures/oxc/jsx/member-expression.jsx index 1fcb119f0ce98..bd8346f6e98e7 100644 --- a/crates/oxc_semantic/tests/fixtures/oxc/jsx/member-expression.jsx +++ b/crates/oxc_semantic/tests/fixtures/oxc/jsx/member-expression.jsx @@ -1,3 +1,3 @@ let A = {}; -; \ No newline at end of file +; diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.ts b/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.ts index 424ff3dfb9161..a78dc78c8d9d6 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.ts +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.ts @@ -5,4 +5,4 @@ try { } const unresolved = e; -const dontReference2 = a; \ No newline at end of file +const dontReference2 = a; diff --git a/tasks/coverage/misc/fail/oxc-1942-1.ts b/tasks/coverage/misc/fail/oxc-1942-1.ts index 9924545d05f7e..a16f44686bd1d 100644 --- a/tasks/coverage/misc/fail/oxc-1942-1.ts +++ b/tasks/coverage/misc/fail/oxc-1942-1.ts @@ -2,4 +2,4 @@ class Foo { get x: () => { return 5; } -} \ No newline at end of file +} diff --git a/tasks/coverage/misc/fail/oxc-1942-2.ts b/tasks/coverage/misc/fail/oxc-1942-2.ts index f02bec397b81d..c0bbba2a4f607 100644 --- a/tasks/coverage/misc/fail/oxc-1942-2.ts +++ b/tasks/coverage/misc/fail/oxc-1942-2.ts @@ -1,3 +1,3 @@ class Foo { set x: (v: number) => {} -} \ No newline at end of file +} diff --git a/tasks/coverage/misc/fail/oxc-2394.ts b/tasks/coverage/misc/fail/oxc-2394.ts index 2ec2ad9757d28..5dad81f5f032a 100644 --- a/tasks/coverage/misc/fail/oxc-2394.ts +++ b/tasks/coverage/misc/fail/oxc-2394.ts @@ -59,4 +59,4 @@ export type LocalInterface = & import("pkg", { with: {} }).ImportInterface; export const a = (null as any as import("pkg", { with: {} }).RequireInterface); -export const b = (null as any as import("pkg", { with: {} }).ImportInterface); \ No newline at end of file +export const b = (null as any as import("pkg", { with: {} }).ImportInterface); diff --git a/tasks/coverage/misc/fail/oxc-4212-1.ts b/tasks/coverage/misc/fail/oxc-4212-1.ts index 410c8083c5a89..6ff818c29f88e 100644 --- a/tasks/coverage/misc/fail/oxc-4212-1.ts +++ b/tasks/coverage/misc/fail/oxc-4212-1.ts @@ -1 +1 @@ -class a { const enum b(); } \ No newline at end of file +class a { const enum b(); } diff --git a/tasks/coverage/misc/fail/oxc-5036.js b/tasks/coverage/misc/fail/oxc-5036.js index 483d9ad196bc9..6a8cce709f765 100644 --- a/tasks/coverage/misc/fail/oxc-5036.js +++ b/tasks/coverage/misc/fail/oxc-5036.js @@ -1,3 +1,3 @@ Test: { Test: console.log('Test'); -} \ No newline at end of file +} diff --git a/tasks/coverage/misc/pass/oxc-2394.ts b/tasks/coverage/misc/pass/oxc-2394.ts index 5dd1fce22785f..f3ab5bd83d08a 100644 --- a/tasks/coverage/misc/pass/oxc-2394.ts +++ b/tasks/coverage/misc/pass/oxc-2394.ts @@ -1 +1 @@ -type A = import("foo", {with: {type: "json"}}) \ No newline at end of file +type A = import("foo", {with: {type: "json"}}) diff --git a/tasks/coverage/misc/pass/oxc-3443.tsx b/tasks/coverage/misc/pass/oxc-3443.tsx index 89e2d84a2005a..2ff50242a2d4d 100644 --- a/tasks/coverage/misc/pass/oxc-3443.tsx +++ b/tasks/coverage/misc/pass/oxc-3443.tsx @@ -1,2 +1,2 @@ const A = () => {}; -const B = () => {}; \ No newline at end of file +const B = () => {}; diff --git a/tasks/coverage/src/runtime/runtime.js b/tasks/coverage/src/runtime/runtime.js index ae858ed69e64a..e8cf2126119f5 100644 --- a/tasks/coverage/src/runtime/runtime.js +++ b/tasks/coverage/src/runtime/runtime.js @@ -142,4 +142,4 @@ process.on('unhandledRejection', () => { // Don't exit when a test does this }) -server.listen(32055, () => {}); \ No newline at end of file +server.listen(32055, () => {});