Skip to content

Commit

Permalink
test: add trailing line breaks to conformance fixtures (#5541)
Browse files Browse the repository at this point in the history
Continuation of #5537. Ensure all conformance fixture files have a trailing line break.
  • Loading branch information
overlookmotel committed Sep 6, 2024
1 parent d8b29e7 commit dc92489
Show file tree
Hide file tree
Showing 57 changed files with 57 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const B = () => { return B };

const C = function () {}

const D = () => `${''}`;
const D = () => `${''}`;
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const F = {
b: `b`
},
array: [`a`, , { b: `\n` }],
} as const
} as const
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ class AsyncClassBad {
async method() {
return 42;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ declare global {
}
}

export {}
export {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export const bar: (this: ThisType2) => void = function() {}

import { type InferType1, type InferType2 } from 'infer';

export type F<X extends InferType1> = X extends infer U extends InferType2 ? U : never
export type F<X extends InferType1> = X extends infer U extends InferType2 ? U : never
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type A = string;
export function a(): A {
return ""
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import * as a from "mod";
import * as a from "mod";
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ namespace qux {

qux.woo = 42;

export default qux;
export default qux;
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ function a(a: any): any {}


function b(a: number): number {};
function b(a: string): string {};
function b(a: string): string {};
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export function fooBad([a, b] = [1, 2]): number {

export const fooBad2 = ({a, b} = { a: 1, b: 2 }): number => {
return 2;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ class GeneratorClassBad {
yield 50;
return 42;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ const unaryB = -1_2n;
// UnaryExpression
const unaryC = +"str"
const unaryD = typeof "str"
const unaryE = {E: -"str"} as const
const unaryE = {E: -"str"} as const
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ function qux() {
function quux() {
return `${''}`
}
// Inferred type is string
// Inferred type is string
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export let GOOD = `useCssV${v}ars`

export const BAD = `useCssV${v}ars`

export let BAD2 = `useCssV${v}ars` as const
export let BAD2 = `useCssV${v}ars` as const
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import {T} from 'bar'

export interface I {
prop: {[key in K]: T}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
export const { f, g } = { f: 5, g: 6 };
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ class ClsBad {
}
set a(v) {
}
}
}
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/constants/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const FOO = 'FOO'
export const FOO = 'FOO'
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/deep-deprecated.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import * as deepDep from './deprecated'
export { deepDep }
export { deepDep }
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/deep-es7/d.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const e = "e"
export const e = "e"
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/deep/a.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import * as b from './b'
export { b }
export { b }
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/deep/c.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import * as d from './d'
export { d }
export { d }
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/deep/d.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const e = "e"
export const e = "e"
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/deep/default.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import * as b from './b'
export default b
export default b
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/empty-folder/anchor.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
no js here!
no js here!
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/issue-195/Users.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default "Users"
export default "Users"
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// bar.js
export { default as foo } from './foo'
export { default as foo } from './foo'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// foo.js
module.exports = { foo: 'foo' }
module.exports = { foo: 'foo' }
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/issue210.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
exports.parserOptions = {
sourceType: 'module',
}
}
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/issue210.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { test } from './issue210.js'
export { test } from './issue210.js'
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/jsx/bar/baz.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export function Baz2() {
<span>Baz2</span>
</div>
);
}
}
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/jsx/bar/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./baz.jsx";
export { Qux1, Qux2 } from "./qux.jsx";
export { Qux1, Qux2 } from "./qux.jsx";
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/jsx/bar/qux.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export function Qux2() {
<p>Qux1</p>
</div>
);;
}
}
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/jsx/re-export.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './named.jsx'
export * from './named.jsx'
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/named-trampoline.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export bar from './bar'
export foo from './default-export'
export foo from './default-export'
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/narcissist.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const me = 'awesome'
export { me as soGreat } from './narcissist'
export { me as soGreat } from './narcissist'
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import { destructured } from './file-destructured-1';
import { destructured } from './file-destructured-1';
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import { h3 as h0 } from './file-h'
import { h3 as h0 } from './file-h'

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/oxc/indirect-export.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import { a } from '../named-exports'
export { a }
export { a }
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/test-module/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export function someThing() {}
export function someThing() {}
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/test.giffy
Original file line number Diff line number Diff line change
@@ -1 +1 @@
boo!
boo!
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import App from './App';

export const x = App
export const x = App
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export function hello() {

export function unused() {
console.log('im unused!!');
}
}
2 changes: 1 addition & 1 deletion crates/oxc_linter/fixtures/import/webpack.empty.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = {}
module.exports = {}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
let Component = () => <div></div>;
<Component></Component>
<Component></Component>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
let A = {};

<A.B.C></A.B.C>;
<A.B.C></A.B.C>;
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ try {
}

const unresolved = e;
const dontReference2 = a;
const dontReference2 = a;
2 changes: 1 addition & 1 deletion tasks/coverage/misc/fail/oxc-1942-1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ class Foo {
get x: () => {
return 5;
}
}
}
2 changes: 1 addition & 1 deletion tasks/coverage/misc/fail/oxc-1942-2.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class Foo {
set x: (v: number) => {}
}
}
2 changes: 1 addition & 1 deletion tasks/coverage/misc/fail/oxc-2394.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
export const b = (null as any as import("pkg", { with: {} }).ImportInterface);
2 changes: 1 addition & 1 deletion tasks/coverage/misc/fail/oxc-4212-1.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
class a { const enum b(); }
class a { const enum b(); }
2 changes: 1 addition & 1 deletion tasks/coverage/misc/fail/oxc-5036.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Test: {
Test: console.log('Test');
}
}
2 changes: 1 addition & 1 deletion tasks/coverage/misc/pass/oxc-2394.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
type A = import("foo", {with: {type: "json"}})
type A = import("foo", {with: {type: "json"}})
2 changes: 1 addition & 1 deletion tasks/coverage/misc/pass/oxc-3443.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const A = <const T extends F>() => {};
const B = <const T extends keyof F>() => {};
const B = <const T extends keyof F>() => {};
2 changes: 1 addition & 1 deletion tasks/coverage/src/runtime/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ process.on('unhandledRejection', () => {
// Don't exit when a test does this
})

server.listen(32055, () => {});
server.listen(32055, () => {});

0 comments on commit dc92489

Please sign in to comment.