Skip to content

sascha245/nuxt-tslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Nuxt module for quickly adding tslint to your project

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published