mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 07:47:54 -05:00
[eslint config] [base] [breaking] valid-typeof: enable requireStringLiterals option
This commit is contained in:
@@ -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 }],
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user