Option to ignore CSS when organizing imports #807
Closed
remojansen
started this conversation in
Ideas
Replies: 3 comments 5 replies
-
Hi! Thanks for reporting this issue! Could you provide a concrete example with an example on the Biome's playground? This could help to picture the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sure! Here it is: Input: import '@projectx/theme/src/normalize.css';
import './index.css';
import '@projectx/theme/src/button.css';
import '@projectx/theme/src/col-3-section.css';
import '@projectx/theme/src/col-50x50-section.css';
import '@projectx/theme/src/col-full-section.css';
import '@projectx/theme/src/onetrust.css';
import '@projectx/theme/src/rich-text-accordion.css';
import '@projectx/theme/src/rich-text-table.css';
import '@projectx/theme/src/side.css';
import '@projectx/theme/src/summary.css';
import '@projectx/theme/src/utils.css';
import '@projectx/theme/src/component-ui-form.css';
import '@projectx/theme/src/main-app.css';
import { LayoutInternal } from './LayoutInternal';
import { LoginStatus } from '@projectx/constants-common';
import { ErrorHandling } from '@projectx/container-error-handler';
import { CustomError } from './CustomError';
import React from 'react'; Output (Import sorting): import { LoginStatus } from '@projectx/constants-common';
import { ErrorHandling } from '@projectx/container-error-handler';
import '@projectx/theme/src/button.css';
import '@projectx/theme/src/col-3-section.css';
import '@projectx/theme/src/col-50x50-section.css';
import '@projectx/theme/src/col-full-section.css';
import '@projectx/theme/src/component-ui-form.css';
import '@projectx/theme/src/main-app.css';
import '@projectx/theme/src/normalize.css';
import '@projectx/theme/src/onetrust.css';
import '@projectx/theme/src/rich-text-accordion.css';
import '@projectx/theme/src/rich-text-table.css';
import '@projectx/theme/src/side.css';
import '@projectx/theme/src/summary.css';
import '@projectx/theme/src/utils.css';
import React from 'react';
import { CustomError } from './CustomError';
import { LayoutInternal } from './LayoutInternal';
import './index.css'; What we would like ( import '@projectx/theme/src/normalize.css';
import './index.css';
import '@projectx/theme/src/button.css';
import '@projectx/theme/src/col-3-section.css';
import '@projectx/theme/src/col-50x50-section.css';
import '@projectx/theme/src/col-full-section.css';
import '@projectx/theme/src/onetrust.css';
import '@projectx/theme/src/rich-text-accordion.css';
import '@projectx/theme/src/rich-text-table.css';
import '@projectx/theme/src/side.css';
import '@projectx/theme/src/summary.css';
import '@projectx/theme/src/utils.css';
import '@projectx/theme/src/component-ui-form.css';
import '@projectx/theme/src/main-app.css';
import { LoginStatus } from '@projectx/constants-common';
import { ErrorHandling } from '@projectx/container-error-handler';
import React from 'react';
import { CustomError } from './CustomError';
import { LayoutInternal } from './LayoutInternal'; Thanks |
Beta Was this translation helpful? Give feedback.
5 replies
-
The bug is #817 I will now close this discussion |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to migrate a very large project (@ematipico knows this project) to Biome, and I'm having an issue preventing the dev team from adopting Biome.
The issue is the order of CSS imports. Biome is sorting the imports, but this breaks the web app. We are aware of the possibility of adding line breaks to prevent this issue. However, the dev team feels this opens the door for human errors.
We would like an option to organise imports (just the way it is now) but avoid changing the order of CSS files. Something like:
We don't mind if all CSS files are placed at the top, but the order within the files should not be altered. By doing this, we will not have to worry about one of our developers forgetting to add a line break between CSS files.
Please let us know your thoughts. Thanks!
Update (21 Nov 2023)
Confirmed by the Biome team there is no need for new config. The issues should be addressed by a bug fix.
Beta Was this translation helpful? Give feedback.
All reactions