I have an issue while connecting ESLint airbnb configuration to my React App.
I have already tried to remove package-lock.json, node_modules and run a command
npm install
WebStorm says
ESLint: Error: .eslintrc.json >> eslint-config-airbnb-base >>…
In visual studio 2015 we have a solution with c# and javascript files. For the javascript files, we use a .eslintrc.json file for code conventions. However, everytime I build the solution, these files are automatically changed to the settings in…
I use Typescript to define and type my props. I am using ESLint and eslint-config-airbnb-typescript.
I use gatsby-plugin-graphql-codegen to generate the types for my graphQL queries.
ESLint is complaining about props validation.
This is the…
In my Gatsby (React) project I am using typescript. I need to setup ESLint and have to use eslint-config-airbnb-typescript
I am also using Prettier:
prettier (comes with Gatsby), and I installed the following packages:
npm install…
I have an issue about a simple component and I don't know why. Here is my error and my code :
Error: Objects are not valid as a React child (found: object with keys {Cfor, children}). If you meant to render a collection of children, use an array…
I am using Airbnb's style guide and have a couple of functions that reference each other this error is triggered no matter which function is above the other. Is there a best practice on how to fix this error besides just disable it?
function foo()…
I am getting this eslint error, only for the app component "Component should be written as a pure function" and i am not sure why.
I checked other posts with this error and none of the solution seem to work.
import React from "react";
import {…
I have just finished setting up Eslint/prettier/airbnb by watching an online tutorial but what I don't understand is that when I start a new project, will I need to repeat the same processes* again? I wish there was a way to integrate it to VSCode…
I want to load image from my assets folder. I don't want to use require because it violates my eslint rules (I follow airbnb rules). I use typescript. Do you have any best practices for this?
Following this guide, I have tried to create an extracted rule set except I am extending from eslint-config-airbnb-typescript-prettier instead of eslint-config-airbnb-typescript: -
module.exports = {
extends: "airbnb-typescript-prettier"
}
When I…
I am trying to get react-hooks rules for eslint, but it doesn't seem to be working with my setup (VSCode, CRA, airbnb, tslint, prettier).
Here's my .eslintrc.json before it breaks:
{
"env": {
"browser": true,
"es6": true,
"jest":…