contactlab / eslint-config-contactlab

Contactlab ESLint extensible and sharable configuration.
https://contactlab.github.io/eslint-config-contactlab
Apache License 2.0
2 stars 0 forks source link

Handle `@/**` as "external" in `import/order` rule #829

Closed StefanoMagrassi closed 1 year ago

StefanoMagrassi commented 1 year ago

@/** import should be handle as "external" (after them).

Wrong:

import * as React from 'react';
import * as Option from 'fp-ts/Option';
import {Component} from './index';
import * as Env from '@/Env/types';

Right:

import * as Option from 'fp-ts/Option';
import * as React from 'react';
import * as Env from '@/Env/types';
import {Component} from './index';