windingwind / zotero-pdf-translate

Translate PDF, EPub, webpage, metadata, annotations, notes to the target language. Support 20+ translate services.
GNU Affero General Public License v3.0
7.67k stars 359 forks source link

chore(eslint): migrate to v9.x #1026

Closed yin1999 closed 4 days ago

yin1999 commented 5 days ago

Migrate the configuration of eslint to v9.x. Check: https://eslint.org/docs/latest/use/migrate-to-9.0.0

Run npm run lint to check the migration.

windingwind commented 5 days ago

Would it be fine to directly use https://github.com/windingwind/zotero-plugin-template/blob/main/eslint.config.mjs ?

yin1999 commented 5 days ago

Would it be fine to directly use https://github.com/windingwind/zotero-plugin-template/blob/main/eslint.config.mjs ?

How should I handle the Zotero_Tabs global variable. I'm not familiar with it.

windingwind commented 5 days ago

It's actually not a global variable, so should be disabled for direct accessing. It's a variable of the main window instance.

github-actions[bot] commented 4 days ago

:rocket: This ticket has been resolved in v2.0.12. See Release v2.0.12 for release notes.