Latest Supply Chain Attack:Mini Shai-Hulud Hits @antv npm Packages, 639 Versions Compromised.Learn More
Socket
Book a DemoSign in
Socket

stylelint-config-ivan

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-config-ivan

stylelint配置

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
6
-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

stylelint-config-ivan

stylelint配置

在stylelint配置文件中使用

先安装必备包

npm install --save-dev stylelint-config-ivan

项目根目录创建文件 .stylelintrc:

{
  "extends": "ivan"
}

在webpack中使用stylelint-loader

在webpack3.0配置添加在plugins下:

const StyleLintPlugin = require('stylelint-webpack-plugin')

new StyleLintPlugin({
  files: ['./src/**/*.s?(a|c)ss'],
  failOnError: false,
  configFile: './node_modules/stylelint-config-ivan/index.js'
}),

Keywords

stylelint

FAQs

Package last updated on 06 Dec 2017

Did you know?

Socket

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.

Install

Related posts