D
D
Daniil Sugonyaev2018-08-04 10:47:44
JavaScript
Daniil Sugonyaev, 2018-08-04 10:47:44

How to make linter-sass-lint work in Atom?

Installed this linter for scss files. I put the .sass-lint.yml file in the root of the project and the linter starts working even with an empty configuration file with its default settings. Tried changing the config rules but it doesn't respond. What could be the problem?
Config File:
#########################
## 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

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question