-
Notifications
You must be signed in to change notification settings - Fork 6
/
tests-Gruntfile-options-override.js
91 lines (84 loc) · 2.44 KB
/
tests-Gruntfile-options-override.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
Copyright (c) 2018 Raising the Floor International.
Licensed under the BSD-3-Clause license.
*/
/*
A test fixture to verify that we can override configuration options for one or more built-in checks.
NOTE: DO NOT use this file as a template, this is a test fixture, and only works from this package itself. See the
README for usage instructions.
*/
"use strict";
module.exports = function (grunt) {
grunt.initConfig({
lintAll: {
sources: {
js: ["./tests/fixtures/js/bad.js"],
json: ["./tests/fixtures/json/good.json"],
json5: ["./tests/fixtures/json5/dangling-comma.json5"],
md: ["./tests/fixtures/md/bad.md"],
css: ["./tests/fixtures/css/good.css"],
scss: ["./tests/fixtures/scss/good.scss"],
other: ["./tests/fixtures/other/.bad"]
}
},
eslint: {
js: {
options: {
rules: {
"eol-last": "off",
"strict": "off",
"no-undef": "off",
"indent": "off"
}
}
},
md: {
options: {
rules: {
semi: "off"
}
}
}
},
json5lint: {
options: {
enableJSON5: true
}
},
lintspaces: {
newlines: {
options: {
newline: false
}
},
jsonindentation: {
options: {
indentation: false
}
}
},
markdownlint: {
options: {
config: {
"first-header-h1": false,
"first-line-h1": false
}
}
},
"json-eslint": {
options: {
"rules": {
"comma-dangle": "off"
}
}
},
stylelint: {
rules: {
"declaration-block-trailing-semicolon": "always"
}
}
});
grunt.loadTasks("tasks");
// Disable the mdjsonlint task, which has no configurable options, and which would otherwise fail.
grunt.registerTask("mdjsonlint", fluid.identity);
};