Top "Airbnb" questions

Airbnb JavaScript style guide: "A mostly reasonable approach to JavaScript.

How to disable eslint rule max line length for paragraph in <template> of vue.js?

I am using airbnb eslint and currently I am getting error: error: Line 6 exceeds the maximum line length of 100 (max-len) …

javascript vue.js vuejs2 eslint airbnb
Solving linter error no-undef for document

I am using airbnb extension for linting my React Project. Now, in my index.js I have: import React from …

javascript eslint airbnb
ESLint "Unexpected tab character" when "indent" rule set to "tab"

I'm using ESLint with the Airbnb plugin (eslint-config-airbnb) and Babel parser. I've just added the extra rule of using Tab …

javascript indentation babeljs eslint airbnb
React linter airbnb proptypes array

I have the following PropTypes: SmartTable.propTypes = { name: React.PropTypes.string.isRequired, cols: React.PropTypes.array.isRequired, rows: React.PropTypes.…

reactjs airbnb react-proptypes linter
How to acquire API key for Airbnb

I know that Airbnb haven't opened their API to the public yet, but searching the internet I found some people …

api api-key airbnb
A control must be associated with a text label

I am getting the error: A control must be associated with a text label. The piece of code is: <…

javascript reactjs eslint airbnb
If a propType isn't required why does ESLint want to provide default prop for it?

const propTypes = { label: PropTypes.string, }; const defaultProps = {}; Why does ESLint want us to provide default value for label when it …

reactjs eslint airbnb
How do I rewrite a react component with decorators as a pure function?

I'm using the airbnb eslint settings, which have a rule that enforces stateless react components to be rewritten as a …

javascript reactjs airbnb
Why does the Airbnb style guide say that relying on function name inference is discouraged?

// bad class Listing extends React.Component { render() { return <div>{this.props.hello}</div>; } } // bad (relying on …

javascript reactjs ecmascript-6 eslint airbnb