UNPKG

1.09 kBJavaScriptView Raw
1/*
2Copyright 2013-2014 OCAD University
3
4Licensed under the Educational Community License (ECL), Version 2.0 or the New
5BSD license. You may not use this file except in compliance with one these
6Licenses.
7
8You may obtain a copy of the ECL 2.0 License and BSD License at
9https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt
10*/
11"use strict";
12module.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};