MCPcopy Index your code
hub / github.com/tinyhttp/tinyhttp / setupEslint

Function setupEslint

packages/cli/src/utils.ts:106–118  ·  view source on GitHub ↗
(pkg: string)

Source from the content-addressed store, hash-verified

104`
105
106export const setupEslint = async (pkg: string) => {
107 msg(`Setting up ESLint`, 'green')
108 try {
109 await install(pkg, ['eslint', 'prettier', 'eslint-config-prettier', 'eslint-plugin-prettier'], true)
110 } catch {
111 throw new Error('Failed to install ESLint')
112 }
113 try {
114 await writeFile('.eslintrc', ESLINT_JS_CONFIG)
115 } catch {
116 throw new Error('Failed to create ESLint config')
117 }
118}

Callers 1

index.tsFile · 0.90

Calls 2

msgFunction · 0.85
installFunction · 0.85

Tested by

no test coverage detected