Skip to content

Сортировка импортов #110

Open
Makvagabo opened this issue Oct 29, 2020 · 2 comments
Open

Сортировка импортов #110

Makvagabo opened this issue Oct 29, 2020 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Makvagabo
Copy link

Конфликтуют два правила друг с другом

в таком порядке стреляет - simple-import-sort/sort

import { healthCheckPlugin } from 'retail-front-services/server/plugins/health';
import { prometheusHostUIPlugin } from '@/server/plugins/prometheus';
import { indexPagePlugin } from './index-page';
import { layoutDataPlugin } from './layout-data';

в таком стреляет - import/order (ESLint: @/server/plugins/prometheus import should occur before import of ./index-page(import/order))

import { healthCheckPlugin } from 'retail-front-services/server/plugins/health';
import { prometheusHostUIPlugin } from '@/server/plugins/prometheus';
import { indexPagePlugin } from './index-page';
import { layoutDataPlugin } from './layout-data';

проблема кроется в путях типа @/server

@stepancar
Copy link
Contributor

К изночальной проблеме не относится, но у нас не должно быть @server внутри server. На себя ссылаемся относительно

@Makvagabo
Copy link
Author

да, локально проблема решилась тем что пути исправил

@voronin-ivan voronin-ivan added bug Something isn't working help wanted Extra attention is needed labels Jan 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants