Skip to content

Commit 01412a9

Browse files
committed
Migrate ESLint config to eslint.config.mjs
- Removed legacy eslint config - Bumped patchright to 1.60.0 - Bumped a bunch of other packages to latest stable - Small tsconfig cleanup
1 parent da746fa commit 01412a9

5 files changed

Lines changed: 571 additions & 771 deletions

File tree

.eslintrc.js

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

eslint.config.mjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import js from '@eslint/js'
2+
import tseslint from 'typescript-eslint'
3+
import prettier from 'eslint-config-prettier'
4+
import globals from 'globals'
5+
6+
export default tseslint.config(
7+
{
8+
ignores: ['dist/**', 'node_modules/**', 'diagnostics/**', 'sessions/**', 'scripts/**']
9+
},
10+
js.configs.recommended,
11+
...tseslint.configs.recommended,
12+
{
13+
languageOptions: {
14+
globals: {
15+
...globals.node,
16+
...globals.es2021
17+
},
18+
ecmaVersion: 2021,
19+
sourceType: 'module'
20+
},
21+
rules: {
22+
'@typescript-eslint/no-explicit-any': ['warn', { fixToUnknown: false }],
23+
'prefer-arrow-callback': 'error',
24+
'no-empty': 'off'
25+
}
26+
},
27+
// Must come last: disables ESLint rules that conflict with Prettier formatting
28+
prettier
29+
)

0 commit comments

Comments
 (0)