[Pkg-mozext-commits] [tabmixplus] 06/22: Eslint 4.0 update - Three rules have been deprecated in favor of the new padding-line-between-statements rule: lines-around-directive newline-after-var newline-before-return
David Prévot
taffit at moszumanska.debian.org
Sat Aug 5 15:28:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag 0.5.0.4pre.170625a1
in repository tabmixplus.
commit f1d8238393dc1b4d06367e52d23645f6e5acdb7e
Author: onemen <tabmix.onemen at gmail.com>
Date: Wed Jun 14 21:23:18 2017 +0300
Eslint 4.0 update - Three rules have been deprecated in favor of the new padding-line-between-statements rule:
lines-around-directive
newline-after-var
newline-before-return
---
.eslintrc.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 98ba3fa..1a8cfc2 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -211,7 +211,6 @@ module.exports = {
"line-comment-position": 0,
"linebreak-style": [2, "windows"],
"lines-around-comment": [0, {"beforeBlockComment": true, "allowBlockStart": true, "allowBlockEnd": true}],
- "lines-around-directive": [2, {"before": "never", "after": "always"}],
"max-depth": [0, 4],
"max-len": [0, 120, 4],
"max-lines": 0,
@@ -222,8 +221,6 @@ module.exports = {
"multiline-ternary": 0,
"new-cap": 0,
"new-parens": 2,
- "newline-after-var": 0,
- "newline-before-return": 0,
"newline-per-chained-call": 0,
"object-curly-newline": [2, {
"ObjectExpression": {"multiline": true},
@@ -237,6 +234,11 @@ module.exports = {
"operator-assignment": [2, "always"],
"operator-linebreak": [2, "after"],
"padded-blocks": [2, "never"],
+ "padding-line-between-statements": [
+ 2,
+ {"blankLine": "never", "prev": "*", "next": "directive"},
+ {"blankLine": "always", "prev": "directive", "next": "*"},
+ ],
"prefer-arrow-callback": [2, {"allowNamedFunctions": true}],
"prefer-const": 0, // TODO many errors in old code
"prefer-numeric-literals": 0,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list