Skip to content

Commit 09e9ea0

Browse files
committed
refactor: remove ESLint configuration and update linting scripts
1 parent 9af0bd9 commit 09e9ea0

8 files changed

Lines changed: 28 additions & 2832 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ jobs:
1010
lint:
1111
name: Lint and Validate
1212
runs-on: ubuntu-latest
13-
13+
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
1717

1818
- name: Setup Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: '22'
22-
cache: 'npm'
21+
node-version: "22"
22+
cache: "npm"
2323

2424
- name: Install dependencies
2525
run: npm ci
2626

27-
- name: Run ESLint and TypeScript checks
27+
- name: Run oxlint and TypeScript checks
2828
run: npm run lint
2929

3030
- name: Validate Docker Compose file
@@ -39,7 +39,7 @@ jobs:
3939
docker-validation:
4040
name: Docker Validation
4141
runs-on: ubuntu-latest
42-
42+
4343
steps:
4444
- name: Checkout code
4545
uses: actions/checkout@v4

‎.oxlintrc.json‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"ignorePatterns": [
3+
"**/dist/**",
4+
"**/report/**",
5+
"**/assets/**",
6+
"**/temp/**",
7+
"**/public/**",
8+
"**/cache/**",
9+
"**/*.snap",
10+
"**/node_modules/**"
11+
],
12+
"rules": {
13+
"no-debugger": "error",
14+
"no-console": "off",
15+
"no-empty": "off"
16+
}
17+
}

‎eslint.config.js‎

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

‎lib/document-converter.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ export class X2TConverter {
161161
} else {
162162
console.error('Conversion failed. Parameters XML:', paramsContent);
163163
}
164-
} catch (_e) {
164+
} catch (e) {
165+
console.error('Conversion failed. Parameters XML:', e);
165166
// Ignore if we can't read the params file
166167
}
167168
throw new Error(`Conversion failed with code: ${result}`);

‎package.json‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"preview": "vite preview",
1111
"tsc": "tsc --noEmit",
1212
"format": "prettier --write .",
13-
"lint:ts": "eslint --cache . && tsc --noEmit",
13+
"lint:ts": "oxlint && tsc --noEmit",
1414
"lint:docker": "docker compose -f docker-compose.yaml config --quiet",
1515
"lint": "npm run lint:ts && npm run lint:docker"
1616
},
@@ -21,20 +21,13 @@
2121
"author": "",
2222
"license": "AGPL-3.0",
2323
"devDependencies": {
24-
"@eslint/js": "^9.39.1",
24+
"oxlint": "^1.0.0",
2525
"@tailwindcss/postcss": "^4.1.17",
2626
"@types/node": "^24.10.1",
27-
"@typescript-eslint/parser": "^8.46.4",
28-
"eslint": "^9.39.1",
29-
"eslint-plugin-import-x": "^4.16.1",
30-
"eslint-plugin-n": "^17.23.1",
31-
"eslint-plugin-regexp": "^2.10.0",
32-
"globals": "^16.5.0",
3327
"postcss": "^8.5.6",
3428
"prettier": "^3.6.2",
3529
"tailwindcss": "^4.1.17",
3630
"typescript": "^5.9.3",
37-
"typescript-eslint": "^8.46.4",
3831
"vite": "^7.2.2"
3932
},
4033
"dependencies": {

0 commit comments

Comments
 (0)