[Pkg-mozext-commits] [tabmixplus] 12/147: Add missing Eslint rules, version 3.9.0
David Prévot
taffit at moszumanska.debian.org
Sat Aug 5 15:27:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 4172c6c5e088fe83fd7925d4a3bc518d64caddc4
Author: onemen <tabmix.onemen at gmail.com>
Date: Wed Oct 26 10:32:32 2016 +0300
Add missing Eslint rules, version 3.9.0
---
.eslintrc.js | 40 ++++++++++++++++++++++++-------------
modules/extensions/AddonManager.jsm | 1 -
2 files changed, 26 insertions(+), 15 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 2ed01bc..cb17f88 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -20,7 +20,6 @@ module.exports = {
"no-array-constructor": 2,
"no-bitwise": 0,
"no-caller": 2,
- "func-call-spacing": 2,
"no-case-declarations": 2,
"no-catch-shadow": 2,
"no-class-assign": 2,
@@ -34,9 +33,9 @@ module.exports = {
"no-debugger": 2,
"no-delete-var": 2,
"no-div-regex": 2,
+ "no-dupe-args": 2,
"no-dupe-class-members": 2,
"no-dupe-keys": 2,
- "no-dupe-args": 2,
"no-duplicate-case": 2,
"no-duplicate-imports": [2, {"includeExports": true}],
"no-else-return": 2,
@@ -72,6 +71,7 @@ module.exports = {
"no-lone-blocks": 2,
"no-lonely-if": 2,
"no-loop-func": 2,
+ "no-magic-numbers": 0,
"no-mixed-operators": 0,
"no-mixed-requires": [0, false], // node
"no-mixed-spaces-and-tabs": [2, false],
@@ -79,7 +79,9 @@ module.exports = {
// TODO need to fix this...
"no-multi-str": 0,
"no-multiple-empty-lines": [2, {"max": 1}],
+ "no-native-reassign": 2,
"no-negated-condition": 0,
+ "no-negated-in-lhs": 2,
"no-nested-ternary": 0,
"no-new": 2,
"no-new-func": 2,
@@ -102,6 +104,7 @@ module.exports = {
"no-restricted-globals": 0,
"no-restricted-imports": 0,
"no-restricted-modules": 0, // node
+ "no-restricted-properties": 0,
"no-restricted-syntax": 0,
"no-return-assign": [2, "except-parens"],
"no-script-url": 0,
@@ -110,20 +113,20 @@ module.exports = {
"no-sequences": 2,
"no-shadow": [2, {"hoist": "all"}],
"no-shadow-restricted-names": 2,
- "no-whitespace-before-property": 2,
+ "no-spaced-func": 2,
"no-sparse-arrays": 2,
"no-sync": 0, // node
"no-tabs": 0,
"no-template-curly-in-string": 2,
"no-ternary": 0,
- "no-trailing-spaces": 2,
"no-this-before-super": 2,
"no-throw-literal": 2,
+ "no-trailing-spaces": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-undefined": 0,
- "no-unexpected-multiline": 2,
"no-underscore-dangle": 0,
+ "no-unexpected-multiline": 2,
"no-unmodified-loop-condition": 2,
"no-unneeded-ternary": 2,
"no-unreachable": 2,
@@ -134,35 +137,37 @@ module.exports = {
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": [2, "nofunc"],
"no-useless-call": 2,
+ "no-useless-computed-key": 2,
"no-useless-concat": 2,
"no-useless-constructor": 2,
- "no-useless-computed-key": 2,
"no-useless-escape": 2,
"no-useless-rename": 2,
- "no-void": 0,
+ "no-useless-return": 2,
"no-var": 0,
+ "no-void": 0,
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
+ "no-whitespace-before-property": 2,
"no-with": 2,
- "no-magic-numbers": 0,
+ "accessor-pairs": 2,
"array-bracket-spacing": [2, "never"],
"array-callback-return": 2,
"arrow-body-style": 0,
"arrow-parens": [2, "as-needed"],
"arrow-spacing": [2, {"before": true, "after": true}],
- "accessor-pairs": 2,
"block-scoped-var": 2,
"block-spacing": [2, "never"],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"callback-return": 0,
"camelcase": 0,
+ "class-methods-use-this": 2,
// TODO - maybe in the future
// "comma-dangle": [2, "always-multiline"],
"comma-dangle": 0,
"comma-spacing": 2,
"comma-style": [2, "last"],
"complexity": [0, 11],
- "consistent-return": 2,
"computed-property-spacing": [2, "never"],
+ "consistent-return": 2,
"consistent-this": [2, "self"],
"constructor-super": 2,
// TODO - currently there are more the 1500 errors if we set "curly": 2
@@ -173,20 +178,25 @@ module.exports = {
"eol-last": 2,
"eqeqeq": 0,
"func-call-spacing": [2, "never"],
+ "func-name-matching": 0,
"func-names": 0,
"func-style": [0, "declaration"],
"generator-star-spacing": [2, "after"],
"global-require": 0, // node
"guard-for-in": 2,
"handle-callback-err": 0, // node
+ "id-blacklist": 0,
"id-length": 0,
+ "id-match": 0,
"indent": [2, 2, {"SwitchCase": 1, "VariableDeclarator": {"var": 2, "let": 2, "const": 3}}],
"init-declarations": 0,
"jsx-quotes": 0,
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": 2,
- "lines-around-comment": [0, {"beforeBlockComment": true, "allowBlockStart": true, "allowBlockEnd": true}],
+ "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,
@@ -194,6 +204,7 @@ module.exports = {
"max-params": [0, 3],
"max-statements": [0, 10],
"max-statements-per-line": [2, {"max": 1}],
+ "multiline-ternary": 0,
"new-cap": 0,
"new-parens": 2,
"newline-after-var": 0,
@@ -213,6 +224,7 @@ module.exports = {
"padded-blocks": [2, "never"],
"prefer-arrow-callback": 0, // TODO many errors in old code
"prefer-const": 0, // TODO many errors in old code
+ "prefer-numeric-literals": 0,
"prefer-reflect": 0, // since Firefox 42
"prefer-rest-params": 0, // I don’t want to be notified about arguments variables,
"prefer-spread": 0, // Spread operator for function calls (Firefox 27)
@@ -221,15 +233,14 @@ module.exports = {
"quote-props": [0, "as-needed", {"keywords": true}],
"quotes": [0, "double"],
"radix": 0,
- "id-match": 0,
- "id-blacklist": 0,
"require-jsdoc": 0,
"require-yield": 2,
"rest-spread-spacing": 2,
"semi": 2,
"semi-spacing": [2, {"before": false, "after": true}],
- "sort-vars": 0,
"sort-imports": 0,
+ "sort-keys": 0,
+ "sort-vars": 0,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
@@ -240,6 +251,7 @@ module.exports = {
"markers": ["/", "/XXX", "XXX", "****", "***", "**"]
}],
"strict": [2, "global"],
+ "symbol-description": 2,
"template-curly-spacing": [2, "never"],
"unicode-bom": 0,
"use-isnan": 2,
diff --git a/modules/extensions/AddonManager.jsm b/modules/extensions/AddonManager.jsm
index 446bddd..10b22dc 100644
--- a/modules/extensions/AddonManager.jsm
+++ b/modules/extensions/AddonManager.jsm
@@ -1,7 +1,6 @@
/**
* original code by onemen
*/
-
"use strict";
this.EXPORTED_SYMBOLS = ["TabmixAddonManager"];
--
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