eslint-plugin-promise
eslint-plugin-promise copied to clipboard
Access to `Promise` methods in a way different from dot trigger `spec-only`
Promise['all']; // error Avoid using non-standard 'Promise.undefined' promise/spec-only
var method = 'all';
Promise[method]; // error Avoid using non-standard 'Promise.method' promise/spec-only
Unlike #533, it can't be worked around by adding undefined or something like that to allowedMethods.