Skip to main content
0 votes
0 answers
18 views

ESLint Disable import into folders

The project has a folder structure src --app --components --entities --modules --shared --widgets I want to prohibit imports from the entities folder to all folders except modules Previously I ...
Max's user avatar
  • 15
0 votes
1 answer
86 views

Type error: Type 'OmitWithTag<EventsPageProps, keyof PageProps, "default">' does not satisfy the constraint '{ [x: string]: never; }'

Here is my code: import EventsContainer from "@/components/events/events-container/EventsContainer"; // Main container component interface EventProps { events: any[]; pastEvents: any[]; ...
Nyochembeng Nkengafack's user avatar
1 vote
0 answers
107 views

How to use ESLint 9.11 with PHP?

Previously, I used .eslintrc.json setting with ESLint, using the eslint-plugin-html and the eslint-plugin-php-markup plugins to work through the PHP code. Here's my previous setting: { "env&...
DannyNiu's user avatar
  • 1,429
2 votes
0 answers
108 views

How to get custom eslint working on Visual Studio 2022?

My package.json { ... "main": "index.js", "type": "module", "scripts": { "start": "node index.js" }, ...
Lillo's user avatar
  • 70
1 vote
1 answer
82 views

How to configure ESLint rule to add blank line between test/test.beforeAll/test.beforeEach/test.afterEach/test.afterAll in Playwright test?

I want to update my .eslintrc.js to set up the rule that it requires a blank line between the test.beforeAll, test.beforeEach, test, test.afterAll, test.afterEach in the test code using Playwright // ...
Reed_Xia's user avatar
  • 1,412
0 votes
0 answers
28 views

Warnings showing in terminal but yellow squiggles not showing in the code

VSCode is not showing yellow squiggles in the code, but warnings are shown in the terminal. macOS version : macOS Sonoma version 14.5 Visual Studio Code: Version: 1.86.2 (Universal) Commit: ...
Krishna Priya Choudoor's user avatar
0 votes
1 answer
476 views

ESLint is not reading the rules specified in the eslintrc.json in my Angular v17 Project

ESLint is not reading the rules written in the eslintrc.json file. It is displaying all the problems as errors even though I have set values of some rules as warn. Moreover, it is displaying errors ...
T. B. - Tantiya Bichchu's user avatar
0 votes
0 answers
85 views

How Can I Display All Lint Errors and Warnings in VS Code Without Opening Each File?

When I run nx run-many -t lint --all, I get a lot of warnings and errors in the terminal. Is there a way to display all these errors and warnings in the Problems section of VS Code? Currently, they ...
Jon's user avatar
  • 243
0 votes
0 answers
77 views

Disable eslint `require-jsdoc` for nested functions

I'm trying to disable jsdoc warnings for nested functions. For example, in this file it spits a warning on the commented line. // Notifications.ts import * as Device from "expo-device"; ...
reactive's user avatar
1 vote
2 answers
172 views

Quasar 2 / Vue 3: Cannot use keyword 'await' outside an async function - top level await

I have a new Quasar 2 / Vue 3 app open in VSCode, created using the Quasar CLI and accepting all the defaults including using eslint. I have NOT started the app (quasar dev). Vitest is installed via ...
Murrah's user avatar
  • 1,640
0 votes
1 answer
1k views

Next Js eslint setup fix option not working

I'm developing a simple blog web app in Next Js with Typescript. I'm trying to learn and setup a lint check for my code. I went through multiple articles for the same and was able to follow them with ...
program_bumble_bee's user avatar
0 votes
1 answer
407 views

On creating Next.js build getting warning for no-unused-vars with configured eslint

Warning: 'myparam' is defined but never used. no-unused-vars I am getting above warning in my file below I have a store implenting of zustand, however I think the warning is not related to zustand ...
Rajat Jaswal's user avatar
-1 votes
1 answer
39 views

How to make eslint allow extra parenthesis in files

I have created .eslintrc.yml file and added some rules. Now I want to modify it so that it should allow extra parenthesis but it doesn't work here are some different ways I tried to solve this issue: '...
Shahab Ali's user avatar
2 votes
1 answer
584 views

How can I resolve local plugin or rule using rc config file format?

Eslint v8.50, using eslintrc.js config format I am following custom rule tutorial to create custom rule (which requires a plugin from what I understand), but I'm not able import my local plugin. Tried ...
Pavel Gurecki's user avatar
0 votes
1 answer
133 views

nx vue-monorepo build fails due to loading eslint config from plugins inside node modules

I am trying to migrate a large vue project to monorepo. I managed to run command for starting local development server: > nx run texasholdem:dev > vite --mode localdev VITE v5.0.12 ready in ...
Lukas Chmelo's user avatar

15 30 50 per page
1
2 3 4 5
34