1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | "use strict";
|
12 | module.exports = function (grunt) {
|
13 |
|
14 | grunt.initConfig({
|
15 | eslint: {
|
16 | src: ["./lib/**/*.js", "./tests/**/*.js", "./*.js"]
|
17 | },
|
18 | jsonlint: {
|
19 | src: ["lib/**/*.json", "tests/data/*.json", "tests/configs/*.json", "examples/**/*.json", "./*.json"]
|
20 | },
|
21 | json5lint: {
|
22 | src: ["lib/**/*.json5", "tests/data/*.json5", "tests/configs/*.json5", "examples/**/*.json5"]
|
23 | }
|
24 | });
|
25 |
|
26 | grunt.loadNpmTasks("grunt-jsonlint");
|
27 | grunt.loadNpmTasks("fluid-grunt-json5lint");
|
28 | grunt.loadNpmTasks("grunt-shell");
|
29 | grunt.loadNpmTasks("fluid-grunt-eslint");
|
30 |
|
31 | grunt.registerTask("lint", "Apply jshint, jsonlint and json5lint", ["eslint", "jsonlint", "json5lint"]);
|
32 | };
|