From a48f2e209cc925de6afaac2e3b08770ee0f008e8 Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Wed, 29 Jun 2016 17:33:26 -0400 Subject: [PATCH] fix bug with config, use other way of specifying severity --- eslint/babel-eslint-config-internal/index.js | 72 ++++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/eslint/babel-eslint-config-internal/index.js b/eslint/babel-eslint-config-internal/index.js index 11a9baa560..2643eaf350 100644 --- a/eslint/babel-eslint-config-internal/index.js +++ b/eslint/babel-eslint-config-internal/index.js @@ -3,51 +3,51 @@ module.exports = { extends: "eslint:recommended", plugins: ["flow-vars", "babel"], rules: { - "flow-vars/define-flow-type": 1, - "flow-vars/use-flow-type": 1, - quotes: [2, "double"], - "no-var": 2, - "keyword-spacing": 2, - strict: 0, - "no-underscore-dangle": 0, - curly: 0, - "no-multi-spaces": 0, - "key-spacing": 0, - "no-return-assign": 0, - "consistent-return": 0, - "no-shadow": 0, - "comma-dangle": 0, - "no-use-before-define": 0, - "no-empty": 0, - "new-parens": 0, - "no-cond-assign": 0, - "no-fallthrough": 0, - "new-cap": 0, - "no-loop-func": 0, - "no-unreachable": 0, - "no-labels": 0, - "no-process-exit": 0, - camelcase: 0, - "no-console": 0, - "no-constant-condition": 0, - "no-inner-declarations": 0, - "no-case-declarations": 0, - semi: [2, "always"], + "flow-vars/define-flow-type": "warn", + "flow-vars/use-flow-type": "warn", + quotes: ["error", "double"], + "no-var": "error", + "keyword-spacing": "error", + strict: "off", + "no-underscore-dangle": "off", + curly: "off", + "no-multi-spaces": "off", + "key-spacing": "off", + "no-return-assign": "off", + "consistent-return": "off", + "no-shadow": "off", + "comma-dangle": "off", + "no-use-before-define": "off", + "no-empty": "off", + "new-parens": "off", + "no-cond-assign": "off", + "no-fallthrough": "off", + "new-cap": "off", + "no-loop-func": "off", + "no-unreachable": "off", + "no-labels": "off", + "no-process-exit": "off", + camelcase: "off", + "no-console": "off", + "no-constant-condition": "off", + "no-inner-declarations": "off", + "no-case-declarations": "off", + semi: ["error", "always"], // soft indent of 2 characters - "indent": [2, 2], + "indent": ["error", 2], // maximum length of 110 characters - "max-len": [2, 110, 2], + "max-len": ["error", 110, 2], // 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 - "arrow-spacing": [2, { before: true, after: true }], + "arrow-spacing": ["error", { before: true, after: true }], // Prevent using => in a condition where <= is intended - "no-confusing-arrow": 2, + "no-confusing-arrow": "error", // prevent no space in `if (){` - "space-before-blocks": "always" + "space-before-blocks": ["error", "always"] }, globals: {