Fix eslint version

This commit is contained in:
RainLoop Team 2016-07-01 01:50:11 +03:00
parent 8e8a041032
commit 8a6765faeb
15 changed files with 342 additions and 398 deletions

View file

@ -35,7 +35,7 @@ module.exports = {
"comma-dangle": [2, "never"], // disallow or enforce trailing commas
"no-cond-assign": [2, "always"], // disallow assignment in conditional expressions
"no-console": 1, // disallow use of console (off by default in the node environment)
"no-console": 2, // disallow use of console (off by default in the node environment)
"no-constant-condition": 2, // disallow use of constant expressions in conditions
"no-control-regex": 2, // disallow control characters in regular expressions
"no-debugger": 2, // disallow use of debugger
@ -46,7 +46,7 @@ module.exports = {
"no-empty-character-class": 2, // disallow the use of empty character classes in regular expressions
"no-ex-assign": 2, // disallow assigning to the exception in a catch block
"no-extra-boolean-cast": 2, // disallow double-negation boolean casts in a boolean context
"no-extra-parens": 0, // disallow unnecessary parentheses (off by default)
// "no-extra-parens": 2, // disallow unnecessary parentheses (off by default)
"no-extra-semi": 2, // disallow unnecessary semicolons
"no-func-assign": 2, // disallow overwriting functions written as function declarations
"no-inner-declarations": 2, // disallow function or variable declarations in nested blocks
@ -70,9 +70,9 @@ module.exports = {
"accessor-pairs": 2, // enforce getter and setter pairs in objects
"block-scoped-var": 2, // treat var statements as if they were block scoped (off by default). 0: deep destructuring is not compatible https://github.com/eslint/eslint/issues/1863
// "complexity": 0, // specify the maximum cyclomatic complexity allowed in a program (off by default)
// "complexity": 2, // specify the maximum cyclomatic complexity allowed in a program (off by default)
"consistent-return": 2, // require return statements to either always or never specify values
"curly": 2, // specify curly brace conventions for all control statements
"curly": 2, // specify curly brace conventions for allphpuni control statements
"default-case": 2, // require default case in switch statements (off by default)
"dot-location": [2, "property"], // enforce consistent newlines before and after dots
"dot-notation": 2, // encourages use of dot notation whenever possible
@ -82,7 +82,6 @@ module.exports = {
"no-caller": 2, // disallow use of arguments.caller or arguments.callee
"no-div-regex": 2, // disallow division operators explicitly at beginning of regular expression (off by default)
"no-else-return": 2, // disallow else after a return in an if (off by default)
"no-empty-label": 2, // disallow use of labels for anything other then loops and switches
"no-eq-null": 2, // disallow comparisons to null without a type-checking operator (off by default)
"no-eval": 2, // disallow use of eval()
"no-extend-native": 2, // disallow adding to native types
@ -113,7 +112,7 @@ module.exports = {
"no-throw-literal": 2, // restrict what can be thrown as an exception (off by default)
"no-unused-expressions": 2, // disallow usage of expressions in statement position
"no-void": 2, // disallow use of void operator (off by default)
"no-warning-comments": 1, // disallow usage of configurable warning terms in comments": 2, // e.g. TODO or FIXME (off by default)
"no-warning-comments": 2, // disallow usage of configurable warning terms in comments": 2, // e.g. TODO or FIXME (off by default)
"no-with": 2, // disallow use of the with statement
"radix": 2, // require use of the second argument for parseInt() (off by default)
// "vars-on-top": 2, // requires to declare all vars on top of their containing scope (off by default)
@ -135,20 +134,20 @@ module.exports = {
// stylistic issues
"array-bracket-spacing": 1, // enforce consistent spacing inside array brackets
"block-spacing": [1, "never"], // enforce consistent spacing inside single-line blocks
"array-bracket-spacing": 2, // enforce consistent spacing inside array brackets
"block-spacing": [2, "never"], // enforce consistent spacing inside single-line blocks
// "brace-style": [1, "1tbs"], // enforce consistent brace style for blocks
// "brace-style": [2, "1tbs"], // enforce consistent brace style for blocks
// "camelcase": 1, // enforce camelcase naming convention
"comma-spacing": 1, // enforce consistent spacing before and after commas
"comma-style": 1, // enforce consistent comma style
"computed-property-spacing": 1, // enforce consistent spacing inside computed property brackets
"consistent-this": [1, "self"], // enforce consistent naming when capturing the current execution context
"eol-last": 1, // enforce at least one newline at the end of files
"id-match": 1, // require identifiers to match a specified regular expression
// "camelcase": 2, // enforce camelcase naming convention
"comma-spacing": 2, // enforce consistent spacing before and after commas
"comma-style": 2, // enforce consistent comma style
"computed-property-spacing": 2, // enforce consistent spacing inside computed property brackets
"consistent-this": [2, "self"], // enforce consistent naming when capturing the current execution context
"eol-last": 2, // enforce at least one newline at the end of files
"id-match": 2, // require identifiers to match a specified regular expression
"indent": [1, "tab", { // enforce consistent indentation
"indent": [2, "tab", { // enforce consistent indentation
"SwitchCase": 1,
"VariableDeclarator": {
"var": 1,
@ -157,48 +156,48 @@ module.exports = {
}
}],
"key-spacing": 1, // enforce consistent spacing between keys and values in object literal properties
"linebreak-style": [1, "windows"], // enforce consistent linebreak style
"lines-around-comment": 0, // require empty lines around comments
"max-depth": 0, // enforce a maximum depth that blocks can be nested
"max-len": [1, 200], // enforce a maximum line length
"max-lines": 0, // enforce a maximum file length
"max-nested-callbacks": [1, 5], // enforce a maximum depth that callbacks can be nested
"max-params": 0, // enforce a maximum number of parameters in function definitions
"max-statements": 0, // enforce a maximum number of statements allowed in function blocks
"max-statements-per-line": 0, // enforce a maximum number of statements allowed per line
"new-cap": 1, // require constructor function names to begin with a capital letter
"new-parens": 1, // require parentheses when invoking a constructor with no arguments
"newline-after-var": 0, // require or disallow an empty line after var declarations
"newline-before-return": 0, // require an empty line before return statements
"newline-per-chained-call": 0, // require a newline after each call in a method chain
"no-array-constructor": 1, // disallow Array constructors
"no-bitwise": 1, // disallow bitwise operators
"no-continue": 1, // disallow continue statements
"no-inline-comments": 0, // disallow inline comments after code
"no-lonely-if": 0, // disallow if statements as the only statement in else blocks
"no-mixed-operators": 0, // disallow mixes of different operators
"key-spacing": 2, // enforce consistent spacing between keys and values in object literal properties
"linebreak-style": [2, "windows"], // enforce consistent linebreak style
// "lines-around-comment": 2, // require empty lines around comments
// "max-depth": 2, // enforce a maximum depth that blocks can be nested
"max-len": [2, 200], // enforce a maximum line length
// "max-lines": 2, // enforce a maximum file length
"max-nested-callbacks": [2, 5], // enforce a maximum depth that callbacks can be nested
// "max-params": 2, // enforce a maximum number of parameters in function definitions
// "max-statements": 2, // enforce a maximum number of statements allowed in function blocks
"max-statements-per-line": 2, // enforce a maximum number of statements allowed per line
"new-cap": 2, // require constructor function names to begin with a capital letter
"new-parens": 2, // require parentheses when invoking a constructor with no arguments
// "newline-after-var": 2, // require or disallow an empty line after var declarations
// "newline-before-return": 2, // require an empty line before return statements
// "newline-per-chained-call": 2, // require a newline after each call in a method chain
"no-array-constructor": 2, // disallow Array constructors
"no-bitwise": 2, // disallow bitwise operators
"no-continue": 2, // disallow continue statements
// "no-inline-comments": 2, // disallow inline comments after code
// "no-lonely-if": 2, // disallow if statements as the only statement in else blocks
// "no-mixed-operators": 2, // disallow mixes of different operators
"no-mixed-spaces-and-tabs": 2, // disallow mixed spaces and tabs for indentation
"no-multiple-empty-lines": 2, // disallow multiple empty lines
"no-negated-condition": 0, // disallow negated conditions
"no-nested-ternary": 0, // disallow nested ternary expressions
// "no-negated-condition": 2, // disallow negated conditions
// "no-nested-ternary": 2, // disallow nested ternary expressions
"no-new-object": 2, // disallow Object constructors
"no-plusplus": [1, { // disallow the unary operators ++ and --
"no-plusplus": [2, { // disallow the unary operators ++ and --
"allowForLoopAfterthoughts": true
}],
"no-restricted-syntax": 1, // disallow specified syntax
"no-spaced-func": 1, // disallow spacing between function identifiers and their applications
"no-restricted-syntax": 2, // disallow specified syntax
"no-spaced-func": 2, // disallow spacing between function identifiers and their applications
"no-ternary": 0, // disallow ternary operators
"no-trailing-spaces": 1, // disallow trailing whitespace at the end of lines
"no-underscore-dangle": 0, // disallow dangling underscores in identifiers
"no-unneeded-ternary": 1, // disallow ternary operators when simpler alternatives exist
"no-whitespace-before-property": 0, // disallow whitespace before properties
"object-curly-newline": 0, // enforce consistent line breaks inside braces
"object-curly-spacing": [1, "never"], // enforce consistent spacing inside braces
"no-trailing-spaces": 2, // disallow trailing whitespace at the end of lines
// "no-underscore-dangle": 2, // disallow dangling underscores in identifiers
"no-unneeded-ternary": 2, // disallow ternary operators when simpler alternatives exist
// "no-whitespace-before-property": 2, // disallow whitespace before properties
// "object-curly-newline": 2, // enforce consistent line breaks inside braces
"object-curly-spacing": [2, "never"], // enforce consistent spacing inside braces
"object-property-newline": [0, { // enforce placing object properties on separate lines
"allowMultiplePropertiesPerLine": false
}],
// "object-property-newline": [2, { // enforce placing object properties on separate lines
// "allowMultiplePropertiesPerLine": false
// }],
// "one-var": [2, { // enforce variables to be declared either together or separately in functions
// "var": "always",
@ -206,24 +205,24 @@ module.exports = {
// "const": "never"
// }],
"one-var-declaration-per-line": [0, "always"], // require or disallow newlines around var declarations
"operator-assignment": 1, // require or disallow assignment operator shorthand where possible
"operator-linebreak": [1, "after"], // enforce consistent linebreak style for operators
"padded-blocks": [0, "never"], // require or disallow padding within blocks
"quote-props": [0, "as-needed"], // require quotes around object literal property names
// "one-var-declaration-per-line": [2, "always"], // require or disallow newlines around var declarations
"operator-assignment": 2, // require or disallow assignment operator shorthand where possible
"operator-linebreak": [2, "after"], // enforce consistent linebreak style for operators
// "padded-blocks": [2, "never"], // require or disallow padding within blocks
// "quote-props": [2, "as-needed"], // require quotes around object literal property names
"quotes": [2, "single"], // enforce the consistent use of either backticks, double, or single quotes
"require-jsdoc": 1, // require JSDoc comments
"semi": [1, "always"], // require or disallow semicolons instead of ASI
"semi-spacing": 1, // enforce consistent spacing before and after semicolons
"sort-vars": 0, // require variables within the same declaration block to be sorted
"space-before-blocks": 1, // enforce consistent spacing before blocks
"space-before-function-paren": [1, "never"], // enforce consistent spacing before function definition opening parenthesis
"space-in-parens": 1, // enforce consistent spacing inside parentheses
"space-infix-ops": 1, // require spacing around operators
"space-unary-ops": 1, // enforce consistent spacing before or after unary operators
"spaced-comment": 1, // enforce consistent spacing after the // or /* in a comment
// "unicode-bom": [1, "never"], // require or disallow the Unicode BOM
"wrap-regex": 1, // require parenthesis around regex literals
"require-jsdoc": 2, // require JSDoc comments
"semi": [2, "always"], // require or disallow semicolons instead of ASI
"semi-spacing": 2, // enforce consistent spacing before and after semicolons
// "sort-vars": 2, // require variables within the same declaration block to be sorted
"space-before-blocks": 2, // enforce consistent spacing before blocks
"space-before-function-paren": [2, "never"], // enforce consistent spacing before function definition opening parenthesis
"space-in-parens": 2, // enforce consistent spacing inside parentheses
"space-infix-ops": 2, // require spacing around operators
"space-unary-ops": 2, // enforce consistent spacing before or after unary operators
"spaced-comment": 2, // enforce consistent spacing after the // or /* in a comment
// "unicode-bom": [2, "never"], // require or disallow the Unicode BOM
"wrap-regex": 2, // require parenthesis around regex literals
// es6