[eslint config] [base] [breaking] valid-typeof: enable requireStringLiterals option

This commit is contained in:
Jordan Harband
2016-09-06 10:48:21 -07:00
parent 06ff74801b
commit d7d606ec0d

View File

@@ -106,6 +106,7 @@ module.exports = {
'valid-jsdoc': 'off',
// ensure that the results of typeof are compared against a valid string
'valid-typeof': 'error'
// http://eslint.org/docs/rules/valid-typeof
'valid-typeof': ['error', { requireStringLiterals: true }],
}
};