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:
Jared Wein 2016-12-30 18:32:56 -05:00
Родитель c2bd027ba3
Коммит 4e35ed6e8a
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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"}],