Skip to content

Commit

Permalink
Sort rules
Browse files Browse the repository at this point in the history
  • Loading branch information
samme committed May 15, 2020
1 parent 8984131 commit 85793a0
Showing 1 changed file with 23 additions and 27 deletions.
50 changes: 23 additions & 27 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,7 @@
"p2": true
},
"rules": {

"no-cond-assign": [ "warn", "except-parens" ],
"no-duplicate-case": [ "error" ],
"no-prototype-builtins": "off",

"accessor-pairs": "error",
"curly": "error",
"eqeqeq": [ "warn", "smart" ],
"no-alert": "error",
"no-caller": "error",
"no-console": [ "error", { "allow": ["error", "warn", "log", "group", "groupEnd"] } ],
"no-empty": "warn",
"no-floating-decimal": "error",
"no-invalid-this": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-redeclare": "off",
"no-self-assign": "error",
"no-self-compare": "error",
"no-unused-vars": "warn",
"yoda": [ "error", "never" ],

"array-bracket-spacing": [ "error", "always" ],
"block-spacing": [ "error", "always" ],
"brace-style": [ "error", "allman", { "allowSingleLine": true } ],
Expand All @@ -45,38 +22,57 @@
"comma-style": [ "error", "last" ],
"computed-property-spacing": [ "error", "never" ],
"consistent-this": "off",
"curly": "error",
"dot-notation": [ "error" ],
"eol-last": [ "error" ],
"eqeqeq": [ "warn", "smart" ],
"func-call-spacing": [ "warn", "never" ],
"indent": [ "error", 4, { "SwitchCase": 1 } ],
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true }],
"linebreak-style": [ "off" ],
"lines-around-comment": [ "warn", { "beforeBlockComment": true, "afterBlockComment": false, "beforeLineComment": true, "afterLineComment": false, "allowBlockStart": true, "allowBlockEnd": false, "allowObjectStart": true, "allowArrayStart": true }],
"multiline-comment-style": ["warn", "starred-block"],
"new-parens": "error",
"no-constant-condition": 0,
"no-alert": "error",
"no-array-constructor": "error",
"no-caller": "error",
"no-cond-assign": [ "warn", "except-parens" ],
"no-console": [ "error", { "allow": ["error", "warn", "log", "group", "groupEnd"] } ],
"no-constant-condition": 0,
"no-duplicate-case": [ "error" ],
"no-empty": "warn",
"no-floating-decimal": "error",
"no-invalid-this": "error",
"no-lonely-if": "off",
"no-mixed-spaces-and-tabs": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-plusplus": "off",
"no-prototype-builtins": "off",
"no-redeclare": "off",
"no-self-assign": "error",
"no-self-compare": "error",
"no-trailing-spaces": [ "error", { "skipBlankLines": true, "ignoreComments": true } ],
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"no-whitespace-before-property": "error",
"object-curly-newline": [ "error", { "multiline": true, "minProperties": 0 } ],
"one-var-declaration-per-line": [ "error", "initializations" ],
"padded-blocks": [ "error", "never" ],
"quote-props": [ "error", "as-needed" ],
"quotes": [ "error", "single" ],
"semi-spacing": [ "error", { "before": false, "after": true } ],
"semi": [ "error", "always" ],
"semi-spacing": [ "error", { "before": false, "after": true } ],
"space-before-blocks": "error",
"space-before-function-paren": "error",
"space-in-parens": [ "error", "never" ],
"space-infix-ops": [ "error", { "int32Hint": true } ],
"spaced-comment": [ "error", "always", { "block": { "balanced": true, "exceptions": ["*", "!"] }} ],
"valid-jsdoc": "warn",
"wrap-regex": "error",
"spaced-comment": [ "error", "always", { "block": { "balanced": true, "exceptions": ["*", "!"] }} ]

"yoda": [ "error", "never" ]
}
}

0 comments on commit 85793a0

Please sign in to comment.