Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@steveworkman/vue-cli-plugin-stylelint
Advanced tools
Changelog
2.2.1 (01-09-2020)
stylelint-scss
for the scss
configReadme
stylelint plugin for vue-cli
vue-cli-service lint:style
Usage: vue-cli-service lint:style [options] [...files]
Options:
--no-fix do not auto-fix errors
--options list additional stylelint cli options
Lints and fixes files. If no specific files are given, it lints all vue files, html files, and stylesheets in src
.
Lint on (re)build with stylelint-webpack-plugin
can be enabled with the lintStyleOnBuild
option. You can also provide additional options to stylelint. See available options on the stylelint website.
module.exports = {
// ...
pluginOptions: {
lintStyleOnBuild: true,
stylelint: {
fix: true, // boolean (default: true)
files: '', // string | [string] (default: ['src/**/*.{vue,htm,html,css,sss,less,scss}'])
// See https://stylelint.io/developer-guide/formatters/
formatter: () => {} // function (default: require('stylelint-codeframe-formatter'))
// etc...
}
}
}
Add the following to your preset.json
"@steveworkman/vue-cli-plugin-stylelint": {
"version": "^2.1.0",
"config": {
...
}
}
via vue-cli (recommended)
vue add @steveworkman/vue-cli-plugin-stylelint
via yarn
yarn add -D @steveworkman/vue-cli-plugin-stylelint
vue invoke @steveworkman/vue-cli-plugin-stylelint
via npm
npm install --save-dev @steveworkman/vue-cli-plugin-stylelint
vue invoke @steveworkman/vue-cli-plugin-stylelint
config.plugin('stylelint')
config.plugin('stylelint').use('stylelint-webpack-plugin')
config.plugin('friendly-errors').tap(/* Adds additional transformer and formatter */)
FAQs
stylelint plugin for vue-cli
The npm package @steveworkman/vue-cli-plugin-stylelint receives a total of 65 weekly downloads. As such, @steveworkman/vue-cli-plugin-stylelint popularity was classified as not popular.
We found that @steveworkman/vue-cli-plugin-stylelint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.