{"plugins":["stylelint-scss"],"rules":{// recommended rules"at-rule-no-unknown":null,"scss/at-rule-no-unknown":true,// ...// any other rules you'd want to change e.g."scss/dollar-variable-pattern":"^foo","scss/selector-no-redundant-nesting-selector":true}} ...
stylelint-scss (以插件的形式)的特定于SCSS的规则的。 目的 stylelint本身很好地支持(以及其他预处理器的语法)。 此外,它引入了一些可用于添加SCSS的特定规则,例如,限制 ,控制的编写方式。 但是stylelint通常专注于标准CSS。 stylelint-scss引入了特定于SCSS语法的规则。 也就是说,此插件中的规则可以与其他语法一...
{ "plugins": ["stylelint-scss"], "rules": { // recommended rules "at-rule-no-unknown": null, "scss/at-rule-no-unknown": true, // ... // any other rules you'd want to change e.g. "scss/dollar-variable-pattern": "^foo", "scss/selector-no-redundant-nesting-selector": ...
Bump stylelint-scss from 6.5.1 to 6.7.0 (#318) Oct 13, 2024 README MIT license stylelint-config-recommended-scss The recommended shareable SCSS config for Stylelint. This config: extends thestylelint-config-recommendedshared configand configures its rules for SCSS ...
这个由SCSS社区创建的配置包括postcss-scss语法和stylelint-scss插件 - 一个特定于SCSS的规则集合,并配置了Stylelint的内置规则以支持SCSS。 首先,你应该将这个配置安装为依赖项: npm i --save-dev stylelint-config-standard-scss 然后设置您的配置对象(例如,您的.stylelintrc.json文件)为: { "extends": "...
Full Changelog:https://github.com/stylelint-scss/stylelint-scss/compare/v6.7.0...v6.8.0 6.7.0 Added:function-no-unknown: add support for Sass v1.78color.channelfunction (#1052). Full Changelog:https://github.com/stylelint-scss/stylelint-scss/compare/v6.6.0...v6.7.0 ...
现在,我正在尝试使用 Prettier 并遵循 Stylelint 的规则来格式化我的 SCSS 代码。我很难让这两个人站在一起。例如,declaration-colon-new-line对于以下 scss 代码,我不断收到 stylelint 错误(这是正确的): background-image: linear-gradient(45deg, transparent 50%, #263b59 50%), linear-gradient(135deg,...
stylelint stylelint-config stylelint-scss scss lint linter gitlab gitlab-botpublished 6.2.2 • 2 months agopublished version 6.2.2, 2 months ago M Q P Maintenance: 33%. Quality: 54%. Popularity: 8%. @nf-team/stylelint-config nf-team stylelint config nf-team stylelint stylelint-scss...
1 # stylelint-scss 2 3 [![NPM version](https://img.shields.io/npm/v/stylelint-scss.svg)](https://www.npmjs.com/package/stylelint-scss) 4 [![Build Status](https://github.com/kristerkari/stylelint-scss/workflows/Tests/badge.svg)](https://github.com/kristerkari/stylelint-scss/...
{"extends":"stylelint-config-standard-scss","rules": {"scss/dollar-variable-pattern":null} } Changelog License Display full readme changelog 14.0.0 Changed: updated tostylelint-config-recommended-scss@14.1.0. Removed:stylelintless than16.11.0from peer dependencies. ...