chore(lint): Enable various rules that are already passing

This commit is contained in:
Ed Lee 2018-01-19 11:20:07 -08:00
Родитель 406d7a6f50
Коммит 53bf35dac0
1 изменённых файлов: 9 добавлений и 0 удалений

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

@ -64,9 +64,11 @@ module.exports = {
"default-case": 0,
"dot-location": [2, "property"],
"eqeqeq": 2,
"for-direction": 2,
"func-name-matching": 2,
"func-names": 0,
"func-style": 0,
"getter-return": 2,
"global-require": 0,
"guard-for-in": 2,
"handle-callback-err": 2,
@ -98,6 +100,7 @@ module.exports = {
"newline-per-chained-call": [2, {"ignoreChainWithDepth": 3}],
"no-alert": 2,
"no-bitwise": 0,
"no-buffer-constructor": 2,
"no-catch-shadow": 2,
"no-confusing-arrow": [2, {"allowParens": true}],
"no-console": 1,
@ -160,6 +163,7 @@ module.exports = {
"no-var": 2,
"no-void": 2,
"no-warning-comments": 0, // TODO: Change to `1`?
"nonblock-statement-body-position": 2,
"object-curly-newline": [2, {"multiline": true}],
"object-curly-spacing": [2, "never"],
"object-property-newline": [2, {"allowMultiplePropertiesPerLine": true}],
@ -171,6 +175,7 @@ module.exports = {
"prefer-arrow-callback": ["error", {"allowNamedFunctions": true}],
"prefer-const": 0, // TODO: Change to `1`?
"prefer-destructuring": [2, {"AssignmentExpression": {"array": true}, "VariableDeclarator": {"array": true, "object": true}}],
"prefer-numeric-literals": 2,
"prefer-promise-reject-errors": 2,
"prefer-reflect": 0,
"prefer-rest-params": 2,
@ -181,11 +186,15 @@ module.exports = {
"require-await": 2,
"require-jsdoc": 0,
"semi-spacing": [2, {"before": false, "after": true}],
"semi-style": 2,
"sort-imports": [2, {"ignoreCase": true}],
"sort-vars": 2,
"space-in-parens": [2, "never"],
"strict": 0,
"switch-colon-spacing": 2,
"symbol-description": 2,
"template-curly-spacing": [2, "never"],
"template-tag-spacing": 2,
"unicode-bom": [2, "never"],
"valid-jsdoc": [0, {"requireReturn": false, "requireParamDescription": false, "requireReturnDescription": false}],
"vars-on-top": 2,