[Pkg-mozext-commits] [tabmixplus] 24/73: Sort .eslintrc.js in the same order as eslint\conf\eslint.json
David Prévot
taffit at moszumanska.debian.org
Mon May 9 02:30:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit a89fd24e50005bdb78036cbfd36922d10f808a5b
Author: onemen <tabmix.onemen at gmail.com>
Date: Sun Apr 3 15:47:19 2016 +0300
Sort .eslintrc.js in the same order as eslint\conf\eslint.json
---
.eslintrc.js | 132 ++++++++++++++++++++++++++++++++++++-----------------------
1 file changed, 81 insertions(+), 51 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 992a2f3..38ea9b4 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -17,74 +17,53 @@ module.exports = {
},
"rules": {
- // These rules are only relevant to ES6 environments.
- //
- // check again in the future when i drop support for old firefox versions
- //
- //
- // require parens in arrow function arguments
- "arrow-parens": 0,
- // require space before/after arrow function's arrow
- "arrow-spacing": [2, {"before": true, "after": true}],
- // verify calls of super() in constructors
- "constructor-super": 2,
- // enforce spacing around the * in generator functions
- "generator-star-spacing": [2, "after"],
- // disallow modifying variables of class declarations
- "no-class-assign": 2,
- // disallow modifying variables that are declared using const
- "no-const-assign": 2,
- // disallow use of this/super before calling super() in constructors.
- "no-this-before-super": 2,
- // require let or const instead of var
- "no-var": 0,
- // require method and property shorthand syntax for object literals
- "object-shorthand": 0,
- // suggest using const declaration for variables that are never modified after declared
- "prefer-const": 0, // TODO many error in old code
- // suggest using the spread operator instead of .apply().
- "prefer-spread": 0, // since Firefox 34
- // suggest using Reflect methods where applicable
- "prefer-reflect": 0, // NOT YET
- // disallow generator functions that do not have yield
- "require-yield": 2,
- // Enforce spacing around the * in yield* expressions
- "yield-star-spacing": [2, "after"],
-
"no-alert": 2,
"no-array-constructor": 2,
"no-bitwise": 0,
"no-caller": 2,
+ "no-case-declarations": 2,
"no-catch-shadow": 2,
+ "no-class-assign": 2,
"no-cond-assign": 2,
+ "no-confusing-arrow": 0,
"no-console": 0,
+ "no-const-assign": 2,
"no-constant-condition": 2,
+ "no-continue": 0,
"no-control-regex": 2,
"no-debugger": 2,
"no-delete-var": 2,
"no-div-regex": 0,
+ "no-dupe-class-members": 0,
"no-dupe-keys": 2,
"no-dupe-args": 2,
"no-duplicate-case": 2,
+ "no-duplicate-imports": 0,
"no-else-return": 2,
- "no-eq-null": 2,
- "no-eval": 0,
// this show error on catch empty block unless there is a comment
"no-empty": 0,
+ "no-empty-character-class": 0,
+ "no-empty-function": 0,
+ "no-empty-pattern": 0,
+ "no-eq-null": 2,
+ "no-eval": 0,
"no-ex-assign": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-boolean-cast": 2,
+ "no-extra-label": 0,
"no-extra-parens": 0, // TODO need to fix this...
"no-extra-semi": 2,
- "no-case-declarations": 2,
"no-fallthrough": 2,
"no-floating-decimal": 0,
"no-func-assign": 2,
+ "no-implicit-coercion": 0,
+ "no-implicit-globals": 0,
"no-implied-eval": 2,
"no-inline-comments": 0,
"no-inner-declarations": [2, "functions"],
"no-invalid-regexp": 2,
+ "no-invalid-this": 0,
"no-irregular-whitespace": 2,
"no-iterator": 2,
"no-label-var": 2,
@@ -92,59 +71,84 @@ module.exports = {
"no-lone-blocks": 2,
"no-lonely-if": 2,
"no-loop-func": 2,
- "no-mixed-requires": [0, false], // node
+ // "no-mixed-requires": [0, false], // node
"no-mixed-spaces-and-tabs": [2, false],
"no-multi-spaces": 2,
// 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-unneeded-ternary": 2,
"no-new": 2,
"no-new-func": 2,
"no-new-object": 2,
- "no-new-require": 0,
+ // "no-new-require": 0, // node
+ "no-new-symbol": 0,
"no-new-wrappers": 2,
"no-obj-calls": 2,
"no-octal": 2,
"no-octal-escape": 2,
- "no-path-concat": 0, // node
+ "no-param-reassign": 0,
+ // "no-path-concat": 0, // node
"no-plusplus": 0,
- "no-process-env": 0,
- "no-process-exit": 2, // node
+ // "no-process-env": 0, // node
+ // "no-process-exit": 2, // node
"no-proto": 2,
"no-redeclare": 2,
"no-regex-spaces": 2,
- "no-restricted-modules": 0, // node
+ "no-restricted-globals": 0,
+ "no-restricted-imports": 0,
+ // "no-restricted-modules": 0, // node
+ "no-restricted-syntax": 0,
"no-return-assign": [2, "except-parens"],
"no-script-url": 0,
+ "no-self-assign": 0,
"no-self-compare": 2,
"no-sequences": 2,
"no-shadow": [2, {"hoist": "all"}],
"no-shadow-restricted-names": 2,
+ "no-whitespace-before-property": 0,
"no-spaced-func": 2,
"no-sparse-arrays": 2,
- "no-sync": 0, // node
+ // "no-sync": 0, // node
"no-ternary": 0,
// the editore remove trailing-spaces on save
"no-trailing-spaces": 0,
+ "no-this-before-super": 2,
"no-throw-literal": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-undefined": 0,
+ "no-unexpected-multiline": 0,
"no-underscore-dangle": 0,
+ "no-unmodified-loop-condition": 0,
+ "no-unneeded-ternary": 2,
"no-unreachable": 2,
"no-unused-expressions": 2,
+ "no-unused-labels": 0,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": [2, "nofunc"],
+ "no-useless-call": 0,
+ "no-useless-concat": 0,
+ "no-useless-constructor": 0,
+ "no-useless-escape": 0,
"no-void": 0,
+ "no-var": 0,
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
"no-with": 2,
-
+ "no-magic-numbers": 0,
+ "array-bracket-spacing": [2, "never"],
+ "array-callback-return": 0,
+ "arrow-body-style": 0,
+ "arrow-parens": 0,
+ "arrow-spacing": [2, {"before": true, "after": true}],
+ "accessor-pairs": 0,
"block-scoped-var": 2,
+ "block-spacing": 0,
"brace-style": [2, "1tbs"],
+ // "callback-return": 0, // node
"camelcase": 0,
// TODO - maybe in the future
// "comma-dangle": [2, "always-multiline"],
@@ -153,45 +157,69 @@ module.exports = {
"comma-style": [2, "last"],
"complexity": [0, 11],
"consistent-return": 2,
+ "computed-property-spacing": 0,
"consistent-this": [2, "self"],
+ "constructor-super": 2,
// TODO - currently there are more the 1500 errors if we set "curly": 2
"curly": [0, "all"],
"default-case": 0,
+ "dot-location": 0,
"dot-notation": [2, { "allowKeywords": true }],
"eol-last": 2,
"eqeqeq": 0,
"func-names": 0,
"func-style": [0, "declaration"],
+ "generator-star-spacing": [2, "after"],
+ // "global-require": 0, // node
"guard-for-in": 0,
- "handle-callback-err": 0,
+ // "handle-callback-err": 0, // node
+ "id-length": 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}],
// XX error in Brackets - Eslint complain that first line is LF
"linebreak-style": [0, "windows"],
- "operator-linebreak": [2, "after"],
"max-depth": [0, 4],
"max-len": [0, 120, 4],
"max-nested-callbacks": [0, 2],
"max-params": [0, 3],
"max-statements": [0, 10],
+ "max-statements-per-line": 0,
"new-cap": 0,
"new-parens": 2,
+ "newline-after-var": 0,
+ "newline-before-return": 0,
+ "newline-per-chained-call": 0,
+ "object-curly-spacing": [2, "never"],
+ "object-shorthand": 0,
"one-var": 0,
+ "one-var-declaration-per-line": 0,
"operator-assignment": [0, "always"],
+ "operator-linebreak": [2, "after"],
"padded-blocks": [0, "never"],
+ "prefer-arrow-callback": 0,
+ "prefer-const": 0, // TODO many error in old code
+ "prefer-reflect": 0, // NOT YET
+ "prefer-rest-params": 0,
+ "prefer-spread": 0, // since Firefox 34
+ "prefer-template": 0,
// in Firefox i can use properties obj - {default: x, private: y}
"quote-props": [0, "as-needed", {"keywords": true}],
"quotes": [0, "double"],
"radix": 0,
+ "id-match": 0,
+ "id-blacklist": 0,
+ "require-jsdoc": 0,
+ "require-yield": 2,
"semi": 2,
"semi-spacing": [2, {"before": false, "after": true}],
"sort-vars": 0,
- "keyword-spacing": 2,
+ "sort-imports": 0,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"],
- "object-curly-spacing": [2, "never"],
- "array-bracket-spacing": [2, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
@@ -200,12 +228,14 @@ module.exports = {
"markers": ["/", "/XXX", "XXX", "****", "***", "**"]
}],
"strict": [2, "global"],
+ "template-curly-spacing": 0,
"use-isnan": 2,
"valid-jsdoc": 0,
"valid-typeof": 2,
"vars-on-top": 0,
"wrap-iife": 2,
"wrap-regex": 0,
+ "yield-star-spacing": [2, "after"],
"yoda": [2, "never"]
},
--
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