From 0419c2558d380cd13f6d0c1f3944b8474b4cf87c Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 21:00:55 +0400 Subject: feat(eslint): no-trailing-spaces Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/javascript/default.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 92654a7..2c12875 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -192,7 +192,7 @@ - [X] "no-ternary" - [ ] "no-this-before-super" - [ ] "no-throw-literal" -- [ ] "no-trailing-spaces" +- [X] "no-trailing-spaces" - [ ] "no-undef" - [X] "no-undef-init" - [X] "no-undefined" diff --git a/src/rules/javascript/default.json b/src/rules/javascript/default.json index ac2fccd..231730c 100644 --- a/src/rules/javascript/default.json +++ b/src/rules/javascript/default.json @@ -375,6 +375,13 @@ "no-ternary": [ "off" ], + "no-trailing-spaces": [ + "error", + { + "ignoreComments": false, + "skipBlankLines": false + } + ], "no-undef-init": [ "error" ], -- cgit v1.2.3