fix bug with config, use other way of specifying severity

This commit is contained in:
Henry Zhu 2016-06-29 17:33:26 -04:00
parent 13feb7278e
commit a48f2e209c

View File

@ -3,51 +3,51 @@ module.exports = {
extends: "eslint:recommended", extends: "eslint:recommended",
plugins: ["flow-vars", "babel"], plugins: ["flow-vars", "babel"],
rules: { rules: {
"flow-vars/define-flow-type": 1, "flow-vars/define-flow-type": "warn",
"flow-vars/use-flow-type": 1, "flow-vars/use-flow-type": "warn",
quotes: [2, "double"], quotes: ["error", "double"],
"no-var": 2, "no-var": "error",
"keyword-spacing": 2, "keyword-spacing": "error",
strict: 0, strict: "off",
"no-underscore-dangle": 0, "no-underscore-dangle": "off",
curly: 0, curly: "off",
"no-multi-spaces": 0, "no-multi-spaces": "off",
"key-spacing": 0, "key-spacing": "off",
"no-return-assign": 0, "no-return-assign": "off",
"consistent-return": 0, "consistent-return": "off",
"no-shadow": 0, "no-shadow": "off",
"comma-dangle": 0, "comma-dangle": "off",
"no-use-before-define": 0, "no-use-before-define": "off",
"no-empty": 0, "no-empty": "off",
"new-parens": 0, "new-parens": "off",
"no-cond-assign": 0, "no-cond-assign": "off",
"no-fallthrough": 0, "no-fallthrough": "off",
"new-cap": 0, "new-cap": "off",
"no-loop-func": 0, "no-loop-func": "off",
"no-unreachable": 0, "no-unreachable": "off",
"no-labels": 0, "no-labels": "off",
"no-process-exit": 0, "no-process-exit": "off",
camelcase: 0, camelcase: "off",
"no-console": 0, "no-console": "off",
"no-constant-condition": 0, "no-constant-condition": "off",
"no-inner-declarations": 0, "no-inner-declarations": "off",
"no-case-declarations": 0, "no-case-declarations": "off",
semi: [2, "always"], semi: ["error", "always"],
// soft indent of 2 characters // soft indent of 2 characters
"indent": [2, 2], "indent": ["error", 2],
// maximum length of 110 characters // maximum length of 110 characters
"max-len": [2, 110, 2], "max-len": ["error", 110, 2],
// Enforce parens around arrow function arguments // Enforce parens around arrow function arguments
"babel/arrow-parens": [2, "always"], "babel/arrow-parens": ["error", "always"],
// Require a space on each side of arrow operator // Require a space on each side of arrow operator
"arrow-spacing": [2, { before: true, after: true }], "arrow-spacing": ["error", { before: true, after: true }],
// Prevent using => in a condition where <= is intended // Prevent using => in a condition where <= is intended
"no-confusing-arrow": 2, "no-confusing-arrow": "error",
// prevent no space in `if (){` // prevent no space in `if (){`
"space-before-blocks": "always" "space-before-blocks": ["error", "always"]
}, },
globals: { globals: {