From be5e0fea00c334235b8f933814d20c48332c05df Mon Sep 17 00:00:00 2001 From: lukasmartinelli Date: Tue, 20 Sep 2016 18:10:57 +0200 Subject: [PATCH] Use babel as parser for eslint --- .travis.yml | 1 + package.json | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3190c85..ed333b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,3 +8,4 @@ install: - npm install script: - npm run build + - npm run lint diff --git a/package.json b/package.json index f499b37..7d8d958 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,9 @@ "esversion": 6 }, "eslintConfig": { + "plugins": [ + "react" + ], "extend": [ "plugin:react/recommended" ], @@ -55,6 +58,7 @@ "node": true, "es6": true }, + "parser": "babel-eslint", "parserOptions": { "ecmaVersion": 6, "sourceType": "module", @@ -63,13 +67,11 @@ "experimentalObjectRestSpread": true, "jsx": true } - }, - "plugins": [ - "react" - ] + } }, "devDependencies": { "babel-core": "6.14.0", + "babel-eslint": "^6.1.2", "babel-loader": "6.2.4", "babel-plugin-transform-class-properties": "^6.11.5", "babel-plugin-transform-decorators-legacy": "^1.3.4", @@ -79,7 +81,7 @@ "babel-preset-react": "6.11.1", "babel-runtime": "^6.11.6", "css-loader": "0.25.0", - "eslint": "^3.4.0", + "eslint": "^3.5.0", "eslint-plugin-react": "^6.2.0", "extract-text-webpack-plugin": "^1.0.1", "file-loader": "0.9.0",