0.3.8 • Published 4 years ago

@compgen/eslint v0.3.8

Weekly downloads
261
License
MIT
Repository
-
Last release
4 years ago

@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
0.3.8

4 years ago

0.3.6

4 years ago

0.3.7

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.2

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

1.0.0

5 years ago