Add prettier sorting

Open
#215 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
eslint, typescript
Domain
tooling

Research direction

Review the three linked sorting plugins and compare the proposed import, object-key, and JSON sorting behavior. No files, tests, or entry points are named; done would require an agreed sorting scope and a validated integration that avoids formatter-related PR inconsistencies.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
206
Forks
12
Avg merge
4h 8m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from callstackincubator/react-native-node-api

All issues in callstackincubator/react-native-node-api

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.