<commit_before># Rules

:back: [README.md](./README.md)

> _list of rules_

---

This project working in progress. So there no stable notable changes yet.

### Attribute Quotes

Use single quotes in attribute values.  
sass-lint [`attribute-quotes`](https://github.com/sasstools/sass-lint/blob/master/docs/rules/attribute-quotes.md)

```scss
// ✓ ok 
span[lang='pt'] {  
  color: green;
}

// ✗ avoid 
span[lang=pt] {  
  color: green;
}
```

---

### BEM Depth

Max depth `1`.  
sass-lint [`bem-depth`](https://github.com/sasstools/sass-lint/blob/master/docs/rules/bem-depth.md)

```scss
// ✓ ok 
.block {
	&__element {
		// one element
	}
}

.sub-block {
	&__sub-element {
		// one element
	}
}

.block__element {
	position: relative;
}

// ✗ avoid 
.block {
	&__element {
		&__subelement {
			// two elements
		}
	}
}

.block__element__subelement__subelement-two {
	// three elements
}
```

---

### Border Zero

Use `none` keyword for disable border or `0` for `border-width`.  
sass-lint [`border-zero`](https://github.com/sasstools/sass-lint/blob/master/docs/rules/border-zero.md)

```scss
// ✓ ok 
.foo1 {
	border: none;
}

.foo2 {
	border-width: 0;
}

// ✗ avoid 
.bar1 {
	border: 0;
}

.bar2 {
	border-right: 0;
}
```





<commit_msg>rules part1<commit_after># Rules

:back: [README.md](./README.md)

## List of rules

---

This project working in progress. So there no stable notable changes yet.

### Attribute Quotes

Use single quotes in attribute values.  
sass-lint rule - [`attribute-quotes`](https://github.com/sasstools/sass-lint/blob/master/docs/rules/attribute-quotes.md)

```scss
// ✓ ok 
span[lang='pt'] {  
	color: green;
}

// ✗ avoid 
span[lang=pt] {  
	color: green;
}
```

---

### BEM Depth

Max depth `1`.  
sass-lint rule - [`bem-depth`](https://github.com/sasstools/sass-lint/blob/master/docs/rules/bem-depth.md)

```scss
// ✓ ok 
.block {
	&__element {
		// one element
	}
}

.sub-block {
	&__sub-element {
		// one element
	}
}

.block__element {
	position: relative;
}

// ✗ avoid 
.block {
	&__element {
		&__subelement {
			// two elements
		}
	}
}

.block__element__subelement__subelement-two {
	// three elements
}
```

---

### Border Zero

Use `none` keyword for disable border or `0` for `border-width`.  
sass-lint rule - [`border-zero`](https://github.com/sasstools/sass-lint/blob/master/docs/rules/border-zero.md)

```scss
// ✓ ok 
.foo1 {
	border: none;
}

.foo2 {
	border-width: 0;
}

// ✗ avoid 
.bar1 {
	border: 0;
}

.bar2 {
	border-right: 0;
}
```
{'fraction_non_alphanumeric': 0.1833466773418735, 'fraction_numerical': 0.007606084867894315, 'mean_word_length': 2.874418604651163, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4449237', 'n_tokens_mistral': 1073, 'n_tokens_neox': 1024, 'n_words': 208}