Cellbang 开源社区的代码风格指南第一版 #1
muxiangqiu
started this conversation in
Show and tell
Replies: 2 comments 1 reply
|
我毛遂自荐我自己的 eslint 风格: 主要代码风格为 standard,里面包含 prettier 适配 同时使用 plugin:unicorn 来改善代码的风格,以及适配 typescript 项目,大家可以试用一下: npm i -D eslint-config-icebreaker/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: ['icebreaker']
}完整示例见: https://github.com/sonofmagic/npm-lib-rollup-template |
1 reply
|
prettier我推荐一款插件: prettier-plugin-organize-imports
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
大家可以一起来 Review 一下,发表一下各自的意见。对共识的部分,可以发起一个 PR,也可以先发起 PR,在 PR 过程中讨论。
All reactions