Skip to content

Commit

Permalink
Sort rules in ESLint config alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
th0r committed Jan 31, 2018
1 parent 74dd573 commit 85a1923
Showing 1 changed file with 69 additions and 70 deletions.
139 changes: 69 additions & 70 deletions .eslintrc.json
Expand Up @@ -15,106 +15,76 @@
},
"rules": {
"arrow-body-style": [2, "as-needed"],
"arrow-parens": 0,
"capitalized-comments": 0,
"class-methods-use-this": 0,
"complexity": [2, 20],
"consistent-return": 0,
"eol-last": 0,
"func-call-spacing": [2, "never"],
"function-paren-newline": 0,
"for-direction": 2,
"new-parens": 0,
"newline-per-chained-call": [2, {"ignoreChainWithDepth": 2}],
"no-alert": 0,
"no-await-in-loop": 0,
"no-catch-shadow": 0,
"no-class-assign": 0,
"no-compare-neg-zero": 2,
"no-console": 0,
"no-confusing-arrow": [2, {"allowParens": true}],
"no-extra-parens": 0,
"no-labels": 0,
"no-lone-blocks": 0,
"no-loop-func": 0,
"no-multi-assign": 0,
"no-multi-str": 0,
"no-new": 0,
"no-process-exit": 0,
"no-prototype-builtins": 0,
"no-shadow": 0,
"no-underscore-dangle": 0,
"no-unsafe-finally": 2,
"no-unused-expressions": 0,
"no-useless-computed-key": 2,
"no-useless-escape": 2,
"no-useless-rename": 2,
"padding-line-between-statements": [
2,
{"blankLine": "always", "prev": "directive", "next": "*"}
],
"prefer-destructuring": [2, {
"array": false,
"object": true
}],
"prefer-reflect": 0,
"quote-props": 0,
"semi-spacing": 0,
"semi-style": [2, "last"],
"space-unary-ops": 0,
"strict": 0,
"symbol-description": 2,
"switch-colon-spacing": 2,
"array-bracket-spacing": [2, "never"],
"array-bracket-newline": [2, "consistent"],
"array-bracket-spacing": [2, "never"],
"array-callback-return": [2, {"allowImplicit": false}],
"arrow-parens": 0,
"arrow-spacing": [2, {"before": true, "after": true}],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"camelcase": [2, {"properties": "never"}],
"capitalized-comments": 0,
"class-methods-use-this": 0,
"comma-dangle": [2, "never"],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"complexity": [2, 20],
"consistent-return": 0,
"constructor-super": 2,
"curly": [2, "multi-line"],
"dot-notation": [2, {"allowKeywords": true, "allowPattern": "^[a-z]+(_[a-z]+)+$"}],
"eol-last": 0,
"eqeqeq": [2, "allow-null"],
"for-direction": 2,
"function-paren-newline": 0,
"func-call-spacing": [2, "never"],
"generator-star-spacing": [2, "after"],
"getter-return": 2,
"handle-callback-err": 2,
"indent": [2, 2, {
"SwitchCase": 1,
"ignoredNodes": ["TemplateLiteral"]
}],
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
"jsx-quotes": [2, "prefer-double"],
"keyword-spacing": 2,
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
"linebreak-style": [2, "unix"],
"line-comment-position": [2, {"position": "above"}],
"lines-between-class-members": [2, "always", {"exceptAfterSingleLine": true}],
"line-comment-position": [2, {"position": "above"}],
"max-len": [2, {"code": 120, "tabWidth": 4}],
"newline-per-chained-call": [2, {"ignoreChainWithDepth": 2}],
"new-cap": [2, {"newIsCap": true, "capIsNew": false}],
"new-parens": 0,
"nonblock-statement-body-position": ["error", "beside"],
"no-alert": 0,
"no-array-constructor": 2,
"no-await-in-loop": 0,
"no-buffer-constructor": 2,
"no-caller": 2,
"no-case-declarations": 2,
"no-catch-shadow": 0,
"no-class-assign": 0,
"no-compare-neg-zero": 2,
"no-cond-assign": [2, "except-parens"],
"no-confusing-arrow": [2, {"allowParens": true}],
"no-console": 0,
"no-control-regex": 2,
"no-constant-condition": 2,
"no-const-assign": 2,
"no-control-regex": 2,
"no-debugger": 2,
"no-delete-var": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-duplicate-imports": [2, {"includeExports": true}],
"no-empty-character-class": 2,
"no-empty": 2,
"no-empty-character-class": 2,
"no-empty-pattern": 2,
"no-ex-assign": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-boolean-cast": 2,
"no-eval": 2,
"no-extra-parens": 0,
"no-ex-assign": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-func-assign": 2,
Expand All @@ -123,66 +93,95 @@
"no-inner-declarations": 2,
"no-invalid-regexp": 2,
"no-iterator": 2,
"no-labels": 0,
"no-label-var": 2,
"no-lone-blocks": 0,
"no-loop-func": 0,
"no-mixed-operators": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-spaces": 2,
"no-multiple-empty-lines": [2, {"max": 2}],
"no-multi-assign": 0,
"no-multi-spaces": 2,
"no-multi-str": 0,
"no-new": 0,
"no-new-func": 2,
"no-new-object": 2,
"no-new-wrappers": 2,
"no-octal-escape": 2,
"no-octal": 2,
"no-obj-calls": 2,
"no-octal": 2,
"no-octal-escape": 2,
"no-process-exit": 0,
"no-proto": 2,
"no-prototype-builtins": 0,
"no-redeclare": 2,
"no-regex-spaces": 2,
"no-restricted-syntax": [2, "WithStatement"],
"no-return-assign": 0,
"no-return-await": 0,
"no-self-assign": [2, {"props": true}],
"no-script-url": 2,
"no-self-assign": [2, {"props": true}],
"no-sequences": 2,
"no-shadow": 0,
"no-shadow-restricted-names": 2,
"no-sparse-arrays": 2,
"no-tabs": 2,
"no-template-curly-in-string": 2,
"no-this-before-super": 2,
"no-trailing-spaces": [2, {"skipBlankLines": false}],
"no-undef-init": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-underscore-dangle": 0,
"no-unsafe-finally": 2,
"no-unsafe-negation": 2,
"no-unused-expressions": 0,
// Ignoring unused last "next" argument in Express error handlers
"no-unused-vars": [2, {"argsIgnorePattern": "^next$"}],
"no-useless-computed-key": 2,
"no-useless-escape": 2,
"no-useless-rename": 2,
"no-useless-return": 2,
"no-use-before-define": [1, "nofunc"],
"no-var": 2,
"no-with": 2,
"one-var": [2, "never"],
"object-curly-spacing": [2, "always"],
"object-curly-newline": [2, {"consistent": true}],
"object-curly-spacing": [2, "always"],
"object-property-newline": [2, {"allowAllPropertiesOnSameLine": true}],
"object-shorthand": [2, "always"],
"one-var": [2, "never"],
"padding-line-between-statements": [2,
{"blankLine": "always", "prev": "directive", "next": "*"}
],
"prefer-const": [2, {"destructuring": "all"}],
"prefer-destructuring": [2, {
"array": false,
"object": true
}],
"prefer-numeric-literals": 2,
"prefer-promise-reject-errors": [2, {"allowEmptyReject": true}],
"prefer-reflect": 0,
"prefer-spread": 2,
"quotes": [2, "single", "avoid-escape"],
"jsx-quotes": [2, "prefer-double"],
"quote-props": 0,
"require-await": 0,
"require-yield": 2,
"rest-spread-spacing": [2, "never"],
"semi": [2, "always", {"omitLastInOneLineBlock": true}],
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"space-before-blocks": [2, "always"],
"semi-spacing": 0,
"semi-style": [2, "last"],
// Setting "error" won't allow to comment blocks of code with IDE shortcut
"spaced-comment": 0,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"space-infix-ops": 2,
"space-unary-ops": 0,
"strict": 0,
"symbol-description": 2,
"switch-colon-spacing": 2,
"template-tag-spacing": [2, "never"],
"yoda": [2, "never"],
"use-isnan": 2,
"unicode-bom": 0,
"use-isnan": 2,
"valid-typeof": [2, {"requireStringLiterals": true}],
"wrap-iife": [2, "inside"]
"wrap-iife": [2, "inside"],
"yoda": [2, "never"]
}
}

0 comments on commit 85a1923

Please sign in to comment.