Skip to content

Commit d15d183

Browse files
committed
chore: reduce severity
1 parent 8d0ab54 commit d15d183

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"test:e2e:match": "cd packages/astro && pnpm playwright install chromium firefox && pnpm run test:e2e:match",
3535
"test:e2e:hosts": "turbo run test:hosted",
3636
"benchmark": "astro-benchmark",
37-
"lint": "biome lint && eslint . --report-unused-disable-directives",
38-
"lint:ci": "biome ci --formatter-enabled=false --organize-imports-enabled=false --reporter=github && eslint . --report-unused-disable-directives",
37+
"lint": "biome lint && eslint . --report-unused-disable-directives-severity=warn",
38+
"lint:ci": "biome ci --formatter-enabled=false --organize-imports-enabled=false --reporter=github && eslint . --report-unused-disable-directives-severity=warn",
3939
"lint:fix": "biome lint --write --unsafe",
4040
"publint": "pnpm -r --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --no-bail exec publint",
4141
"version": "changeset version && node ./scripts/deps/update-example-versions.js && pnpm install --no-frozen-lockfile && pnpm run format",

packages/astro/src/cli/docs/open.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const getPlatformSpecificCommand = (): [string] | [string, string[]] => {
99
const isGitPod = Boolean(process.env.GITPOD_REPO_ROOT);
1010
const platform = isGitPod ? 'gitpod' : process.platform;
1111

12+
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
1213
switch (platform) {
1314
case 'android':
1415
case 'linux':

packages/astro/src/preferences/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ function getGlobalPreferenceDir() {
143143
const { XDG_CONFIG_HOME = path.join(homedir, '.config') } = process.env;
144144
return path.join(XDG_CONFIG_HOME, name);
145145
};
146+
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
146147
switch (process.platform) {
147148
case 'darwin':
148149
return macos();

packages/telemetry/src/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function getConfigDir(name: string) {
2121
const { XDG_CONFIG_HOME = path.join(homedir, '.config') } = process.env;
2222
return path.join(XDG_CONFIG_HOME, name);
2323
};
24+
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
2425
switch (process.platform) {
2526
case 'darwin':
2627
return macos();

0 commit comments

Comments
 (0)