From 51b51331ba08b3cb58bbc88c37b82fcf17de2766 Mon Sep 17 00:00:00 2001 From: jongleberry Date: Fri, 6 Nov 2015 09:37:35 -0800 Subject: [PATCH] us eslint-plugin-babel for better listing --- .eslintrc | 8 +++++++- package.json | 7 +++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.eslintrc b/.eslintrc index efce1dc..7f50cc1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,13 +3,19 @@ parser: babel-eslint extends: standard +plugins: [ + "babel" +] + rules: + arrow-parens: 0 + babel/arrow-parens: [2, "as-needed"] + eqeqeq: 0 no-var: 2 semi: [2, always] space-before-function-paren: [2, never] yoda: 0 - arrow-parens: [2, "as-needed"] arrow-spacing: 2 dot-location: [2, "property"] prefer-arrow-callback: 2 diff --git a/package.json b/package.json index 1310b2f..fb9d55a 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,6 @@ "license": "MIT", "dependencies": { "accepts": "^1.2.2", - "babel-core": "^6.1.2", - "babel-preset-stage-3": "^6.1.2", "content-disposition": "~0.5.0", "content-type": "^1.0.0", "cookies": "~0.5.0", @@ -44,11 +42,12 @@ "vary": "^1.0.0" }, "devDependencies": { - "babel-core": "^6.0.20", + "babel-core": "^6.1.2", "babel-eslint": "^4.1.3", - "babel-preset-stage-3": "^6.0.15", + "babel-preset-stage-3": "^6.1.2", "eslint": "^1.6.0", "eslint-config-standard": "^4.4.0", + "eslint-plugin-babel": "^2.1.1", "eslint-plugin-standard": "^1.3.1", "istanbul": "^0.4.0", "mocha": "^2.0.1",