Does anyone know which ESLint configuration rule is causing my jsx inside parenthesis to be 4 more spaces on the left then I expect?
import React from 'react';
import './styles.scss';
const TableWrapper = ({
children,
}) => (
Issue Description:
I've begun working on a project with typescript and eslint. Issue is, eslint gives me an unexpected error on what seems to be a properly declared function
Code:
import React, { useState } from 'react';
type Props = {
options:…
For this piece of code, !this.state.dark I am getting an ESlint (airbnb config) error:
Use callback in setState when referencing the previous state.
I tried refactoring the code using following the ESlint documentation. But I'm having a hard time…
My codebase is full of .js files and I am running eslint on a particular file.
I get below errors:
1:8 error 'React' is defined but never used
no-unused-vars
1:27 error Trailing spaces not allowed
…
I currently have an issue where eslint and prettier don't do anything on my .js files in VS code.
Here is the content of my .prettierrc:
{
"singleQuote": true,
"printWidth": 80,
"editor.formatOnSave": true,
"proseWrap": "always",
…
Do you have any idea this error? I am getting ESlint error for the following line visible={this.state.visible}
It says: "Must use destructuring state assignment"
It uses: "eslint-config-airbnb"
Thank you in advance
import React from 'react'
import {…
I'm building an app with vue-cli, using airbnb rules to lint.
Despite me adding a rule to my .eslintrc.js config file, and the rule appying on other files, this particular variable in my Welcome.vue file keeps throwing a warning when linting.
The…
I am having trouble diagnosing an oddity in my linting configuration. It wants me to use double quotes, which I wouldn't necessarily mind, but I can't understand why because as far as I can tell all my rules want singles.
This is for a React app. My…
So i used eslint pretty normally until I added a specific rule, then eslint seemed to just loop infinite :
> api@1.0.0 pretest /api
> eslint .
this just stay forever. Never ending the process. So i removed that specific rule again, but it didnt…
I am using eslint in my project and I'd like to use airbnb style. The problem I have is I need to install eslint-config-airbnb dependency which depends on eslint-plugin-jsx-a11y and some react plugin. My project is not a react project and I wonder…
I can't find the solution to this.. i'm learning eslint and installed the required dependencies for airbnb config. It is working fine, but once i fixed the problems that eslint gives it simply returns the same errors when i save the file. Mostly it…
I'm writing a React app, namely a navbar.
I have a logo and navItems there.
Logo display and color of the navbar background are conditional.
Added Aibnb guide to esLint, now my navbar code looks like this:
class Toolbar extends Component {
…
I have a problem with eslint rule import/no-extraneous-dependencies
What need to do. If js file has import with package which not present in closest parent package.json - show error.
Rule description :…
I have an issue with a airbnb linter config. Instead of giving warnings, eslint throws errors which causes the compilation to fail with a failed to compile error.
My guess is that the problem is connected with webpack and its loaders. It needs…