mrnicericee
mrnicericee
Explore posts from servers
TTCTheo's Typesafe Cult
Created by mrnicericee on 2/3/2023 in #questions
Import order
is there a vscode extension or prettier/eslint setting to do this?
// packages first
import a from 'a'
import c from 'c'
import b from 'b' // should error

// packages types
import type { a } from 'a'
import type { d } from 'd'
import type { c } from 'c' // should error

// local files
import { localFile } from '../thing';

// local file types
import { LocalFileSchema } from '../thing';
// packages first
import a from 'a'
import c from 'c'
import b from 'b' // should error

// packages types
import type { a } from 'a'
import type { d } from 'd'
import type { c } from 'c' // should error

// local files
import { localFile } from '../thing';

// local file types
import { LocalFileSchema } from '../thing';
and whenever you do a document format it'll order things
20 replies
TTCTheo's Typesafe Cult
Created by mrnicericee on 9/17/2022 in #questions
mega thread for theo's graphs?
looked through twitter w/ media query, but no graphs 😦
3 replies