Skip to content

"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"
    }
  ]
}

πŸ§‘β€πŸ’» Demo ​

Released under the MIT License