-
Notifications
You must be signed in to change notification settings - Fork 0
Update dependencies #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update dependencies #110
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import { defineConfig, globalIgnores } from 'eslint/config'; | ||
|
Check failure on line 1 in eslint.config.mjs
|
||
| import globals from 'globals'; | ||
| import ConfigXo from 'eslint-config-xo'; | ||
| import ConfigJest from 'eslint-plugin-jest'; | ||
|
|
||
| export default defineConfig([ | ||
| { languageOptions: { globals: { ...globals.node } } }, | ||
|
Check failure on line 7 in eslint.config.mjs
|
||
| ...ConfigXo({ | ||
| browser: true, | ||
| semicolon: true, | ||
| space: 2, | ||
| }), | ||
| { | ||
| files: ['**/*.test.*'], | ||
| languageOptions: { globals: { ...globals.jest } }, | ||
| ...ConfigJest.configs['flat/recommended'], | ||
| ...ConfigJest.configs['flat/style'], | ||
| }, | ||
| globalIgnores([ | ||
| 'coverage/', | ||
| 'example/', | ||
| 'tests/', | ||
| 'package-lock.json', | ||
| ]), | ||
|
Comment on lines
+19
to
+24
|
||
| ]); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Jest ESLint override only targets files matching "**/.test.", but this repo's Jest tests are ".spec.ts" and "jest..ts" (e.g. src/useWebStorage.spec.ts). As-is, Jest globals/rules won’t apply to existing tests and lint will likely fail or miss intended test-specific rules. Update the "files" globs to include the project’s actual test naming patterns.