s2s-hook-tslint

s2s hooks for tslint

Usage no npm install needed!

<script type="module">
  import s2sHookTslint from 'https://cdn.skypack.dev/s2s-hook-tslint';
</script>

README

s2s-hook-tslint

tslint for s2s

Example

const tslint = require('s2s-hook-tslint').default

module.exports = {
  watch: './**/*.ts',
  plugins: [
    // plugins...
  ],
  prettier: false,
  afterHooks: [
    tslint({
      test: /\.(ts|tsx)/,
    }),
  ],
}

Options

test

type: regex
default: /\.(ts|tsx)$/

lintConfig

type: string
default: tslint.json