Socket
Book a DemoInstallSign in
Socket

@ifanrx/stylelint-config-standard-react

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ifanrx/stylelint-config-standard-react

An Stylelint shared standard configuration for React.

latest
npmnpm
Version
2.1.0
Version published
Maintainers
5
Created
Source

说明

@ifanrx/stylelint-config-standard-react 总是与 @ifanrx/stylelint-config-standard@ifanrx/stylelint-config-standard-scss 搭配使用。

.stylelintrc.js 配置文件的 extends 中,@ifanrx/stylelint-config-standard@ifanrx/stylelint-config-standard-scss 总是放在第一个。

使用方法

React + CSS 项目中使用

pnpm install @ifanrx/stylelint-config-standard-react @ifanrx/stylelint-config-standard -D
// .stylelintrc.js
module.exports = {
  extends: ['stylelint-config-standard-react', 'stylelint-config-standard'],
}

React + SASS 项目中使用

pnpm install @ifanrx/stylelint-config-standard-react @ifanrx/stylelint-config-standard-scss -D
// .stylelintrc.js
module.exports = {
  extends: ['stylelint-config-standard-react', 'stylelint-config-standard-scss'],
}

Keywords

stylelint

FAQs

Package last updated on 28 Mar 2024

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