
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@frsource/vite-plugin-stylelint
Advanced tools
Important
This plugin has been deprecated in favor of
vite-plugin-checker
. Please refer to its' documentation to learn how to setup the stylelint check.
Stylelint plugin for vite. Supports autofixing & lints only the files imported in your project. See the example
directory to check Vue / React usage.
npm install @frsource/vite-plugin-stylelint --save-dev
# or
yarn add @frsource/vite-plugin-stylelint --dev
import { defineConfig } from 'vite';
import stylelintPlugin from '@frsource/vite-plugin-stylelint';
export default defineConfig({
plugins: [stylelintPlugin({ /** Options */ })],
});
Apart from the standard Stylelint options this plugin can be configured using the ones below:
fix
boolean
false
Auto fix the source code.
include
string | string[]
['src/**/*.css', 'src/**/*.less', 'src/**/*.styl', 'src/**/*.scss', 'src/**/*.sass', 'src/**/*.vue']
A single file, or array of files, to include when linting.
exclude
string | string[]
'node_modules'
A single file, or array of files, to exclude when linting.
formatter
string | Stylelint.FormatterType
'string'
Custom error formatter or the name of a built-in Styleling formatter, defaults to 'string'
.
throwOnWarning
boolean
true
Should the warnings found be emitted, defaults to true.
throwOnError
boolean
true
Whether errors found should be emitted to console & stop the build, defaults to true.
cache
boolean
true
Decrease execution time by enabling Stylelint cache. Defaults to true.
cacheLocation
string
'<cwd>/node_modules/.vite/@frsource-vite_plugin-stylelint'
Path for the cache, defaults to '<cwd>/node_modules/.vite/@frsource-vite_plugin-stylelint'
.
This project is using yarn version 3. Make sure to use yarn set version latest
to download it before doing any changes.
MIT
FAQs
Stylelint plugin for vite.
The npm package @frsource/vite-plugin-stylelint receives a total of 73 weekly downloads. As such, @frsource/vite-plugin-stylelint popularity was classified as not popular.
We found that @frsource/vite-plugin-stylelint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.