next.js
9de871e6 - [eslint-plugin] Stop warning for head element in app/layout on Windows (#42336)

Commit
3 years ago
[eslint-plugin] Stop warning for head element in app/layout on Windows (#42336) ## Bug ![image](https://user-images.githubusercontent.com/13413409/199451248-051751e5-0a5b-4ee0-bcae-05d2933f0090.png) When trying to use app directory on Windows, the automatically created `Layout.tsx` get's a lint problem for having a `<head>` element. ## Solution Update the rule to check paths using `path.sep` rather than hardcoded `/` I also checked with `path.posix.sep` because some other rules was doing that (both `path.sep` and `path.posix.sep`), so I'm just following pattern
Author
Parents
Loading