-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
04e4192
commit f32598d
Showing
41 changed files
with
1,622 additions
and
1,830 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import globals from 'globals'; | ||
import js from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import stylistic from '@stylistic/eslint-plugin'; | ||
|
||
export default tseslint.config( | ||
js.configs.recommended, | ||
...tseslint.configs.recommended, | ||
stylistic.configs.customize({ | ||
indent: 2, | ||
semi: true, | ||
arrowParens: false, | ||
commaDangle: 'never', | ||
quotes: 'single', | ||
quoteProps: 'consistent', | ||
blockSpacing: true, | ||
braceStyle: '1tbs' | ||
}), | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
...globals.browser, | ||
ReadableStream: false, | ||
WritableStream: false, | ||
TransformStream: false, | ||
ByteLengthQueuingStrategy: false, | ||
CountQueuingStrategy: false, | ||
AbortSignal: false, | ||
DEBUG: false, | ||
GCController: false, | ||
gc: false, | ||
globalThis: false | ||
}, | ||
|
||
ecmaVersion: 2018, | ||
sourceType: 'module' | ||
}, | ||
|
||
rules: { | ||
'no-self-compare': 'error', | ||
|
||
'prefer-const': ['error', { | ||
ignoreReadBeforeAssign: true | ||
}], | ||
|
||
'@stylistic/function-paren-newline': ['error', 'multiline'], | ||
|
||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-redeclare': 'error', | ||
'@typescript-eslint/no-shadow': 'error', | ||
'@typescript-eslint/no-useless-constructor': 'error' | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.