Skip to content

Commit f32598d

Browse files
Update dependencies and upgrade to ESLint 9 (#154)
* Update dependencies * Fix API extractor * Upgrade to ESLint 9 * Simplify ESLint rules * Fix lint issues * Update Docker image for Playwright
1 parent 04e4192 commit f32598d

Some content is hidden

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

41 files changed

+1622
-1830
lines changed

.eslintrc.json

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

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
name: ${{ matrix.browser }}
3333
runs-on: ubuntu-latest
3434
container:
35-
image: mcr.microsoft.com/playwright:v1.42.0-jammy
35+
image: mcr.microsoft.com/playwright:v1.48.0-noble
3636
strategy:
3737
fail-fast: false
3838
matrix:

eslint.config.mjs

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import globals from 'globals';
2+
import js from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import stylistic from '@stylistic/eslint-plugin';
5+
6+
export default tseslint.config(
7+
js.configs.recommended,
8+
...tseslint.configs.recommended,
9+
stylistic.configs.customize({
10+
indent: 2,
11+
semi: true,
12+
arrowParens: false,
13+
commaDangle: 'never',
14+
quotes: 'single',
15+
quoteProps: 'consistent',
16+
blockSpacing: true,
17+
braceStyle: '1tbs'
18+
}),
19+
{
20+
languageOptions: {
21+
globals: {
22+
...globals.node,
23+
...globals.browser,
24+
ReadableStream: false,
25+
WritableStream: false,
26+
TransformStream: false,
27+
ByteLengthQueuingStrategy: false,
28+
CountQueuingStrategy: false,
29+
AbortSignal: false,
30+
DEBUG: false,
31+
GCController: false,
32+
gc: false,
33+
globalThis: false
34+
},
35+
36+
ecmaVersion: 2018,
37+
sourceType: 'module'
38+
},
39+
40+
rules: {
41+
'no-self-compare': 'error',
42+
43+
'prefer-const': ['error', {
44+
ignoreReadBeforeAssign: true
45+
}],
46+
47+
'@stylistic/function-paren-newline': ['error', 'multiline'],
48+
49+
'@typescript-eslint/no-explicit-any': 'off',
50+
'@typescript-eslint/no-non-null-assertion': 'off',
51+
'@typescript-eslint/no-redeclare': 'error',
52+
'@typescript-eslint/no-shadow': 'error',
53+
'@typescript-eslint/no-useless-constructor': 'error'
54+
}
55+
}
56+
);

etc/web-streams-polyfill.api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
55
```ts
66

7-
/// <reference lib="es2018.asynciterable" />
8-
97
// @public
108
export interface AbortSignal {
119
readonly aborted: boolean;

0 commit comments

Comments
 (0)