Top "Eslint" questions

The pluggable linting utility for JavaScript and related frameworks.

Eslint - `Parsing error: unexpected token =` error for assigned fat arrow / property initializer

I'm using an arrow function and it's complaining about a parsing error: Parsing Error: Unexpected token = However my code is …

ecmascript-6 eslint class-fields
describe is not defined when installing jest

I installed jest v24.7.1in my project with: npm install jest -D Then I start writing some test files, However …

jestjs eslint eslint-config-airbnb eslintrc
Cannot find module 'prettier'

I updated all packages but still getting this error after running npm run serve: Module build failed (from ./node_modules/…

node.js npm eslint package.json prettier
How can I get ESLint to lint HTML files in VSCode?

I have a Javascript browser project split over multiple files and can't get ESLint to lint the script tags of …

javascript visual-studio-code eslint lint
eslint in terminal Cannot find module 'eslint-config-react-app'

I use create-react-app to make a react app. the linter works in create-react-app but now i want make it work …

eslint create-react-app yarnpkg sublimelinter
How to fix this eslint path not resolved error? no-unresolved

Node version: v6.11.0 Error Message: Unable to resolve path to module './coins.json'. (import/no-unresolved) I am also attaching …

javascript webpack eslint eslintrc
ESLint unexpected character '@' for JS decorators

I'm trying to use decorators in my JS project, however ESLint is throwing an error stating that the @ symbol is …

javascript eslint ecmascript-next
Why no-return-await vs const x = await?

What is the difference between return await foo() and const t = await foo(); return t http://eslint.org/docs/rules/…

javascript async-await eslint
VSCode failed to load plugin cannot find module 'eslint-plugin-prettier'

I'm installing eslint and Prettier in my project and trying to get automatic code formatting to work through VSCode. When …

visual-studio-code eslint prettier eslintrc
What's the difference between prettier-eslint, eslint-plugin-prettier and eslint-config-prettier?

I want to use Prettier and ESLint together, but I experienced some conflicts just by using them one after another. …

javascript ecmascript-6 eslint code-formatting prettier