Skip to content

Commit ac12e15

Browse files
committed
Do not allow more than one consecutive empty line
1 parent 9c0f873 commit ac12e15

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
66

7+
## [2.5.2] - 2024-06-19
8+
#### Added
9+
* *Nothing*
10+
11+
#### Changed
12+
* *Nothing*
13+
14+
#### Deprecated
15+
* *Nothing*
16+
17+
#### Removed
18+
* *Nothing*
19+
20+
#### Fixed
21+
* Do not allow more than 1 consecutive empty line.
22+
23+
724
## [2.5.1] - 2024-06-09
825
#### Added
926
* *Nothing*

index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ module.exports = {
1818
}
1919
},
2020
rules: {
21-
// Customize rules or add on top of presets
2221
'@stylistic/arrow-parens': 'error',
2322
'@stylistic/arrow-spacing': 'error',
2423
'@stylistic/block-spacing': 'error',
@@ -30,6 +29,7 @@ module.exports = {
3029
'@stylistic/keyword-spacing': 'error',
3130
'@stylistic/max-len': [
3231
'error',
32+
// Do not allow more than 120 characters per line, except for long strings and comments in the same line
3333
{ 'code': 120, 'ignoreComments': true, 'ignoreStrings': true, 'ignoreTemplateLiterals': true },
3434
],
3535
'@stylistic/no-trailing-spaces': 'error',
@@ -39,7 +39,10 @@ module.exports = {
3939
'@stylistic/rest-spread-spacing': 'error',
4040
'@stylistic/semi': 'error',
4141
'@stylistic/spaced-comment': 'error',
42+
'@stylistic/no-multiple-empty-lines': ['error', { 'max': 1 }],
43+
4244
'@typescript-eslint/consistent-type-imports': 'error',
45+
4346
'simple-import-sort/imports': ['error', {
4447
'groups': [
4548
// First external imports, then local imports, then styles imports

0 commit comments

Comments
 (0)