sasstools / sass-lint

Pure Node.js Sass linting
MIT License
1.77k stars 532 forks source link

Atom freezes on class-name-format option #1154

Open fullfs opened 7 years ago

fullfs commented 7 years ago

Hello! I'm using Atom with linter-sass-lint

class-name-format in the listed below format cases Atom to freeze on file opening and saving.

.sass-lint.yml content

files:
  include: '**/*.scss'
options:
  formatter: stylish
  merge-default-rules: false
rules:
  bem-depth:
    - 1
    - max-depth: 2
  border-zero:
    - 2
    - convention: 0
  brace-style:
    - 2
    - allow-single-line: false
  declarations-before-nesting:
    - 2
  class-name-format:
    - 1
    - convention: strictbem

scss file content

.n1-price-list-table__column-description_media-ads__column-description {
    padding-left: 10px;
}

removing class-name-format option solves the freezing

DanPurdy commented 7 years ago

Seems to parse fine in gonzales so will investigate further to see why this is causing a suspected infinite loop