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",