coolswood
@coolswood
https://coolswood.github.io

Как заставить работать linter-sass-lint в Atom?

Установил данный линтер для scss файлов. Кладу в корень проекта файл .sass-lint.yml и линтер начинает работать даже с пустым файлом конфигурации со своими дефолтными настройками. Пытался изменять правила конфигурации, но он не реагирует. В чем может быть проблема?

Файл конфигурации:

#########################
## Sample Sass Lint File
#########################
# Linter Options
options:
# Don't merge default rules
merge-default-rules: false
# Set the formatter to 'html'
formatter: html
# Output file instead of logging results
output-file: 'src/index.html'
# Raise an error if more than 50 warnings are generated
max-warnings: 50
# File Options
files:
include: 'src/*.scss'
# Rule Configuration
rules:
extends-before-mixins: 2
extends-before-declarations: 2
placeholder-in-extend: 2
mixins-before-declarations:
- 2
-
exclude:
- breakpoint
- mq

no-warn: 1
no-debug: 1
no-ids: 2
no-important: 2
hex-notation:
- 2
-
style: uppercase
indentation:
- 2
-
size: 2
property-sort-order:
- 1
-
order:
- margin
- display
ignore-custom-properties: false
variable-for-property:
- 2
-
properties:
- margin
- content
  • Вопрос задан
  • 156 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы