Caught between two no-restricted-syntax violations
问题 This is my original code: const buildTableContent = (settings) => { const entries = []; for (const key in settings) { for (const subkey in env[key]) { settings is basically a dictionary of dictionary { 'env': {'name': 'prod'}, 'sass: {'app-id': 'a123445', 'app-key': 'xxyyzz'} } It triggered the following AirBnb style guide error: 35:3 error for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the