How can I suppress the "No files matching the pattern" message in ESLint?

The --no-error-on-unmatched-pattern flag was added in v6.8.0 of ESLint.

https://eslint.org/docs/user-guide/command-line-interface#no-error-on-unmatched-pattern


What worked for me was changing single quotes to escaped double quotes

So from:

"lint": "eslint '**/*.{ts,tsx}'"

To:

"lint": "eslint \"**/*.{ts,tsx}\""

The reason is because it depends on the console you are using - possibly the operation system (that's why it can work for you while it's not working for others and via versa) Source: https://dev.to/gruckion/comment/b65c