eslint-config-airbnb Questions
2
I try to install and use ESLint Airbnb configuration for TypeScript for several days and I cannot make it work. Can somebody give installation and configuration steps of a working configuration, pl...
Vernon asked 22/5, 2020 at 20:56
2
Solved
I'm using ESLint with the Airbnb plugin (eslint-config-airbnb) and Babel parser. I've just added the extra rule of using Tab characters for indentation instead of spaces.
Here is my .eslintrc:
{
...
Hexapody asked 30/11, 2016 at 16:34
3
Solved
I have eslint (of Airbnb coding style) setup for my React project, which has dependency of "eslint-plugin-jsx-a11y", which I do not want for my current project.
My question how to remove this spec...
Gervase asked 1/4, 2019 at 6:23
2
Solved
I am setting up my first eslint. For some reason in other computers it works except on mine ..
Im using VScode
As soon as I open my editor I get the following message:
Cannot read config file:
...
Philip asked 31/7, 2018 at 15:51
2
Solved
ESlint is giving me this warning when I am compiling my code. We are using the AirBNB config.
import React from 'react';
import { Link } from 'react-router-dom';
const ProfileInterestSkillButton...
Filipe asked 5/1, 2018 at 5:53
3
I would like to use airbnb styles ESLint.
However, accessibility does not bring values in my project, and actually it add more noise to the code.
Is there a way to use AirBnb eslint but disable js...
Sprit asked 3/2, 2019 at 15:38
6
Solved
I have the following PropTypes:
SmartTable.propTypes = {
name: React.PropTypes.string.isRequired,
cols: React.PropTypes.array.isRequired,
rows: React.PropTypes.array.isRequired,
};
but the lint...
Bara asked 20/1, 2017 at 19:44
2
I am linting old NodeJS code and I want to clear out all indent issues before I start fixing the rest.
How do I configure ESlint to only show and fix the indent issues only?
Cyclothymia asked 6/8, 2018 at 10:37
4
Solved
npx install-peerdeps --dev eslint-config-airbnb
install-peerdeps v3.0.3
Installing peerdeps for eslint-config-airbnb@latest.
npm install [email protected] eslint@^7.2.0 eslint-plugin-import@^2...
Imelda asked 6/4, 2021 at 10:54
2
Solved
I have Eslint and JSCS setup to reformat some code base with airbnb js style guide in WebStorm. I have been using this setup effectively for the past 2 days, but all of a sudden, WebStorm started t...
Dugaid asked 9/1, 2018 at 11:57
1
Solved
According to all of these pages:
https://mcmap.net/q/82303/-how-to-use-document-getelementbyid-method-in-typescript
https://stackoverflow.com/a/65514898/470749
https://www.typescriptlang.org/docs/...
Fletcherfletcherism asked 13/5, 2021 at 16:13
2
Solved
Running my lint script "lint": "eslint --ext .js .", gives me this error:
Error: .eslintrc » eslint-config-airbnb » //node_modules/eslint-config-airbnb-base/index.js » //node_m...
Hoyle asked 11/11, 2020 at 16:50
5
Solved
When using eslint in Visual Studio Code, AirBnB style Ubuntu Linux, no-plusplus is enabled as default so using ++ for example in a for loop will error: [eslint] Unary operator '++' used. (no-pluspl...
Mandorla asked 9/12, 2017 at 13:14
2
Solved
I had a difficult time tracking this down, so I'm posting to help others who search for a similar error.
I decided to set up a new project on Ubuntu 18.04 in Atom with eslint and Node.js.
ESlint, ...
Variegate asked 14/7, 2020 at 21:0
2
Solved
I am writing TypeScript with React. The project was generated with CRA. and I used react-app config for the .eslintrc.json. However I decided to use eslint-config-airbnb so I added it and changed m...
Appledorf asked 13/8, 2020 at 1:35
5
js application. I need to use eslint for this application. I am using https://www.npmjs.com/package/eslint-config-airbnb and using prettier plugin in VS Code editor.
.eslintrc
{
"extends": "airb...
Sanferd asked 4/10, 2017 at 10:33
3
I know this may seem like a duplicate question, I still get this type of eslint errors after trying the following:
https://github.com/prettier/prettier/issues/3720 (i already installed eslint-plug...
Dorthydortmund asked 3/12, 2018 at 20:43
1
I'm trying to run a global installation of ESLint against a single file, using a specified path to the configuration file:
eslint FileToCheck.jsx --config "../path/to/config/.eslintrc.js"...
Responsibility asked 17/10, 2017 at 1:48
2
Solved
I'm using airbnb's eslint with webpack like this:
.eslintrc:
{
"extends": "airbnb"
}
webpack.config.js:
...
module: {
rules: [
{
test: /\.js$/,
use: ['babel-loader', 'eslint-loader'],
...
Perigordian asked 1/10, 2017 at 23:26
2
Solved
Anchor used as a button. Anchors are primarily expected to navigate. Use the button element instead. (jsx-a11y/anchor-is-valid)
I would like to disable the above warning.
So i write
<div data...
Nady asked 26/4, 2018 at 6:44
1
Solved
I'm very confused about how to setup the config file and which configs/plugins I should use.
I have a React project that uses Typescript, Jest and React hooks.
I know I need to install:
eslint
...
Xenon asked 20/6, 2019 at 2:33
0
We have our ESLint config inherit from airbnb's config.
Despite the indent rule being turned on, for some reason, this is allowed:
let a = some * math
* operators;
even though I would expect it...
Journalize asked 22/5, 2019 at 23:11
5
i'm actually working on a project and when I cloned my project on MacBook, after yarn in shell for install packages, and atom . for open my ATOM. ESLint got a "bug".
For example, for this code :
...
Urinal asked 25/7, 2017 at 19:20
5
Recently, I've started using Visual Studio Code for my editor and found the Prettier - JavaScript formatter. I think it's a great plugin because it helps me keep my code looking nice.
I set up Ai...
Juncaceous asked 13/9, 2017 at 15:38
3
Solved
I want to modify my code structure using eslint of airbnb. I have follwed these instruction given in eslint-config-airbnb. After initiating the command
npm run lint, results consists of 'fetch' is...
Kannan asked 13/3, 2018 at 7:11
© 2022 - 2024 — McMap. All rights reserved.