Closed ilmpc closed 11 months ago
I tried to reproduce the problem with your code, but everything works correctly for me.
Are you sure that this part of the code is the problem?
Can you run the eslint command with the --debug
flag to find the problem file? Or perhaps the problem is in another part of that file?
For convenience, I created a project on Stackblitz: https://stackblitz.com/edit/node-nth3q2?file=.eslintrc.js,src%2Findex.js
You can try to open this page, write some code and run the command pnpm run lint
.
I have not been able to reproduce your problem at this time.
It looks like it doesn't connected to 'use client'
I thought it was exactly because of --debug
output. Line 1 was stated as a problem.
I've found that two empty lines in import statements creates the problem
import Image from "next/image";
import { useState } from "react";
import React from "react";
Can you show me content of /home/mark/p/gg_frontend/app/profile/settings/password-changed/page.tsx
file?
Or you can use Stackblitz to figure out the problem.
Nice. Thank you. I'll fix it soon.
Describe the bug
Plugin got stuck if it finds 'use client' on top line
Code example
ESLint version
8.42.0
ESLint Plugin Perfectionist version
1.2.0
Additional comments
No response
Validations