set.prototype.difference
Version:
An ESnext spec-compliant `Set.prototype.difference` shim/polyfill/replacement that works as far down as ES3
50 lines (45 loc) • 754 B
Plain Text
{
"root": true,
"extends": "@ljharb",
"rules": {
"id-length": 0,
"multiline-comment-style": 0,
"new-cap": [2, {
"capIsNewExceptions": [
"Call",
"GetIntrinsic",
"GetIteratorFromMethod",
"GetSetRecord",
"IteratorStepValue",
"RequireObjectCoercible",
"SetDataHas",
"SetDataSize",
"ToBoolean",
// GetSetRecord
"Get",
"IsCallable",
"ToIntegerOrInfinity",
"ToNumber",
"Type",
"Call",
"Get",
"IsCallable",
"Type",
// SetDataHas
"IsArray",
"SameValueZero",
],
}],
"object-curly-newline": "off",
"sort-keys": "off",
},
"overrides": [
{
"files": "test/**/*",
"rules": {
"max-lines-per-function": 0,
"max-params": 0,
},
},
],
}