"It's not the hours you put in your work that counts, it's the work you put in the hours." β Sam Ewing
Disallow overwork (no-overtime
) β
πΌ This rule is enabled in the following configs: π all
, β
recommended
.
π Rule details β
Prevent commits done outside working hours.
βοΈ Options β
workdays β
What days of the week are workdays. Defined in ISO 8601 format, where 1 is Monday and 7 is Sunday. Defaults to 1-5 (Monday to Friday).
start β
What time the workday starts. Format is HH:mm:ss
. Defaults to 08:00:00
.
end β
What time the workday ends. Format is HH:mm:ss
. Defaults to 18:00:00
.
π§ Config β
json
{
"ninja/no-overtime": [
"error",
{
"workdays": [1, 2, 3, 4, 5],
"start": "08:00:00",
"end": "18:00:00"
}
]
}