pug-lint-vue
Version:
Command line tool to lint Pug templates in Vue single file components.
51 lines (33 loc) • 1.51 kB
Markdown
# pug-lint-vue
[](https://www.npmjs.com/package/pug-lint-vue)
[](https://www.npmjs.com/package/pug-lint-vue)
[](https://travis-ci.org/sourceboat/pug-lint-vue)
[](http://standardjs.com/)
Command line tool to lint [Pug](https://github.com/pugjs/pug) templates in [Vue single file components](https://vuejs.org/v2/guide/single-file-components.html). It uses [pug-lint](https://github.com/pugjs/pug-lint) under the hood.
## Installation
```
$ npm install pug-lint-vue
```
## Usage
```
$ pug-lint-vue [options] <file ...>
```
### Options
* `-h, --help`: output usage information
* `-V, --version`: output the version number
* `-c, --config <path>`: configuration file path (see [pug-lint](https://github.com/pugjs/pug-lint#configuration-file) for more information)
## Example
The following example scans the `assets` directory for `.vue` files and outputs lint errors in `<template>` tags with the attribute `lang="pug"` set.
```
$ pug-lint-vue assets
```
## Development
Build the docker container via:
```
$ docker build . -t pug-lint-vue
```
Use docker compose to work on the files:
```
$ docker-compose up
$ docker-compose exec app bash
```