UNPKG

@kitschpatrol/shared-config

Version:

A collection of shared configurations, linters, and formatting tools for TypeScript projects. All managed as a single dependency, and invoked via a single CLI command.

1 lines 644 B
import{clearCache as e,fix as t,fixFile as n}from"@kitschpatrol/eslint-config";import{clearCache as r,fix as i,fixFile as a}from"@kitschpatrol/mdat-config";import{clearCache as o,fix as s,fixFile as c}from"@kitschpatrol/prettier-config";import{clearCache as l,fix as u,fixFile as d}from"@kitschpatrol/stylelint-config";async function f(e,n){let r=e;try{r=await i(r)}catch{}try{r=await t(r,n)}catch{}try{r=await u(r,n)}catch{}try{r=await s(r,n)}catch{}return r}async function p(e){try{await a(e)}catch{}try{await n(e)}catch{}try{await d(e)}catch{}try{await c(e)}catch{}}function m(){r(),e(),l(),o()}export{m as clearCache,f as fix,p as fixFile};