Skip to content

Commit 5a6385b

Browse files
committed
Replace ESLint and Prettier with Oxlint, Biome, and Oxfmt
1 parent c7fa963 commit 5a6385b

72 files changed

Lines changed: 1126 additions & 711 deletions

File tree

Some content is hidden

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

.eslintrc.cjs

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

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Build and Test
44

55
```bash
6-
pnpm run format:check # Prettier formatting check
7-
pnpm run lint # ESLint
6+
pnpm run format:check # Oxfmt formatting check
7+
pnpm run lint # Oxlint + Biome linting
88
pnpm run verify:local # Jest unit/integration tests (54 suites)
99
pnpm run test:browser # Playwright browser smoke tests (app.html, generator.html)
1010
```

.github/dependabot.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ updates:
1515
semver-minor-days: 7
1616
semver-patch-days: 3
1717
groups:
18-
eslint:
18+
linting:
1919
patterns:
20-
- "eslint*"
20+
- "oxlint"
21+
- "oxfmt"
22+
- "@biomejs/*"
2123
types:
2224
patterns:
2325
- "@types/*"

.oxfmtrc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"printWidth": 120,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"sortPackageJson": false,
6+
"ignorePatterns": [
7+
"build/**",
8+
"coverage/**",
9+
"docs/**",
10+
"docs-src/**",
11+
"node_modules/**",
12+
"playwright-specs/**",
13+
"storybook-static/**",
14+
"test-results/**",
15+
"testenv/**",
16+
"apps/api/docs/**",
17+
"apps/web/dist/**",
18+
"apps/web/libs/**",
19+
"packages/core/js/libs/**"
20+
]
21+
}

.oxlintrc.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"builtin": true,
5+
"jest": true,
6+
"node": true
7+
},
8+
"ignorePatterns": [
9+
"build/**",
10+
"coverage/**",
11+
"docs/**",
12+
"docs-src/**",
13+
"node_modules/**",
14+
"storybook-static/**",
15+
"test-results/**",
16+
"testenv/**",
17+
"apps/web/dist/**",
18+
"apps/web/libs/**",
19+
"packages/core/js/libs/**"
20+
],
21+
"globals": {
22+
"agGrid": "readonly",
23+
"dom": "readonly",
24+
"faker": "readonly",
25+
"headerAddLeftButton": "writable",
26+
"onAddLeftButtonClick": "readonly",
27+
"onAddLeftButtonListener": "writable",
28+
"Papa": "readonly",
29+
"RandExp": "readonly",
30+
"Tabulator": "readonly"
31+
},
32+
"rules": {}
33+
}

.prettierignore

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

.prettierrc.json

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

.vscode/launch.json

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"type": "pwa-node",
9-
"request": "launch",
10-
"name": "Launch Program",
11-
"skipFiles": [
12-
"<node_internals>/**"
13-
],
14-
"program": "${workspaceFolder}/index.html"
15-
},
16-
{
17-
"name": "Debug Jest Tests",
18-
"type": "node",
19-
"request": "launch",
20-
"runtimeArgs": [
21-
"--inspect-brk",
22-
"${workspaceRoot}/node_modules/.bin/jest",
23-
"--runInBand"
24-
],
25-
"console": "integratedTerminal",
26-
"internalConsoleOptions": "neverOpen",
27-
"port": 9229
28-
}
29-
]
30-
}
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "pwa-node",
9+
"request": "launch",
10+
"name": "Launch Program",
11+
"skipFiles": ["<node_internals>/**"],
12+
"program": "${workspaceFolder}/index.html"
13+
},
14+
{
15+
"name": "Debug Jest Tests",
16+
"type": "node",
17+
"request": "launch",
18+
"runtimeArgs": ["--inspect-brk", "${workspaceRoot}/node_modules/.bin/jest", "--runInBand"],
19+
"console": "integratedTerminal",
20+
"internalConsoleOptions": "neverOpen",
21+
"port": 9229
22+
}
23+
]
24+
}

apps/cli/src/run-cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function formatCanonicalErrors(errors = []) {
1919
}
2020
const code = String(error.code || 'error');
2121
const message = String(error.message || '');
22-
const column = error.column != null ? ` column=${error.column}` : '';
22+
const column = error.column !== null && error.column !== undefined ? ` column=${error.column}` : '';
2323
const line = Number.isInteger(error.line) ? ` line=${error.line}` : '';
2424
return `[${code}] ${message}${column}${line}`.trim();
2525
});

apps/web/src/stories/export-preview-story-harness.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ class StoryMemoryGrid {
166166
}
167167

168168
notifyGridChanged() {
169-
this.changeCallbacks.forEach((callback) => callback());
169+
this.changeCallbacks.forEach((callback) => {
170+
callback();
171+
});
170172
}
171173
}
172174

0 commit comments

Comments
 (0)