Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes are not sorted #2

Open
crazyair opened this issue Nov 3, 2022 · 5 comments
Open

Notes are not sorted #2

crazyair opened this issue Nov 3, 2022 · 5 comments

Comments

@crazyair
Copy link
Contributor

crazyair commented Nov 3, 2022

bad

import React from 'react';
import { Alert } from '@yzh/yzhd';

/**
 * desc: |
 *  - xxxxx
 */

good

/**
 * desc: |
 *  - xxxxx
 */

import React from 'react';
import { Alert } from '@yzh/yzhd';
@crazyair
Copy link
Contributor Author

crazyair commented Nov 3, 2022

@Alex-Rudoy help

@Alex-Rudoy
Copy link
Owner

hi @crazyair , I've added comment support, now they stick to import below them, can you test it out?

@crazyair
Copy link
Contributor Author

crazyair commented Nov 6, 2022

before

import a from 'a'

const test=`
import a from "a";
`

after

import a from "a";
import a from "a";

const test = `
`;

@crazyair
Copy link
Contributor Author

crazyair commented Nov 7, 2022

before

import a from "a";

// demo1
const demo1 = 1;

// demo2
const demo2 = 2;

after

import a from "a";

// demo1
// demo2

const demo1 = 1;

const demo2 = 2;

@Alex-Rudoy
Copy link
Owner

well, I wrote this extension for myself and team to use on our current React project. We all use prettier aswell.
So I tried to make it as simple and fast as possible.
If you have ideas on how to fix these, feel free to contribute :)
sorry for late answer

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

No branches or pull requests

2 participants