Add prettier sorting

未关闭
#215 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
eslint, typescript
领域
tooling

调研方向

审查链接的三个排序插件,并比较所提议的 import、对象键和 JSON 排序行为。没有指定文件、测试或入口点;完成这项工作需要达成一致的排序范围,并完成经过验证的集成,以避免与 formatter 相关的 PR 不一致问题。

由索引模型根据 Issue 内容生成。

描述

Hey,

I would like to suggest adding a package to sort import to avoid PR inconsistencies from other formatters. In some cases even keys from obj or json could be sorted.

Sorting will make it easier to read, being alphabetically done, while keeping a pattern.

https://github.com/trivago/prettier-plugin-sort-imports

https://github.com/namnm/eslint-plugin-sort-keys

https://github.com/Gudahtt/prettier-plugin-sort-json


Offtopic:

https://ptb.discord.com/channels/426714625279524876/1327348792365944832/1401076285769252926

Biome has type-aware built in rust, so it should be faster, all types of sorting, it's formatter are equal to prettier, it just dont have all the lints that eslint have with additional packages. All in one package.

主要语言
TypeScript
星标
188
派生
10
平均合并
2 天 17 小时
30 天内合并 PR
3

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstackincubator/react-native-node-api 的其他 Issue

查看 callstackincubator/react-native-node-api 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。