kelektiv / node-cron

Cron for NodeJS.
MIT License
8.48k stars 626 forks source link

build: migrate eslint config to flat style #913

Closed intcreator closed 4 days ago

intcreator commented 5 days ago

Description

Migrate .eslintrc to esling.config.mjs. Using .mjs so I can use import (.ts configs are still experimental). Fixed a few lint issues that were easy, changed one new lint rule to a warn since it wasn't caught before.

Related Issue

Fixes #899

Motivation and Context

Using the new flat config for Eslint is required for upgrading to 9.0

How Has This Been Tested?

Ran npm run lint and VS Code Eslint plugin many times

Screenshots (if appropriate):

Types of changes

Checklist:

intcreator commented 5 days ago

looks like this won't be able to be merged until we drop support for Node v16

edit: I was able to support Node v16 by downgrading typescript-eslint

ncb000gt commented 4 days ago

:tada: This PR is included in version 3.2.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: