diff --git a/.eslintrc.js b/.eslintrc.js index bb9a63802..833e7e3b3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -201,6 +201,16 @@ module.exports = { match: false }, }, + { + // When defining properties on an object... + selector: 'objectLiteralProperty', + // ... do not enforce any particular format... + format: null, + // ... when the property name is enclosed in quotes + modifiers: ['requiresQuotes'], + // The above is useful for things like quoting HTTP header names + // i.e. { 'Content-Type': 'application/json' } + }, { selector: 'variable', // PascalCase for variables is added to allow exporting a singleton, function library, or bare object as in