diff --git a/eslint/babel-eslint-config-internal/index.js b/eslint/babel-eslint-config-internal/index.js index 4a827248f7..a249588d27 100644 --- a/eslint/babel-eslint-config-internal/index.js +++ b/eslint/babel-eslint-config-internal/index.js @@ -2,36 +2,17 @@ module.exports = { parser: "babel-eslint", extends: "eslint:recommended", plugins: ["flowtype"], + parserOptions: { + ecmaVersion: 2017, + sourceType: "module" + }, rules: { - "arrow-parens": ["error", "always"], - "arrow-spacing": ["error", { before: true, after: true }], camelcase: "off", - "comma-dangle": ["error", "always-multiline"], - "comma-spacing": "error", "consistent-return": "off", curly: "off", - "func-call-spacing": "error", - indent: ["error", 2, { - SwitchCase: 1, - outerIIFEBody: 1, - FunctionDeclaration: { - parameters: 1, - body: 1, - }, - FunctionExpression: { - parameters: 1, - body: 1, - }, - CallExpression: { - parameters: 1, - } - }], "linebreak-style": ["error", "unix"], - "key-spacing": "error", - "keyword-spacing": "error", "max-len": ["error", 110, 2], "new-cap": "off", - "new-parens": "off", "no-case-declarations": "off", "no-cond-assign": "off", "no-confusing-arrow": "error", @@ -40,23 +21,16 @@ module.exports = { "no-empty": "off", "no-fallthrough": "off", "no-inner-declarations": "off", - "no-multi-spaces": "error", "no-labels": "off", "no-loop-func": "off", "no-process-exit": "off", "no-return-assign": "off", "no-shadow": "off", - "no-trailing-spaces": "error", "no-underscore-dangle": "off", "no-unreachable": "off", "no-use-before-define": "off", "no-var": "error", - "object-curly-spacing": ["error", "always"], "prefer-const": "error", - quotes: ["error", "double"], - "space-before-blocks": ["error", "always"], - "space-infix-ops": "error", - semi: ["error", "always"], strict: "off", "flowtype/define-flow-type": "warn", "flowtype/use-flow-type": "warn", @@ -68,7 +42,6 @@ module.exports = { }, env: { node: true, - es6: true, browser: true } };