Basic linting for *.less files
Change-Id: I1ca3b1c643ac12bc1fc986b41f56456bce5d36af
This commit is contained in:
parent
0d62f379bc
commit
22944d7d97
|
@ -24,8 +24,6 @@ lock
|
|||
node_modules
|
||||
nailgun/static/js/libs/bower
|
||||
|
||||
nailgun/static/css/styles.css
|
||||
|
||||
*.egg
|
||||
.testrepository
|
||||
.tox
|
||||
|
|
|
@ -52,6 +52,19 @@ module.exports = function(grunt) {
|
|||
}
|
||||
},
|
||||
lintspaces: {
|
||||
styles: {
|
||||
options: {
|
||||
newline: true,
|
||||
indentation: 'spaces',
|
||||
spaces: 2,
|
||||
newlineMaximum: 2,
|
||||
trailingspaces: true,
|
||||
ignores: ['js-comments']
|
||||
},
|
||||
src: [
|
||||
'static/**/*.less'
|
||||
]
|
||||
},
|
||||
javascript: {
|
||||
options: {
|
||||
newline: true,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue