question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In some cases, which I haven’t figured out yet, when running hooks, it creates a .rej file. And I’m sure it’s something with the library because before implementing it, never created these files.

package:

"husky": {
        "hooks": {
            "pre-commit": "ng lint --fix && lint-staged"
        }
    }

my config

{
    "**/*.{ts,js,json,css,scss}": [
        "./node_modules/.bin/prettier '**/*.{ts,js,json,css,scss}' '.prettierignore*/{__name__,__directory__}/**' --write",
        "git add"
    ]
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
iirojcommented, Jan 19, 2020

v10.0.0 was just released and it should no longer create .rej files.

Be aware that those files were created in a case where there was an unmergeable conflict between unstaged changes and what the linter tasks modified. v10 retries this with a 3-way merge so it should work a bit better, but it’s still possible to fail. In this case v10 will simply revert to the pre-commit state from a backup (git stash).

0reactions
iirojcommented, Jan 2, 2020

I would be thankful for a reproducible test case for the .rej files. This would help test for differences in behaviour between v9 and v10. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

What are .rej files which are created during merge
What are .rej files which are created during merge · They are rejection files, describing "failing" merges; you certainly need to look into...
Read more >
REJ File Extension - What is it? How to open a REJ file?
REJ files mostly belong to Git rejected files. REJ files are rejected files (usually hunks patches but not only), describing "failing" merges; you...
Read more >
REJ File - What is it and how do I open it?
The REJ file extension indicates to your device which app can open the file. However, different programs may use the REJ file type...
Read more >
How To Open File With REJ Extension?
REJ is a file extension commonly associated with Mercurial Reject files. REJ file format is compatible with software that can be installed on...
Read more >
File extension REJ - Simple tips how to open the REJ file.
The first part of the task has already been done – the software supporting the REJ file can be found in the table....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found