UNPKG

array.prototype.splice

Version:

An ES5 spec-compliant `Array.prototype.splice` shim/polyfill/replacement that works as far down as ES3.

46 lines (42 loc) 735 B
{ "root": true, "extends": "@ljharb", "rules": { "array-bracket-newline": 0, "id-length": 0, "max-lines-per-function": 0, "max-statements": 0, "new-cap": [2, { "capIsNewExceptions": [ "ArraySpeciesCreate", "Call", "CreateDataPropertyOrThrow", "DeletePropertyOrThrow", "Get", "GetIntrinsic", "HasProperty", "IsArray", "IsCallable", "LengthOfArrayLike", "RequireObjectCoercible", "Set", "ToIntegerOrInfinity", "ToObject", "ToString", "ToUint32", ] }], "no-magic-numbers": 0, }, "overrides": [ { "files": "test/**", "rules": { "max-len": 0, "max-lines-per-function": 0, "no-invalid-this": 1, "strict": 0, }, }, ], }