mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
switched to personal fork of grunt-jscs to inclide fix feature
This commit is contained in:
parent
8c0375fed3
commit
ed2928ef31
3 changed files with 16 additions and 6 deletions
3
.jscsrc
3
.jscsrc
|
@ -48,10 +48,11 @@
|
|||
"with"
|
||||
],
|
||||
"validateIndentation": 2,
|
||||
"validateQuoteMarks": { "mark": "'", "escape": true },
|
||||
"disallowMixedSpacesAndTabs": true,
|
||||
"disallowTrailingWhitespace": true,
|
||||
"requireCapitalizedConstructors": true,
|
||||
"requireDotNotation": true,
|
||||
"disallowNewlineBeforeBlockStatements": true,
|
||||
"disallowMultipleLineStrings": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
"grunt-contrib-requirejs": "~0.4.4",
|
||||
"grunt-contrib-watch": "~0.5.3",
|
||||
"grunt-esvm": "~0.3.2",
|
||||
"grunt-jscs": "^1.5.0",
|
||||
"grunt-jscs": "git://github.com/spalger/grunt-jscs.git#addFix",
|
||||
"grunt-mocha": "~0.4.10",
|
||||
"grunt-replace": "^0.7.9",
|
||||
"grunt-run": "^0.2.3",
|
||||
|
|
|
@ -1,11 +1,20 @@
|
|||
module.exports = function (grunt) {
|
||||
return {
|
||||
// just lint the source dir
|
||||
source: {
|
||||
src: '<%= lintThese %>'
|
||||
},
|
||||
options: {
|
||||
config: '.jscsrc'
|
||||
},
|
||||
|
||||
// just lint the source dir
|
||||
source: {
|
||||
src: '<%= lintThese %>',
|
||||
},
|
||||
|
||||
// fix any linting errors that can be fixed
|
||||
fixup: {
|
||||
src: '<%= lintThese %>',
|
||||
options: {
|
||||
fix: true
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue