-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from pandell/eslint-upgrade
@pandell/eslint-config: eslint 9.21, typescript-eslint 8.25, other NPM updates as of 2025-02-27
- Loading branch information
Showing
13 changed files
with
410 additions
and
412 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
/*.js | ||
/*.json.md | ||
/*.tsbuildinfo | ||
/tsconfig.json |
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
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 |
---|---|---|
@@ -1,13 +1,37 @@ | ||
# Notes for "package.json" | ||
# Notes for "eslint-config/package.json" | ||
|
||
NodeJS/NPM don't allow comments in `package.json`, so we keep | ||
notes and comments in this markdown file. | ||
|
||
- [Properties](#properties) | ||
- [Dependencies](#dependencies) | ||
- [Resolutions](#resolutions) | ||
|
||
## Properties | ||
|
||
### "module" | ||
|
||
According to Node [documentation](https://nodejs.org/docs/latest-v22.x/api/packages.html#package-entry-points), | ||
`"module"` should not be needed when `package.json` defines an `"exports"` property. | ||
However, as of 2025-02-26 the following reports an `import-x` error: | ||
|
||
```js | ||
// eslint.config.mjs | ||
|
||
// @ts-check | ||
|
||
import { createPandellEsLintConfig } from "@pandell/eslint-config"; | ||
// error: import-x/no-unresolved: Unable to resolve path to module '@pandell/eslint-config' | ||
``` | ||
|
||
No such error is reported when `@pandell/eslint-config/package.json` contains `"module"` | ||
|
||
Remove this property when `import-x` no longer reports this resolution error. | ||
|
||
## Dependencies | ||
|
||
- `eslint-plugin-testing-library` | ||
2024-06-14, milang: See note 1 in [README.md](README.md). Optional peer dependency | ||
should be deleted and `eslint-plugin-testing-library` should be converted to regular | ||
`dependency` when it adds support for ESLint 9 (version 7?). | ||
All dependencies are up-to-date at this time. | ||
|
||
## Resolutions | ||
|
||
No resolutions are needed at this time. |
6 changes: 4 additions & 2 deletions
6
packages/eslint-config/typings/react.d.ts → ...config/src/eslint-plugin-react-hooks.d.ts
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
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"extends": "@pandell/typescript-config", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"module": "NodeNext", | ||
"moduleResolution": "nodenext", | ||
"outDir": "dist", | ||
"rootDir": "src", | ||
"tsBuildInfoFile": "../../node_modules/.cache/typescript/eslint-config.tsbuildinfo" | ||
}, | ||
"include": ["src", "typings"] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.