зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1326479 - Enable more options for the 'indent' rule. r=Gijs
MozReview-Commit-ID: EuxayyLNHNt --HG-- extra : rebase_source : f13b679204d89861e608adcb774a32cf8a960e43
This commit is contained in:
Родитель
c2bd027ba3
Коммит
4e35ed6e8a
|
@ -24,7 +24,7 @@ module.exports = { // eslint-disable-line no-undef
|
|||
//"curly": "error",
|
||||
"dot-notation": "error",
|
||||
"eol-last": "error",
|
||||
"indent": ["warn", 2, {"SwitchCase": 1}],
|
||||
"indent": ["warn", 2, {"SwitchCase": 1, "ArrayExpression": "first", "ObjectExpression": "first"}],
|
||||
// "key-spacing": ["warn", {"beforeColon": false, "afterColon": true}],
|
||||
"keyword-spacing": "warn",
|
||||
"max-nested-callbacks": ["error", 3],
|
||||
|
|
|
@ -142,7 +142,7 @@ module.exports = {
|
|||
// Only useful in a node environment.
|
||||
"handle-callback-err": "off",
|
||||
// Tab width.
|
||||
"indent": ["error", 2, {"SwitchCase": 1}],
|
||||
"indent": ["error", 2, {"SwitchCase": 1, "ArrayExpression": "first", "ObjectExpression": "first"}],
|
||||
// Enforces spacing between keys and values in object literal properties.
|
||||
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
|
||||
// Enforces unix style line breaks.
|
||||
|
|
|
@ -101,7 +101,7 @@ module.exports = { // eslint-disable-line no-undef
|
|||
"generator-star-spacing": ["error", {"before": false, "after": true}],
|
||||
|
||||
// Two space indent
|
||||
"indent": ["error", 2, {"SwitchCase": 1}],
|
||||
"indent": ["error", 2, {"SwitchCase": 1, "ArrayExpression": "first", "ObjectExpression": "first"}],
|
||||
|
||||
// Space after colon not before in property declarations
|
||||
"key-spacing": ["error", {"beforeColon": false, "afterColon": true, "mode": "minimum"}],
|
||||
|
|
Загрузка…
Ссылка в новой задаче