2.1.0 • Published 2 months ago
@ifanrx/stylelint-config-standard-scss v2.1.0
说明
@ifanrx/stylelint-config-standard-scss
仅针对 SASS 项目。
如果是 CSS 项目,请使用 @ifanrx/stylelint-config-standard
。
@ifanrx/stylelint-config-standard-scss
已默认引入 @ifanrx/stylelint-config-standard-bem
。
同时支持两种 BEM 格式:
- 一般情况下,必须优先使用常规 BEM 格式:
.block-foo__element-bar--modifier-baz
。 - 如果使用 css module 或一些 css-in-js 的项目,通常使用驼峰式 BEM 格式:
.blockFoo__elementBar_modifierBaz
。
注意事项
.stylelintrc.js
配置文件的 extends
中,@ifanrx/stylelint-config-standard-scss
总是放在第一个。
使用方法
单独使用
pnpm install @ifanrx/stylelint-config-standard-scss -D
// .stylelintrc.js
module.exports = {
extends: ['@ifanrx/stylelint-config-standard-scss'],
}
Vue 项目中使用
pnpm install @ifanrx/stylelint-config-standard-scss @ifanrx/stylelint-config-standard-vue -D
// .stylelintrc.js
module.exports = {
extends: ['stylelint-config-standard-scss', 'stylelint-config-standard-vue'],
}
2.1.0
2 months ago
2.0.3
2 months ago
2.0.2
3 months ago
2.0.1
4 months ago
2.0.0
5 months ago
1.1.6
6 months ago
1.1.1
9 months ago
1.1.0
10 months ago
1.1.5
6 months ago
1.1.4
8 months ago
1.1.3
8 months ago
1.1.2
9 months ago
1.0.1
11 months ago
1.0.0
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago