Regular Expressions 101

Spon⁠sors

Community Library

Community Library Entry

1

Regular ExpressionOpen Workspace

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

Description
Created·2023-05-26 20:32
Updated·2023-05-26 20:33
Type·Match
Flavor·JavaScript

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
Open Workspace