nuxt-tslint

1.1.0 • Public • Published

nuxt-tslint

Nuxt module for quickly adding tslint to your project

Installation

  • Install nuxt-ts or nuxt-ts-module to add Typescript to your Nuxt project

  • Install tslint and setup your tslint.json

  • Install nuxt-tslint

  • Add nuxt-tslint to the modules section on nuxt.config.js

{
  modules: [
    // ...
    'nuxt-tslint',
  ]
}

with options

{
  modules: [
    // ...
    ['nuxt-tslint', {
        configFile: path.join(__dirname, 'tslint.custom.json')
        tsConfigFile: path.join(__dirname, 'tsconfig.custom.json'),
        formatter: 'stylish'
    }]
  ]
}

or configure it within the tslint object

{
  // ...
  modules: ['nuxt-tslint'],
  tslint: {
    configFile: path.join(__dirname, 'tslint.custom.json')
    tsConfigFile: path.join(__dirname, 'tsconfig.custom.json'),
    formatter: 'stylish'
  },
  // ...
}

Options

See tslint-loader options

License

MIT License

Copyright (c) Sascha Braun

Readme

Keywords

Package Sidebar

Install

npm i nuxt-tslint

Weekly Downloads

6

Version

1.1.0

License

MIT

Unpacked Size

3.63 kB

Total Files

4

Last publish

Collaborators

  • sascha245