UNPKG

1.18 kBJavaScriptView Raw
1/*
2Copyright 2013-2018 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 lintAll: {
16 sources: {
17 js: ["./lib/**/*.js", "./tests/**/*.js", "./*.js"],
18 json: ["lib/**/*.json", "tests/data/*.json", "tests/configs/*.json", "examples/**/*.json", "./*.json"],
19 json5: ["lib/**/*.json5", "tests/data/*.json5", "tests/configs/*.json5", "examples/**/*.json5"],
20 md: ["./*.md", "docs/**/*.md", "examples/**/*.md"],
21 other: ["./.*"]
22 }
23 },
24 markdownlint: {
25 options: {
26 config: {
27 "single-h1": false
28 }
29 }
30 }
31 });
32
33 grunt.loadNpmTasks("gpii-grunt-lint-all");
34 grunt.registerTask("lint", "Perform all standard lint checks.", ["lint-all"]);
35};