bangkok

0.0.1 • Public • Published

Bangkok

An ES code linting tool that uses both ESLint and Prettier to check for cleanup needed, designed to work with community-maintained ESLint and Prettier plugins.

CLI usage

bangkok pattern1*/**/*.js pattern2*/**/*.js ...

API usage

Sample:

const meow = require('meow')

const bangkok = require('bangkok')

const cliName = process.argv[1].split('/').slice(-1)

const cli = meow(`
  Usage
  $ ${cliName} files
`)

const files = cli.input

if (files.length === 0) {
  console.error('ERROR: need some files')
  cli.showHelp()
}

console.log(`INFO: checking files: ${files}`)

const baseESLintConfig = {
  parserOptions: {
    ecmaVersion: 2020
  },
  env: {
    node: true
  }
}

bangkok(files, baseESLintConfig)
  .catch(() => {
    process.exit(1)
  })

Readme

Keywords

none

Package Sidebar

Install

npm i bangkok

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

4.28 kB

Total Files

7

Last publish

Collaborators

  • brodybits