EvgenyOrekhov / eslint-config-hardcore

The most strict (yet practical) ESLint config. 53 plugins. 1342 rules. React, Vue, Node, and pure JS/TS.

Home Page:https://www.npmjs.com/package/eslint-config-hardcore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with "use client" in next.js project

user72356 opened this issue · comments

The newer (> 13) versions of Next.js allow to render components on the server. Client-only components must add "use client"; at the top of the source code file.

This appears to be detected as the following errors:

Unused expression statement (remove-unused-expressions)eslint(putout/putout)
Avoid 'use strict' in ESM (strict-mode/remove-useless)eslint(putout/putout)

I need to upgrade Putout, but there's some dependency conflicts.

I've also had it where the eslint config is trying to put usememos in my server functions which means I have to eslint disable lines for them