From dbef4039bd88afd976630f54b0285ff89d306b30 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 14 Oct 2016 18:18:48 +0200 Subject: [PATCH] Add jsonlint dependency. --- .eslintrc.json | 20 -------------------- grunt-config/jsonlint.js | 12 ++++++++++++ package.json | 1 + 3 files changed, 13 insertions(+), 20 deletions(-) delete mode 100644 .eslintrc.json create mode 100644 grunt-config/jsonlint.js diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 1308deb..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "google", - "installedESLint": true, - "rules": { - "indent": ["error", 4] - }, - "plugins": [ - "angular", - "html", - "jquery", - "security", - "this" - ], - "globals": { - "angular": false, - "moment": false, - "Highcharts": false, - "$": false - } -} diff --git a/grunt-config/jsonlint.js b/grunt-config/jsonlint.js new file mode 100644 index 0000000..d85a739 --- /dev/null +++ b/grunt-config/jsonlint.js @@ -0,0 +1,12 @@ +'use strict'; + +module.exports = { + toolchain: { + src: ['.eslintrc.json', 'package.json', 'bower.json'], + options: { + formatter: 'prose', + reporter: 'jslint', + indent: 2 + } + } +}; diff --git a/package.json b/package.json index ec469b7..6d5b902 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "grunt-include-source": "^0.7.1", "grunt-jscs": "^2.7.0", "grunt-newer": "^1.1.1", + "grunt-jsonlint": "^1.1.0", "grunt-ng-annotate": "~2.0", "grunt-shell": "^1.1.2", "grunt-usemin": "^3.1.1",