EvgenyOrekhov / eslint-config-hardcore

The most strict (yet practical) ESLint config. 53 plugins. 1342 rules. React, Vue, Node, and pure JS/TS.
https://www.npmjs.com/package/eslint-config-hardcore
MIT License
421 stars 13 forks source link

Issue with "use client" in next.js project #897

Closed user72356 closed 4 months ago

user72356 commented 8 months ago

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)

EvgenyOrekhov commented 8 months ago

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

The-Code-Monkey commented 8 months ago

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

EvgenyOrekhov commented 4 months ago

Waiting for https://github.com/coderaiser/putout/issues/211