nuxt-tslint
v1.1.0
Published
Nuxt module for quickly adding tslint to your project
Downloads
5
Readme
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 yourtslint.json
Install
nuxt-tslint
Add
nuxt-tslint
to themodules
section onnuxt.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
Copyright (c) Sascha Braun