forked from fluid-project/infusion-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
44 lines (40 loc) · 1.65 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* eslint-env node */
/*
Copyright 2017 Raising the Floor, International
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
*/
"use strict";
module.exports = function (grunt) {
grunt.initConfig({
lintAll: {
options: {
config: {
"first-header-h1": false // Docpad takes care of this for us.
}
},
sources: {
md: ["./*.md", "./src/**/*.md", "./tests/**/*.md", "!./src/static/lib"],
js: ["./*.js", "./src/**/*.js", "./tests/**/*.js", "!./src/static/lib"],
json: ["./*.json", "./.*.json", "./src/**/*.json", "tests/**/*.json", "!./src/static/lib"],
json5: ["./*.json5", "./src/**/*.json5", "tests/**/*.json5", "!./src/static/lib"],
other: ["./.*"]
}
},
markdownlint: {
options: {
config: {
// See https://github.com/DavidAnson/markdownlint#rules--aliases for rule names and meanings.
"first-header-h1": false, // Docpad takes care of this for us.
"first-line-h1": false, // Docpad also takes care of this for us.
"line-length": false
}
}
}
});
grunt.loadNpmTasks("gpii-grunt-lint-all");
grunt.registerTask("lint", "Perform all standard lint checks.", ["lint-all"]);
};