luhn-generator
Version:
A generator of numbers that passes the validation of Luhn algorithm or Luhn formula, also known as the 'modulus 10' or 'mod 10' algorithm
40 lines (36 loc) • 617 B
Plain Text
{
"root": true,
"extends": "@ljharb",
"rules": {
"array-bracket-newline": 0,
"array-element-newline": 0,
"func-name-matching": 0,
"max-statements-per-line": [2, { "max": 2 }],
"max-statements": 0,
"new-cap": [2, {
"capIsNewExceptions": [
"ArraySpeciesCreate",
"Call",
"CreateDataPropertyOrThrow",
"FlattenIntoArray",
"Get",
"HasProperty",
"IsArray",
"IsCallable",
"Set",
"ToLength",
"ToObject",
"ToString"
]
}],
"no-magic-numbers": 0,
},
"overrides": [
{
"files": "test/**",
"rules": {
"no-invalid-this": [1],
},
},
],
}