Skip to content

Commit

Permalink
eslint config in process
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayMakhonin committed Jan 21, 2019
1 parent e3d1ea3 commit a9b13cd
Showing 1 changed file with 211 additions and 4 deletions.
215 changes: 211 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,101 @@
{
"extends": ["eslint:recommended"],
"rules": {
"capitalized-comments": "off",
"complexity": "off",
"constructor-super": "error",
"for-direction": "error",
"getter-return": "error",
"id-blacklist": "off",
"id-length": "off",
"id-match": "off",
"indent-legacy": "off",
"jsx-quotes": "off",
"line-comment-position": "off",
"lines-around-directive": "off",
"max-classes-per-file": "off",
"max-depth": "off",
"max-len": "off",
"max-lines": "off",
"max-lines-per-function": "off",
"max-nested-callbacks": "off",
"max-params": "off",
"max-statements": "off",
"max-statements-per-line": "off",
"newline-after-var": "off",
"newline-before-return": "off",
"no-bitwise": "off",
"no-case-declarations": "error",
"no-catch-shadow": "off",
"no-class-assign": "error",
"no-compare-neg-zero": "error",
"no-cond-assign": "error",
"no-const-assign": "error",
"no-constant-condition": "error",
"no-delete-var": "error",
"no-div-regex": "off",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": "error",
"no-empty-character-class": "error",
"no-empty-pattern": "error",
"no-eq-null": "off",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-fallthrough": "error",
"no-func-assign": "error",
"no-global-assign": "error",
"no-inline-comments": "off",
"no-inner-declarations": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-magic-numbers": "off",
"no-multi-assign": "off",
"no-native-reassign": "off",
"no-negated-in-lhs": "off",
"no-new-symbol": "error",
"no-obj-calls": "error",
"no-octal": "error",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-restricted-globals": "off",
"no-restricted-imports": "off",
"no-restricted-modules": "off",
"no-restricted-properties": "off",
"no-restricted-syntax": "off",
"no-self-assign": "error",
"no-spaced-func": "off",
"no-sparse-arrays": "error",
"no-ternary": "off",
"no-this-before-super": "error",
"no-throw-literal": "off",
"no-unexpected-multiline": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unused-labels": "error",
"no-useless-escape": "error",
"no-useless-return": "off",
"no-void": "off",
"padding-line-between-statements": "off",
"prefer-promise-reject-errors": "off",
"prefer-reflect": "off",
"require-jsdoc": "off",
"require-unicode-regexp": "off",
"require-yield": "error",
"sort-imports": "off",
"sort-keys": "off",
"sort-vars": "off",
"use-isnan": "error",
"valid-jsdoc": "off",
"valid-typeof": "error",
"wrap-regex": "off",


"no-async-promise-executor": "error",
"no-await-in-loop": "warn",
"no-console": "off",
Expand Down Expand Up @@ -92,9 +187,9 @@
"no-sync": "warn",


"array-bracket-newline": ["error", { "multiline": true, "minItems": 1 }],
"array-bracket-newline": ["error", { "multiline": true, "minItems": 4 }],
"array-bracket-spacing": ["error", "always", { "singleValue": false, "arraysInArrays": false, "objectsInArrays": false }],
"array-element-newline": ["error", { "multiline": true, "minItems": 1 }],
"array-element-newline": ["error", { "multiline": true, "minItems": 4 }],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
"camelcase": ["error", { "ignoreDestructuring": true }],
Expand All @@ -111,10 +206,122 @@
"function-paren-newline": ["error", { "minItems": 4 }],
"implicit-arrow-linebreak": ["error", "beside"],
"indent": ["error", "tab", { "SwitchCase": 1, "VariableDeclarator": 1, "outerIIFEBody": 1, "MemberExpression": 1, "FunctionDeclaration": {"body": 1, "parameters": 1}, "FunctionExpression": {"body": 1, "parameters": 1}, "CallExpression": {"arguments": 1}, "ArrayExpression": 1, "ObjectExpression": 1, "ImportDeclaration": 1, "flatTernaryExpressions": false, "ignoreComments": false }],
"key-spacing": ["error", {
"singleLine": {
"beforeColon": false,
"afterColon": true,
"mode": "strict"
},
"multiLine": {
"beforeColon": false,
"afterColon": true,
"align": "colon"
}
}],
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"lines-around-comment": ["error", { "beforeBlockComment": true, "allowBlockStart": true, "allowClassStart": true, "allowObjectStart": true, "allowArrayStart": true, "afterBlockComment": false }],
"lines-between-class-members": ["error", "always"],
"multiline-comment-style": ["error", "separate-lines"],
"multiline-ternary": ["error", "always-multiline"],
"new-cap": ["error", { "newIsCap": true, "capIsNew": true, "properties": true }],
"new-parens": "error",
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 1 }],
"no-array-constructor": "error",
"no-continue": "warn",
"no-lonely-if": "error",
"no-mixed-operators": [
"error",
{
"groups": [
["%", "**"],
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<=", "&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": true
}
],
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-new-object": "error",
"no-tabs": ["off", { "allowIndentationTabs": true }],
"no-trailing-spaces": ["error", { "skipBlankLines": false, "ignoreComments": true }],
"no-underscore-dangle": ["error", { "allowAfterThis": true, "allowAfterSuper": true }],
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"nonblock-statement-body-position": ["error", "beside"],
"object-curly-newline": ["error", {
"ObjectExpression": { "multiline": true, "minProperties": 4 },
"ObjectPattern": { "multiline": true, "minProperties": 4 },
"ImportDeclaration": { "multiline": true, "minProperties": 4 },
"ExportDeclaration": "always"
}],
"object-curly-spacing": ["error", "always", { "objectsInObjects": false, "arraysInObjects": false }],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": false }],
"one-var": ["error", "never"],
"one-var-declaration-per-line": ["error", "always"],
"operator-assignment": ["error", "always"],
"operator-linebreak": ["error", "before"],
"padded-blocks": ["error", "never"],
"prefer-object-spread": "error",
"quote-props": ["error", "as-needed", { "keywords": true, "numbers": true, "unnecessary": true }],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "never", { "beforeStatementContinuationChars": "never"}],
"semi-spacing": ["error", {"before": false, "after": true}],
"semi-style": ["error", "last"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "always"],
"space-in-parens": ["error", "always", { "exceptions": ["{}", "[]"] }],
"space-infix-ops": ["error", { "int32Hint": true }],
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
"spaced-comment": ["error", "always", { "exceptions": [] }],
"switch-colon-spacing": ["error", {"before": false, "after": true}],
"template-tag-spacing": ["error", "always"],
"unicode-bom": ["error", "never"],


"no-tabs": ["off"],
"no-trailing-spaces": ["off"]
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"generator-star-spacing": ["error", {"before": false, "after": true}],
"no-confusing-arrow": ["error", {"allowParens": true}],
"no-duplicate-imports": ["error", { "includeExports": true }],
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-var": "error",
"object-shorthand": ["error", "always", { "avoidQuotes": true, "ignoreConstructors": true, "avoidExplicitReturnArrows": true }],
"prefer-arrow-callback": [ "off", { "allowUnboundThis": true } ],
"prefer-const": ["error", {
"destructuring": "all",
"ignoreReadBeforeAssign": true
}],
"prefer-destructuring": ["error",
{
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": false,
"object": true
}
},
{
"enforceForRenamedProperties": false
}
],
"prefer-numeric-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"rest-spread-spacing": ["error", "never"],
"symbol-description": "error",
"template-curly-spacing": "error",
"yield-star-spacing": ["error", "after"]
},
"plugins": [
"standard", "html"
Expand Down

0 comments on commit a9b13cd

Please sign in to comment.