7,030 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Tooling
1
vote
0
replies
33
views
How to use ESlint as an Jujutsu fixer for `jj fix`
The Jujutsu VCS can use formatting tools to format code and sometimes even resolve conflicts. The tools used must read from stdin and write the modified code (and nothing else) to stdout.
For the ...
max's user avatar
- 30.1k
0
votes
1
answer
82
views
TypeScript error: PluginFlatConfig is not assignable to ConfigWithExtends when using ESLint flat config
I'm getting several TS2322 errors when running tsc -b on my project that uses the new ESLint flat config. The compiler says that some of the objects I'm passing to defineConfig() are not assignable to ...
-1
votes
1
answer
45
views
Firebase deploy getting eslintrc error, module not found
Im only using firebase functions, im building a flutter app for android and ios and my backend will be firebase functions, firestore, etc.
Everything is working just fine in my local, but when I ...
Tooling
1
vote
0
replies
32
views
DiagnosticCollection with name 'eslint' does already exist
I'm getting
[warning] DiagnosticCollection with name 'eslint' does already exist.
in the OUTPUT extensions tab when I open the terminal in VS Code.
I type ng serve to run my Angular project and ...
Best practices
1
vote
0
replies
75
views
Next.js ESLint presets not compatible with ESLint 9 + Nx 22 flat-config — what is the correct way to support Next.js linting?
Recently we upgraded to Nx 22 and ESLint 9, which broke a lot of linting across the repo because the old .eslintrc-style configs and Next.js presets aren’t compatible with flat-config.
I spent quite a ...
Advice
1
vote
3
replies
61
views
how to detect key duplicates when spreading multiple source objects
For readability sake, I've slices one big object into multiple smaller:
const ABC_ROUTES = {
main: '/abc',
details: '/abc/:id'
} as const
const XYZ_ROUTES = {
mainAbc: '/xyz',
details: '/xyz/:...
0
votes
2
answers
103
views
Eclipse 2025-09 Javascript editing - how do I turn off deprecated warnings?
I am editing javascript code in Eclipse, and the IDE is showing a deprecated method signature hint/warning when calling
document.execCommand("copy");
The hint is
Description Resource ...
Tooling
0
votes
8
replies
141
views
ESLint exhaustive-deps rule doesn't recognize stable refs when passed to custom hooks
I'm trying to factor out a useCallback that uses refs into a custom hook, but ESLint's exhaustive-deps rule keeps complaining about missing dependencies, even though refs are stable and shouldn't be ...
1
vote
1
answer
65
views
Is there an eslint or tsconfig rule to disallow inline type import?
initializeForOrder: (params: import('./drivePhotosTypes').OrderActionParams) => Promise<void>;
getOrderState: (orderId: string) => import('./drivePhotosTypes').OrderPhotosState | null;
...
3
votes
1
answer
420
views
ESLint issue after upgrading to Angular 20 (".eslintignore" no longer supported)
After upgrading my Angular project to version 20, ESLint started throwing the following error when I run linting (using Nx):
[error] (node:20947) ESLintIgnoreWarning: The ".eslintignore" ...
0
votes
1
answer
132
views
@typescript-eslint/prefer-readonly-parameter-types: allow StyleProp<ViewStyle>
I need to pass a parameter of type StyleProp<ViewStyle> to my function. eslint is issuing Parameter should be a read only type. I allow StyleProp and ViewStyle in the rule options but eslint is ...
2
votes
0
answers
183
views
eslint, lsp, and setup error in react project
I have a nvim setup that I have created and when I want to open a react/nextjs project it errors on imports like import Image from "next/image"; and no one likes that, so I wanted to ask how ...
0
votes
1
answer
53
views
husky setup failed at precommit with code 126
I am trying to setup husky for checking linting errors before a commit happens but every it is showing
.husky/pre-commit: .husky/pre-commit: cannot execute binary file
husky - pre-commit script failed ...
1
vote
0
answers
290
views
Eslint language server fails to load in zed code editor
I am getting this error when I try to launch the zed code editor and it shows me failed to load eslint language server, other language server are working alright.
Language server eslint:
initializing ...
0
votes
0
answers
25
views
Using ESM plugins in ESLint CommonJS config
So I have an Angular NX Monorepo, which has a base eslint.config.js, and each lib extends the base config in its own config. All configs are CommonJS and use require() syntax. I want to use the simple ...