Regular Expressions 101

Community Patterns

match eslint packages other than next.js

1

Regular Expression
ECMAScript (JavaScript)

/
^(@(typescript-)?eslint\/.*|eslint($|(?!.*next).*))
/
gm

Description

This could be used to group eslint stuff in renovate config for a next.js project. Since you're intended to keep eslint-plugin-next at the same version as next itself, you would want to group it with next instead. Using negative lookahead we can ignore eslint-config-next (or anything else you may wish to ignore)

Submitted by Mitsunee - 10 months ago (Last modified 10 months ago)