object.getownpropertydescriptors
Version:
ES2017 spec-compliant shim for `Object.getOwnPropertyDescriptors` that works in ES5.
31 lines (29 loc) • 423 B
JavaScript
import ljharb from '@ljharb/eslint-config/flat';
export default [
...ljharb,
{
rules: {
'id-length': [
'error',
{ max: 30, min: 1 },
],
'new-cap': [
'error',
{
capIsNewExceptions: [
'CreateDataProperty',
'IsCallable',
'RequireObjectCoercible',
'ToObject',
],
},
],
},
},
{
files: ['test/**'],
rules: {
'no-invalid-this': 'warn',
},
},
];