-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathgruntfile.js
45 lines (43 loc) · 1.17 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
45
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
eslint: {
src: 'ob.user.js',
options: {
overrideConfigFile: '.eslintrc.json',
format: require('eslint-stylish-config')
}
},
csslint: {
src: [
'scripts/beyond.css'
],
options: {
'box-model': false, // true: Using width with padding can sometimes make elements larger than you expect.
'gradients': false, // true: Missing vendor-prefixed CSS gradients for Old Webkit (Safari 4+, Chrome).
'ids': false, // true: Don't use IDs in selectors. Selectors should not contain IDs.
'important': false // true: Use of !important. Be careful when using !important declaration.
}
},
lintspaces: {
src: [
'gruntfile.js',
'package.json',
'scripts/beyond.css',
'ob.user.js'
],
options: {
editorconfig: '.editorconfig',
ignores: ['js-comments']
}
}
});
// Load any grunt plugins found in package.json.
require('load-grunt-tasks')(grunt, {scope: 'devDependencies'});
require('@lodder/time-grunt')(grunt);
grunt.registerTask('default', [
'eslint',
'csslint',
'lintspaces'
]);
};