Skip to content

Commit d9dabad

Browse files
committed
Replace Galex ESLint config
1 parent 3d1d0c1 commit d9dabad

File tree

143 files changed

+2972
-2070
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+2972
-2070
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 17 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ dist*/
1414
Thumbs.db
1515
*.log
1616
*.tsbuildinfo
17+
.eslintcache

apps/demo/.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

apps/demo/.eslintrc.cjs

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/demo/eslint.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { createConfig, detectOpts } from '../../eslint.config.base.js';
2+
3+
const opts = detectOpts(import.meta.dirname);
4+
5+
const config = [
6+
...createConfig(opts),
7+
{
8+
name: 'h5web/demo/ignores',
9+
ignores: ['dist/'],
10+
},
11+
];
12+
13+
export default config;

apps/demo/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "vite",
99
"build": "vite build",
1010
"serve": "vite preview --port 5173",
11-
"lint:eslint": "eslint \"**/*.{js,cjs,ts,tsx}\" --max-warnings=0",
11+
"lint:eslint": "eslint --max-warnings=0",
1212
"lint:tsc": "tsc",
1313
"analyze": "pnpm dlx source-map-explorer dist/assets/*.js --no-border-checks"
1414
},
@@ -30,8 +30,7 @@
3030
"@types/react": "^18.3.3",
3131
"@types/react-dom": "^18.3.0",
3232
"@vitejs/plugin-react-swc": "3.7.0",
33-
"eslint": "8.57.0",
34-
"eslint-config-galex": "4.5.2",
33+
"eslint": "9.16.0",
3534
"typescript": "5.4.5",
3635
"vite": "5.3.5",
3736
"vite-css-modules": "1.4.2",

apps/demo/src/DemoApp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import HsdsApp from './HsdsApp';
77
import MockApp from './MockApp';
88

99
// Split H5Wasm demo into its own bundle, and load it only when the demo is first visited
10-
const H5WasmApp = lazy(() => import('./h5wasm/H5WasmApp'));
10+
const H5WasmApp = lazy(async () => import('./h5wasm/H5WasmApp'));
1111

1212
const query = new URLSearchParams(document.location.search);
13-
// @ts-expect-error
14-
window.H5WEB_EXPERIMENTAL = query.has('experimental');
13+
// @ts-expect-error - Untyped global flag
14+
globalThis.H5WEB_EXPERIMENTAL = query.has('experimental');
1515

1616
function DemoApp() {
1717
return (

apps/demo/src/vite-env.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable spaced-comment */
2-
31
/// <reference types="vite/client" />
42

53
// HDF5 compression plugins

apps/storybook/.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)