Skip to content

chore: 更新依赖,启用 eslint#51

Open
mark9804 wants to merge 1 commit into
redleafnew:mainfrom
mark9804:chore/linter
Open

chore: 更新依赖,启用 eslint#51
mark9804 wants to merge 1 commit into
redleafnew:mainfrom
mark9804:chore/linter

Conversation

@mark9804
Copy link
Copy Markdown
Contributor

之前的仓库缺了 eslint.config.js,linter 是不生效的

又因为 eslint --fix 官方自己说会废弃掉,而且 prettier 做的更改会被 eslint 给覆盖,所以把这行删掉了

又因为 eslint 和 prettier 的规则部分不兼容,直接 lint 的话两个插件会左右互搏,所以设置成了使用 prettier 进行格式化

你可以跑一遍 npm i && npm run lint 来查看效果

@ramonmi
Copy link
Copy Markdown
Collaborator

ramonmi commented Apr 16, 2025

插件基于Zotero Plugin Template,感觉还是暂时保留eslint --fix,并增加 https://github.com/windingwind/zotero-plugin-template/blob/main/eslint.config.mjs ,待模板更新 eslint 和 prettier 后插件再同步更新

@mark9804
Copy link
Copy Markdown
Contributor Author

现在可以了,linter 报错留着以后慢慢来

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.

2 participants