chore: 更新依赖,启用 eslint#51
Open
mark9804 wants to merge 1 commit into
Open
Conversation
Collaborator
|
插件基于Zotero Plugin Template,感觉还是暂时保留 |
Contributor
Author
|
现在可以了,linter 报错留着以后慢慢来 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
之前的仓库缺了
eslint.config.js,linter 是不生效的又因为
eslint --fix官方自己说会废弃掉,而且 prettier 做的更改会被 eslint 给覆盖,所以把这行删掉了又因为 eslint 和 prettier 的规则部分不兼容,直接 lint 的话两个插件会左右互搏,所以设置成了使用 prettier 进行格式化
你可以跑一遍
npm i && npm run lint来查看效果