cms icon indicating copy to clipboard operation
cms copied to clipboard

bug: Format and lint check/fix conflicting each other

Open nischal-shetty2 opened this issue 1 year ago • 0 comments

Describe the bug in this folder "src/actions/payoutMethods/schema.ts" there are such regex

(/^[A-Za-z0-9]{44}$/)

while running format:check it gives us a warning after which if we run format:fix and then try to do lint:check it gives us an error

6:24  error  Wrap the regexp literal in parens to disambiguate the slash  wrap-regex
  12:24  error  Wrap the regexp literal in parens to disambiguate the slash  wrap-regex
  21:24  error  Wrap the regexp literal in parens to disambiguate the slash  wrap-regex
  27:47  error  Wrap the regexp literal in parens to disambiguate the slash  wrap-regex

both conflicting each other hence build is failing for instance here: 4838c56 and 3751294 This issue was caused by this commit #920 specifically fc428e3f950f5c36bb2da80d264ee59456c14266

To Reproduce Steps to reproduce the behavior:

  1. run npm run format:check
  2. run npm run lint:check

Info (please complete the following information):

  • Browser chrome

Additional context

  • Running without docker

nischal-shetty2 avatar Aug 20 '24 18:08 nischal-shetty2