-
Notifications
You must be signed in to change notification settings - Fork 192
Update Dependencies #533
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
Open
cjbarth
wants to merge
10
commits into
node-saml:master
Choose a base branch
from
cjbarth:deps
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update Dependencies #533
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b845521
Some minor dependency updates
cjbarth 29880ee
Update typescript
cjbarth 749c92b
Update xmldom
cjbarth 8569690
New major version of xmldom
cjbarth eac5f9b
add agents.md
cjbarth c9c4bb9
eslint@9
cjbarth 79eb8ac
eslint@10
cjbarth 3162fb8
mocha + nyc
cjbarth 7550c90
update some more
cjbarth 3cf4de6
Add import linting
cjbarth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,19 @@ | ||
| # Agent Notes | ||
|
|
||
| ## Scope | ||
|
|
||
| - This repository is a Node.js/TypeScript library. | ||
| - Only work in `src/` and `test/` unless explicitly asked to do otherwise. | ||
| - Treat all changes as security-sensitive; this library is foundational for other security-focused projects (e.g., `node-saml`). | ||
|
|
||
| ## Conventions | ||
|
|
||
| - Keep changes minimal and focused. | ||
| - Prefer defensive coding and preserve existing security properties. | ||
| - Follow existing project style and lint rules. | ||
| - Don't edit `node_modules/`. | ||
|
|
||
| ## Verification | ||
|
|
||
| - After all changes, run: | ||
| - `npm run build && npm test && npm run lint:fix` |
This file contains hidden or 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,62 @@ | ||
| const js = require("@eslint/js"); | ||
| const tseslint = require("typescript-eslint"); | ||
| const globals = require("globals"); | ||
| const prettierConfig = require("eslint-config-prettier"); | ||
| const simpleImportSort = require("eslint-plugin-simple-import-sort"); | ||
|
|
||
| module.exports = tseslint.config( | ||
| js.configs.recommended, | ||
| ...tseslint.configs.recommended, | ||
| { | ||
| files: ["**/*.ts"], | ||
| plugins: { | ||
| "simple-import-sort": simpleImportSort, | ||
| }, | ||
| languageOptions: { | ||
| parserOptions: { | ||
| project: "./tsconfig.eslint.json", | ||
| tsconfigRootDir: __dirname, | ||
| sourceType: "module", | ||
| }, | ||
| globals: { | ||
| ...globals.node, | ||
| ...globals.mocha, | ||
| ...globals.es2020, | ||
| Attr: "readonly", | ||
| ChildNode: "readonly", | ||
| Comment: "readonly", | ||
| Document: "readonly", | ||
| Element: "readonly", | ||
| Node: "readonly", | ||
| XPathNSResolver: "readonly", | ||
| }, | ||
| }, | ||
| rules: { | ||
| "simple-import-sort/imports": "error", | ||
| "simple-import-sort/exports": "error", | ||
| "no-console": "error", | ||
| "no-prototype-builtins": "error", | ||
| "one-var": ["error", "never"], | ||
| "no-duplicate-imports": "error", | ||
| "no-use-before-define": "error", | ||
| curly: "error", | ||
| eqeqeq: ["error", "smart"], | ||
| "no-var": "error", | ||
| "prefer-const": "error", | ||
| "prefer-template": "error", | ||
| "@typescript-eslint/no-deprecated": "error", | ||
| "@typescript-eslint/no-non-null-assertion": "error", | ||
| "@typescript-eslint/no-unused-vars": "error", | ||
| "@typescript-eslint/no-this-alias": "error", | ||
| }, | ||
| }, | ||
| { | ||
| files: ["test/**/*.ts"], | ||
| rules: { | ||
| "@typescript-eslint/no-unused-expressions": "off", | ||
| }, | ||
| }, | ||
| { | ||
| rules: prettierConfig.rules, | ||
| }, | ||
| ); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: node-saml/xml-crypto
Length of output: 82
🏁 Script executed:
Repository: node-saml/xml-crypto
Length of output: 2235
🏁 Script executed:
head -50 eslint.config.js | cat -nRepository: node-saml/xml-crypto
Length of output: 1979
🏁 Script executed:
Repository: node-saml/xml-crypto
Length of output: 2255
🌐 Web query:
no-use-before-define vs@typescript-eslint/no-use-before-defineTypeScript💡 Result:
What’s the difference?
no-use-before-define(ESLint core)@typescript-eslint/no-use-before-define(TypeScript-ESLint)Which should you use in TypeScript?
@typescript-eslint/no-use-before-define, to avoid incorrect reports and ensure TS syntax is handled properly. (typescript-eslint.io)Typical config
(typescript-eslint.io)
Citations:
Use the TypeScript-aware
no-use-before-definerule.The core ESLint rule cannot properly handle TypeScript syntax and semantics, causing incorrect or noisy lint failures. Replace it with
@typescript-eslint/no-use-before-define.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents