Eslint Questions

Ad

next.js Setting up ESLint for NextJs

I have created basic next.js app using "npx create-next-app" and .eslintrc.json file created to add eslint rules.but it's not working.how to add
Ad

React PropType with ESLint

Started using eslint and running into couple of issues with proptype, currently i have a prop children and for now let's say this

Eslint : no-unused-vars

I am new in using eslint to fixing the bugs and i have got the following error. error 'query' is assigned a value but never used
Ad

axios interceptors and eslint

Axios.interceptors.request.use((config) => { config.headers = { ...config.headers, customheader: 'abc' }; return config; });
Ad

Typescript on React HOC

I have a react hoc structured like this: import react from 'react'; import { cookiesconsumer } from './index'; const withcookies
Ad

ESLint with Mocha

I am trying to use eslint for mocha, but for some reason the rules don'y apply and the linting passes. my config file:
Ad
Ad

react no-shadow rule handling

I am pretty new in react. i am trying to create first app which should handle login. actually everything works even now, but im getting eslint
Ad

Eslint custom import order

Is it possible to make eslint rule that supports custom import order i want to trigger eslint warning or error upon having following
Ad

Unexpected `await` inside a loop

This block of code is causing the titled eslint rule to error. i'm trying to figure out how to remove the iteration dependency but i'm not quite

How to enable ts-check in es6

Recently i have found visual code has a nice feature for type checking in javascript files. all i have to do is to type on top of file //
Ad
Ad

Blog Categories

Ad