Skip to content

Add ESLint#399

Merged
isc-klu merged 6 commits intointersystems:masterfrom
isc-klu:resolve-merge-conflict
Apr 21, 2026
Merged

Add ESLint#399
isc-klu merged 6 commits intointersystems:masterfrom
isc-klu:resolve-merge-conflict

Conversation

@isc-klu
Copy link
Copy Markdown
Collaborator

@isc-klu isc-klu commented Apr 21, 2026

Fix #398

@isc-klu isc-klu requested a review from isc-bsaviano as a code owner April 21, 2026 16:41
@isc-bsaviano
Copy link
Copy Markdown
Collaborator

Thanks for doing this KC! It's something I've been meaning to do but never got around to. You need to update .vscodeignore to ignore the new eslint config file. Have you experimented with removing any of the rules you defined?

@isc-klu
Copy link
Copy Markdown
Collaborator Author

isc-klu commented Apr 21, 2026

You need to update .vscodeignore to ignore the new eslint config file.

Just did!.

Have you experimented with removing any of the rules you defined?

Do you mean the rules in eslint.config.mjs?

{
            "@typescript-eslint/no-explicit-any": "off",
            "@typescript-eslint/explicit-function-return-type": "off",
            "@typescript-eslint/no-unused-vars": "off",
            "@typescript-eslint/no-require-imports": "off",
            "@typescript-eslint/no-unused-expressions": "off",
}

No, I didn't experimented with them. They are copied from the config file for vscode-objectscript. I am happy to remove all of them and handle remaining lint issues.

@isc-bsaviano
Copy link
Copy Markdown
Collaborator

I'd be interested to see if adopting the default rules entirely radically changes anything.

@isc-klu
Copy link
Copy Markdown
Collaborator Author

isc-klu commented Apr 21, 2026

Most rules are easy to remove, except for

  • "...no-require-imports": "off", Some files have a lot of json-require (e.g., server/src/providers/completion.ts)
  • "...no-explicit-any": "off",. We do want explicit any occationally (e.g., makeRESTRequest)

@isc-bsaviano
Copy link
Copy Markdown
Collaborator

I think we have to keep no-explicit-any. How does ESLint want us to import JSON files?

@isc-klu
Copy link
Copy Markdown
Collaborator Author

isc-klu commented Apr 21, 2026

The change turns out to be trivial. See my previous commit.

Copy link
Copy Markdown
Collaborator

@isc-bsaviano isc-bsaviano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@isc-klu isc-klu merged commit 5342396 into intersystems:master Apr 21, 2026
11 checks passed
@isc-klu isc-klu deleted the resolve-merge-conflict branch April 21, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ESLint

2 participants