chore: more ESM, linting
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable no-console */
|
||||||
import slugify from '@sindresorhus/slugify'
|
import slugify from '@sindresorhus/slugify'
|
||||||
import arg from 'arg'
|
import arg from 'arg'
|
||||||
import commandExists from 'command-exists'
|
import commandExists from 'command-exists'
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable no-console */
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
import figures from 'figures'
|
import figures from 'figures'
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import figures from 'figures'
|
|||||||
import path from 'path'
|
import path from 'path'
|
||||||
import terminalLink from 'terminal-link'
|
import terminalLink from 'terminal-link'
|
||||||
|
|
||||||
import type { ProjectTemplate } from '../types'
|
import type { ProjectTemplate } from '../types.js'
|
||||||
|
|
||||||
import { getValidTemplates } from '../lib/templates'
|
import { getValidTemplates } from '../lib/templates.js'
|
||||||
|
|
||||||
const header = (message: string): string => `${chalk.yellow(figures.star)} ${chalk.bold(message)}`
|
const header = (message: string): string => `${chalk.yellow(figures.star)} ${chalk.bold(message)}`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user