kentcdodds/kcd-scripts

lintstagedrc.js failes on Windows

Open

#70 geöffnet am 2. Okt. 2018

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (206 Forks)github user discovery
bughelp wanted

Repository-Metriken

Stars
 (888 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

  • node version: 10.10.0
  • npm (or yarn) version: 6.0.0

Relevant code or config

npm run precommit

Problem description:

I'm working on a fork of kcd-scripts for my own company's purposes and while testing the lintstagedrc.js file failes on Windows. Probably has to do with #8 or is very similar. I also noticed this when working on React-Testing-Library when I went to commit, again lintstagedrc.js fails.

Unfortunately I'm not versed enough in the fs and path operators to figure out how to change \ for /. Unless we write a dirty method to check for win32 and do a global replace on the path string, tranding slashes. But I don't know what other problems might arise from that.

Contributor Guide