Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Feb 6, 2025
1 parent ff03099 commit 8d0ab54
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 21 deletions.
1 change: 0 additions & 1 deletion packages/astro/src/cli/docs/open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const getPlatformSpecificCommand = (): [string] | [string, string[]] => {
const isGitPod = Boolean(process.env.GITPOD_REPO_ROOT);
const platform = isGitPod ? 'gitpod' : process.platform;

// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
switch (platform) {
case 'android':
case 'linux':
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/preferences/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ function getGlobalPreferenceDir() {
const { XDG_CONFIG_HOME = path.join(homedir, '.config') } = process.env;
return path.join(XDG_CONFIG_HOME, name);
};
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
switch (process.platform) {
case 'darwin':
return macos();
Expand Down
4 changes: 2 additions & 2 deletions packages/integrations/netlify/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ export default function netlifyIntegration(
plugins: [
{
name: 'allowNodePrefixedImports',
setup(build) {
build.onResolve({ filter: /^node:.*$/ }, (args) => ({
setup(puglinBuild) {
puglinBuild.onResolve({ filter: /^node:.*$/ }, (args) => ({
path: args.path,
external: true,
}));
Expand Down
4 changes: 2 additions & 2 deletions packages/integrations/node/test/node-middleware.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('behavior from middleware, standalone', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -72,7 +72,7 @@ describe('behavior from middleware, middleware', () => {
after(async () => {
server.close();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down
14 changes: 7 additions & 7 deletions packages/integrations/node/test/prerender.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Prerendering', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -106,7 +106,7 @@ describe('Prerendering', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -179,7 +179,7 @@ describe('Prerendering', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -220,7 +220,7 @@ describe('Prerendering', () => {

after(async () => {
await devServer.stop();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -271,7 +271,7 @@ describe('Hybrid rendering', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -341,7 +341,7 @@ describe('Hybrid rendering', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -403,7 +403,7 @@ describe('Hybrid rendering', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down
1 change: 0 additions & 1 deletion packages/integrations/node/test/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export function toPromise(res) {
const write = res.write;
res.write = function (data, encoding) {
if (ArrayBuffer.isView(data) && !Buffer.isBuffer(data)) {
// biome-ignore lint/style/noParameterAssign: <explanation>
data = Buffer.from(data.buffer);
}
return write.call(this, data, encoding);
Expand Down
12 changes: 6 additions & 6 deletions packages/integrations/node/test/trailing-slash.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('Trailing slash', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -104,7 +104,7 @@ describe('Trailing slash', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -175,7 +175,7 @@ describe('Trailing slash', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -236,7 +236,7 @@ describe('Trailing slash', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -300,7 +300,7 @@ describe('Trailing slash', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down Expand Up @@ -379,7 +379,7 @@ describe('Trailing slash', () => {
after(async () => {
await server.stop();
await fixture.clean();
// biome-ignore lint/performance/noDelete: <explanation>

delete process.env.PRERENDER;
});

Expand Down
1 change: 0 additions & 1 deletion packages/telemetry/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function getConfigDir(name: string) {
const { XDG_CONFIG_HOME = path.join(homedir, '.config') } = process.env;
return path.join(XDG_CONFIG_HOME, name);
};
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
switch (process.platform) {
case 'darwin':
return macos();
Expand Down

0 comments on commit 8d0ab54

Please sign in to comment.