JSPM

  • Created
  • Published
  • Downloads 394
  • Score
    100M100P100Q93472F
  • License MIT

Yet another ESLint wrapper written in TypeScript.

Package Exports

  • standard-engine-ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (standard-engine-ts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

standard-engine-ts [WIP]

Yet another ESLint wrapper written in TypeScript.

npm Libraries.io dependency status for latest release Renovate enabled

Inspired by standard-engine.

Install

npm install standard-engine-ts

API

See bundled index.d.ts.

Example

#!/usr/bin/env node
'use strict'

const path = require('path')
const eslint = require('eslint')
const { run } = require('standard-engine-ts')
const {
  name,
  version,
  description,
  homepage,
  bugs
} = require('../package.json')

run({
  cmd: name,
  version: version,
  tagline: description,
  homepage,
  bugs: bugs.url,
  eslint,
  eslintOptions: {
    baseConfig: {
      env: {
        browser: true
      }
    }
  },
  extensions: ['.ts'],
  useGitIgnore: true,
  configFile: path.join(__dirname, '..', '.eslintrc.js')
})

Todo

  • Unit testing
  • Documentation
  • Remove lodash.mergewith to reduce bundle size

License

MIT License © 2020 Exuanbo