From ac12e1566761777db09763e9436015baa1694e2f Mon Sep 17 00:00:00 2001 From: Alejandro Celaya <alejandrocelaya@gmail.com> Date: Wed, 19 Jun 2024 10:47:54 +0200 Subject: [PATCH] Do not allow more than one consecutive empty line --- CHANGELOG.md | 17 +++++++++++++++++ index.js | 5 ++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84be9da..3abe5ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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* diff --git a/index.js b/index.js index 2c63b70..02fc73e 100644 --- a/index.js +++ b/index.js @@ -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', @@ -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', @@ -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