Top "Eslint" questions

The pluggable linting utility for JavaScript and related frameworks.

EditorConfig vs. Eslint vs. Prettier: Is it worthwhile to use them all?

I am trying to set up some tools to help maintain consistency in a codebase used by multiple developers. Is …

formatting eslint code-formatting editorconfig prettier
eslint + typescript + path in tsconfig: ESLint: Unable to resolve path to module '@components/some-module'.(import/no-unresolved)

I add typescript config for paths (alias): tsconfig.json { "compilerOptions": { "jsx": "react", "baseUrl": "src", "paths": { "@components/*": ["components/*"] } }, "exclude": [ "node_modules", "…

reactjs typescript eslint typescript-eslint
Which eslint rules in my config are slow?

I have a config with around 100 rules, and running eslint on my project with all these rules takes around 10 seconds. …

javascript profiling configuration-files eslint
VSCode Prettier not formatting PHP

So I've set up vscode with Prettier, but it will not format .php files. .html files are working fine with …

php html visual-studio-code eslint prettier
how to do linting using nodemon?

Can I use nodemon to lint my javascript? I am not using any build tool e.g. gulp or grunt …

javascript node.js npm nodemon eslint
How to disable eslint(prettier/prettier) single quotes error

I have react-native code. I install ESLint. I use it but its show error. While I use single quotes it …

javascript eslint prettier
Line 5: 'tags' is missing in props validation react/prop-types

ESlint is giving me this warning when I am compiling my code. We are using the AirBNB config. import React …

javascript reactjs webpack eslint eslint-config-airbnb
react class method is not defined no-undef

I am new in react. My app was running properly, but after adding eslint(airbnb), my apps failed to compile. …

reactjs react-redux eslint eslint-config-airbnb
Extending multiple recommended configurations in ESLint

The Story: Currently, we are extending the recommended ESLint configuration: { "extends": "eslint:recommended", ... "plugins": [ "angular", "jasmine", "protractor" ], "rules": { "no-multiple-empty-lines": 2, "no-trailing-spaces": 2, "…

javascript angularjs jasmine static-code-analysis eslint
New eslint errors with the @typescript-eslint/no-unsafe-* rules

I'm having some trouble with adding them into some existing projects. For example, I have a class in a module …

javascript typescript eslint typescript-eslint