test.scss - here Sass Lint works properly
test.sass - here Sass Lint doesn't work
Please see the screenshots attached.
On the command line sass-lint.js reports the errors correctly for both files:
labor/test.sass
2:13 warning No unit allowed for values of 0 zero-unit
2:24 warning Color 'red' should be written in its hexadecimal form #ff0000 no-color-keywords
2:24 warning Color literals such as 'red' should only be used in variable declarations no-color-literals
2:28 warning !important not allowed no-important
3:1 warning Indentation of 0, expected 2 indentation
5:13 warning No unit allowed for values of 0 zero-unit
5:17 warning !important not allowed no-important
6:1 warning Indentation of 0, expected 2 indentation
✖ 8 problems (0 errors, 8 warnings)
labor/test.scss
2:5 warning Indentation of 4, expected 2 indentation
2:13 warning No unit allowed for values of 0 zero-unit
2:24 warning Color 'red' should be written in its hexadecimal form #ff0000 no-color-keywords
2:24 warning Color literals such as 'red' should only be used in variable declarations no-color-literals
2:28 warning !important not allowed no-important
3:1 warning Files must end with a new line final-newline
Created two files:
test.scss - here Sass Lint works properly test.sass - here Sass Lint doesn't work
Please see the screenshots attached.
On the command line sass-lint.js reports the errors correctly for both files:
labor/test.sass 2:13 warning No unit allowed for values of 0 zero-unit 2:24 warning Color 'red' should be written in its hexadecimal form #ff0000 no-color-keywords 2:24 warning Color literals such as 'red' should only be used in variable declarations no-color-literals 2:28 warning !important not allowed no-important 3:1 warning Indentation of 0, expected 2 indentation 5:13 warning No unit allowed for values of 0 zero-unit 5:17 warning !important not allowed no-important 6:1 warning Indentation of 0, expected 2 indentation
✖ 8 problems (0 errors, 8 warnings)
labor/test.scss 2:5 warning Indentation of 4, expected 2 indentation 2:13 warning No unit allowed for values of 0 zero-unit 2:24 warning Color 'red' should be written in its hexadecimal form #ff0000 no-color-keywords 2:24 warning Color literals such as 'red' should only be used in variable declarations no-color-literals 2:28 warning !important not allowed no-important 3:1 warning Files must end with a new line final-newline
✖ 6 problems (0 errors, 6 warnings)