Skip to content

Commit

Permalink
build: migrate from TSLint to ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
einarsi committed Nov 14, 2024
1 parent ee88304 commit 5faf379
Show file tree
Hide file tree
Showing 6 changed files with 823 additions and 1,012 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

18 changes: 0 additions & 18 deletions .eslintrc.json

This file was deleted.

13 changes: 12 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": ["$tsc"]
"problemMatcher": [
"$tsc"
]
},
{
"type": "npm",
Expand All @@ -26,6 +28,15 @@
"kind": "build",
"isDefault": true
}
},
{
"type": "npm",
"script": "lint",
"problemMatcher": [
"$eslint-stylish"
],
"label": "npm: lint",
"detail": "eslint -c eslint.config.mjs ./client/src ./server/src"
}
]
}
17 changes: 17 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
ignores: [
"**/out",
"**/dist",
"**/*.d.ts",
".vscode-test/**/*"
]
}
);
Loading

0 comments on commit 5faf379

Please sign in to comment.