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

Don’t multi-line imports #260

Open
TheKenkei opened this issue Oct 11, 2023 · 0 comments
Open

Don’t multi-line imports #260

TheKenkei opened this issue Oct 11, 2023 · 0 comments
Labels
feature request A new feature request

Comments

@TheKenkei
Copy link

TheKenkei commented Oct 11, 2023

Hi

Is it possible to add functionality that prevents the transfer of imports to a new line (so that I write in one line ignoring printWidth)

Reason: opening a file with a large number of imports, you have to scroll through the page

Input

import { initializeApp } from '@core/app';
import { logger } from '@core/logger';
import { createConnection } from '@server/database';
import { createServer } from '@server/node';
import { Alert } from '@ui/Alert';
import { Popup } from '@ui/Popup';
import { debounce, reduce } from 'lodash';
import React, {
    ChangeEvent,
    FC,
    KeyboardEvent,
    useEffect,
    useRef,
} from 'react';

import { Message } from '../Message';
import { add, filter, repeat } from '../utils';

Output

import { initializeApp } from '@core/app';
import { logger } from '@core/logger';
import { createConnection } from '@server/database';
import { createServer } from '@server/node';
import { Alert } from '@ui/Alert';
import { Popup } from '@ui/Popup';
import { debounce, reduce } from 'lodash';
import React, { ChangeEvent, FC,KeyboardEvent,useEffect,useRef,} from 'react';

import { Message } from '../Message';
import { add, filter, repeat } from '../utils';

P.S. I apologize for my English. This language is not my native language.

@TheKenkei TheKenkei added the feature request A new feature request label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A new feature request
Projects
None yet
Development

No branches or pull requests

1 participant