https://github.com/sascha245/nuxt-tslint
Nuxt module for quickly adding tslint to your project
https://github.com/sascha245/nuxt-tslint
nuxt tslint vue
Last synced: about 2 months ago
JSON representation
Nuxt module for quickly adding tslint to your project
- Host: GitHub
- URL: https://github.com/sascha245/nuxt-tslint
- Owner: sascha245
- License: mit
- Created: 2018-12-15T16:10:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-15T16:52:42.000Z (over 6 years ago)
- Last Synced: 2025-03-18T10:49:18.594Z (2 months ago)
- Topics: nuxt, tslint, vue
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nuxt-tslint
Nuxt module for quickly adding tslint to your project
## Installation
- Install [nuxt-ts](https://github.com/hmsk/nuxt-ts) or [nuxt-ts-module](https://github.com/chanlito/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`
```js
{
modules: [
// ...
'nuxt-tslint',
]
}
```with options
```js
{
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
```js
{
// ...
modules: ['nuxt-tslint'],
tslint: {
configFile: path.join(__dirname, 'tslint.custom.json')
tsConfigFile: path.join(__dirname, 'tsconfig.custom.json'),
formatter: 'stylish'
},
// ...
}
```## Options
See [tslint-loader](https://github.com/wbuchwalter/tslint-loader) options
## License
[MIT License](./LICENSE)
Copyright (c) Sascha Braun