From f7dbc61d41ff7b5fef04791b172adb4629d43797 Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Thu, 20 Jun 2019 22:52:47 -0700 Subject: [PATCH] chore(lint): alphabetize lint rules (#946) No change to the rules, this just reorders the eslintrc file so there's a sane way to add new rules. Test: npm run lint --- .eslintrc.json | 26 +++++++++++++------------- test/.eslintrc.json | 18 +++++++++--------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index f96d7f5..0b00488 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,25 +5,25 @@ "extends": "airbnb-base/legacy", "rules": { "comma-dangle": ["error", "always-multiline"], - "global-require": "off", - "vars-on-top": "off", - "spaced-comment": ["error", "always", { "markers": ["@", "@include"], "exceptions": ["@", "@commands"] }], - "no-param-reassign": "off", - "no-console": "off", + "consistent-return": "off", "curly": ["error", "multi-line"], "func-names": "off", - "quote-props": "off", - "no-underscore-dangle": "off", + "global-require": "off", "max-len": "off", - "no-use-before-define": "off", - "no-empty": "off", - "no-else-return": "off", - "no-throw-literal": "off", "newline-per-chained-call": "off", - "consistent-return": "off", + "no-console": "off", + "no-else-return": "off", + "no-empty": "off", "no-mixed-operators": "off", - "no-prototype-builtins": "off", "no-multiple-empty-lines": ["error", { "max": 2, "maxBOF": 0, "maxEOF": 0 } ], + "no-param-reassign": "off", + "no-prototype-builtins": "off", + "no-throw-literal": "off", + "no-underscore-dangle": "off", + "no-use-before-define": "off", + "quote-props": "off", + "spaced-comment": ["error", "always", { "markers": ["@", "@include"], "exceptions": ["@", "@commands"] }], + "vars-on-top": "off", "new-cap": ["error", { "capIsNewExceptions": [ "ShellString" diff --git a/test/.eslintrc.json b/test/.eslintrc.json index 6f23f8e..658eeb0 100644 --- a/test/.eslintrc.json +++ b/test/.eslintrc.json @@ -4,19 +4,19 @@ }, "extends": "airbnb-base", "rules": { - "import/no-mutable-exports": "off", - "global-require": "off", - "vars-on-top": "off", - "spaced-comment": ["error", "always", { "markers": ["@", "@include"], "exceptions": ["@"] }], - "no-param-reassign": "off", - "no-console": "off", "curly": "off", + "global-require": "off", + "import/no-mutable-exports": "off", + "max-len": "off", + "no-console": "off", + "no-param-reassign": "off", + "no-underscore-dangle": "off", "no-var": "error", + "prefer-arrow-callback": "off", "prefer-const": "error", "prefer-template": "off", - "prefer-arrow-callback": "off", - "no-underscore-dangle": "off", - "max-len": "off", + "spaced-comment": ["error", "always", { "markers": ["@", "@include"], "exceptions": ["@"] }], + "vars-on-top": "off", "new-cap": ["error", { "capIsNewExceptions": [ "ShellString"