Skip to content

Commit

Permalink
Do not allow more than one consecutive empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Jun 19, 2024
1 parent 9c0f873 commit ac12e15
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.

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).

## [2.5.2] - 2024-06-19
#### Added
* *Nothing*

#### Changed
* *Nothing*

#### Deprecated
* *Nothing*

#### Removed
* *Nothing*

#### Fixed
* Do not allow more than 1 consecutive empty line.


## [2.5.1] - 2024-06-09
#### Added
* *Nothing*
Expand Down
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module.exports = {
}
},
rules: {
// Customize rules or add on top of presets
'@stylistic/arrow-parens': 'error',
'@stylistic/arrow-spacing': 'error',
'@stylistic/block-spacing': 'error',
Expand All @@ -30,6 +29,7 @@ module.exports = {
'@stylistic/keyword-spacing': 'error',
'@stylistic/max-len': [
'error',
// Do not allow more than 120 characters per line, except for long strings and comments in the same line
{ 'code': 120, 'ignoreComments': true, 'ignoreStrings': true, 'ignoreTemplateLiterals': true },
],
'@stylistic/no-trailing-spaces': 'error',
Expand All @@ -39,7 +39,10 @@ module.exports = {
'@stylistic/rest-spread-spacing': 'error',
'@stylistic/semi': 'error',
'@stylistic/spaced-comment': 'error',
'@stylistic/no-multiple-empty-lines': ['error', { 'max': 1 }],

'@typescript-eslint/consistent-type-imports': 'error',

'simple-import-sort/imports': ['error', {
'groups': [
// First external imports, then local imports, then styles imports
Expand Down

0 comments on commit ac12e15

Please sign in to comment.