From 651b517fd09d03538a78e5780e5ef03912269cb7 Mon Sep 17 00:00:00 2001 From: alexdee2007 Date: Wed, 8 Nov 2017 06:20:52 +0200 Subject: [PATCH] Core: Add plugin eslint-plugin-json (#7869) * Add plugin eslint-plugin-json Add plugin eslint-plugin-json for parse build/salad.config.json * Add plugin eslint-plugin-json Add plugin eslint-plugin-json for parse build/salad.config.json --- .eslintrc | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index ba8a1b188..efb7c4f79 100644 --- a/.eslintrc +++ b/.eslintrc @@ -6,7 +6,7 @@ "expect": true, "sinon": true }, - "plugins": ['vue'], + "plugins": ['vue','json'], "extends": 'elemefe', "parserOptions": { "ecmaFeatures": { diff --git a/package.json b/package.json index 33bbfd39b..d6fae6758 100644 --- a/package.json +++ b/package.json @@ -82,6 +82,7 @@ "css-loader": "^0.28.7", "es6-promise": "^4.0.5", "eslint": "^3.10.2", + "eslint-plugin-json": "^1.2.0", "extract-text-webpack-plugin": "^3.0.1", "file-loader": "^1.1.5", "file-save": "^0.2.0",