eslint-plugin-unicorn
Version:
Various awesome ESLint rules
42 lines (38 loc) • 497 B
JavaScript
const enforceNew = [
'Object',
'Array',
'ArrayBuffer',
'BigInt64Array',
'BigUint64Array',
'DataView',
'Date',
'Error',
'Float32Array',
'Float64Array',
'Function',
'Int8Array',
'Int16Array',
'Int32Array',
'Map',
'WeakMap',
'Set',
'WeakSet',
'Promise',
'RegExp',
'Uint8Array',
'Uint16Array',
'Uint32Array',
'Uint8ClampedArray'
];
const disallowNew = [
'BigInt',
'Boolean',
'Number',
'String',
'Symbol'
];
module.exports = {
enforceNew,
disallowNew
};
;