-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
29 lines (23 loc) · 883 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
Copyright 2013-2016 OCAD University
Licensed under the Educational Community License (ECL), Version 2.0 or the New
BSD license. You may not use this file except in compliance with one these
Licenses.
You may obtain a copy of the ECL 2.0 License and BSD License at
https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt
*/
/* eslint-env node */
"use strict";
module.exports = function (grunt) {
grunt.initConfig({
eslint: {
all: ["src/**/*.js", "tests/**/*.js", "demos/**/*.js", "examples/**/*.js", "*.js"]
},
jsonlint: {
all: ["*.json", "src/**/*.json", "tests/**/*.json", "demos/**/*.json", "!node_modules"]
}
});
grunt.loadNpmTasks("fluid-grunt-eslint");
grunt.loadNpmTasks("grunt-jsonlint");
grunt.registerTask("lint", "Apply eslint and jsonlint", ["eslint", "jsonlint"]);
};