1.2.1 • Published 5 years ago

@test-release/eslint v1.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@test-release/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 @test-release/eslint

Programmatically

You have to generate JSON schema and use execute function from @test-release/core:

// src/index.ts
import { execute, getProjectFolder, askAppType, } from '@test-release/core'
import { createSchema } from '@test-release/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
1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago