Category "eslint"

Webpack alias is not recognized by flow

I'm having some trouble with webpack aliases and having it play nicely with flow. I have the alias: alias: { vue$: 'vue/dist/vue.esm.js', pu

vue ui showing Error: NO_MODULES when creating a project (windows)

I could see the GUI on the browser when I run vue ui command, and then when creating a project, I selected the npm as the Package Manager from the dropdown list

How to disable eslint eqeqeq?

I use create-react-app and just want to add rules to my package.json. I see that I can disable this rule, but how? In the official document, only the phrase "If

Error with eslint and vue/comment directive

Hello I was just running my website and I have 20 errors like this : Module Error (from ./node_modules/eslint-loader/dist/cjs.js): error clear vue/comment-di

Failed to load config "next/babel" to extend from eslintrc.json

When I'm trying to build the Next.Js app then the below error is coming with a successful build. This error is showing when I deploy the app in Vercel. error -

Ordering member for async and method in Typescript-ESLint

Is there a way for ordering async / sync method member ? example # ❌ Incorrect function myFunction() { // something code } async function myAsyncFunct

Can't global uninstall npm package (eslint) OS X

I have eslint installed and I wanted to update it to a newer version. Upon trying to do this, I found out that I can't get rid of my current version of eslint.

eslint complains about typescript's path aliasing

I've set up path aliasing in typescript's .tsconfig so my imports look cleaner. In my code when I try and import my interface like this import { ApiResponse }

"'React' was used before it was defined." eslint warning

Similar question to this post on StackOverflow but I cannot seem to get rid of this warning after trying everything I could find on the internet. Github Issue.

What "plugins" property in .eslintrc does?

module.exports = { root: true, parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint'], extends: [ 'eslint:recommended', 'plugin:@t

setting up lint-staged for jest

I have to try to set up a husky with lint-staged. Initially, I was trying to set up like the following but that does not work. "lint-staged": { "*.js": [

Prettier to format .vue

Prettier VS Code extension doesn't work properly with .vue. I mean how to setup prettier to integrate it with eslint and format .vue files on Cmd+Shift+P ->

How do I automatically check for '.only' calls accidentally left in Mocha specs?

I occasionally forget to remove .only calls from my Mocha specs before pushing spec changes. Doing so obviously affects test coverage, which requires addressing

@typescript-eslint/naming-convention workaround for Vue components

We have this rule enabled: https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.md#allowed-selec

Add space in self closing tags before in self closing tags

How do you include a space before the closing tags in self closing tags with WebStorm/IntelliJ-based products? Default settings turns <ReactComp /> to &l

Enforce one describe per file

The Story: We have a rather big test codebase with Protractor+Jasmine tests. One of the current problems we have is that some of the test/spec files contain

TypeScript `extend` produces ESLint error when extending a template string?

I want to implement a type TrimStart like this: type TrimStart<T extends string> = T extends ` ${infer Rest}` ? TrimStart<Rest> : T; type TT = Trim

ESLint - 'process' is not defined

I am using ESLinter for a simple node project. Below is the only code I have in index.js: const express = require('express'); const app = express(); app.get(

'eslint' is not recognized as an internal or external command

I'm trying to install eslint & run it in vs code. I ran this command: npm i -g eslint and it seemed to work, but I keep getting an error when I try to run

import ``,ESLint: Cannot read property 'range' of null Occurred while linting

The error is because of this line of code item.component = () => import(`@/views/${_component}`) If I modify .eslintrc.js, it works 'indent' : "off", 'te