0.4.0 • Published 6 years ago
sass-lint-vue v0.4.0
sass-lint-vue
Command line tool to lint Sass styles in Vue single file components. It uses sass-lint under the hood.
Features
- Add a
.sass-lint.ymlto specify your configuration. - Disable specific rules or all rules via source.
Installation
npm install sass-lint-vueUsage
sass-lint-vue [options] <file ...>Options
-h, --help: output usage information-V, --version: output the version number
Example
The following example scans the assets directory for .vue files and outputs lint errors in <style> tags with the attribute lang="scss" set.
sass-lint-vue assetsDevelopment
Build the docker container via:
$ docker build . -t sass-lint-vueLint the Component.vue file in the docker container via:
$ docker run --rm -tv $(pwd)/test:/app/test sass-lint-vue testAccess the container via:
$ docker run -it --rm -v $(pwd)/test:/app/test --entrypoint bash sass-lint-vueUse docker compose to work on the files:
$ docker-compose up
$ docker-compose exec app bash