@compgen/eslint
TypeScript icon, indicating that this package has built-in type declarations

0.3.8 • Public • Published

@compgen/eslint

A micro generator for generating eslint configuration.

CLI

I highly recommend using npx so that you don't have to install anything globally, and you can always get the latest version from npm.

  • optional --path=target_folder
npx @compgen/eslint

Programmatically

You have to generate JSON schema and use execute function from @compgen/core:

// src/index.ts
import { execute, getProjectFolder, askAppType, } from '@compgen/core'
import { createSchema } from '@compgen/eslint'

const generate = async () => {
  const projectFolder = getProjectFolder() ?? '.'
  const appType = await askAppType()

  const schema = createSchema({ appType })
  await execute(schema, projectFolder)
}

generate()

Now all you have to do is run:

ts-node src/index.ts

Readme

Keywords

none

Package Sidebar

Install

npm i @compgen/eslint

Weekly Downloads

4

Version

0.3.8

License

MIT

Unpacked Size

21.2 kB

Total Files

12

Last publish

Collaborators

  • michal.jarnot