Regular Expressions 101

Community Patterns

Community Library Entry

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 - 2 years ago (Last modified 2 years ago)