diff --git a/.eslintrc b/.eslintrc index 2235935..6829b3d 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,8 +2,15 @@ "extends": "airbnb", "parser": "babel-eslint", "rules": { + "comma-dangle": ["error", { + "arrays": "always-multiline", + "objects": "always-multiline", + "imports": "always-multiline", + "exports": "always-multiline", + "functions": "never" + }], "react/forbid-prop-types": "off", "react/require-default-props": "off", - "react/no-did-mount-set-state": "off" + "react/no-did-mount-set-state": "off", } } diff --git a/src/ResizeDetector.jsx b/src/ResizeDetector.jsx index f79c090..e15490d 100644 --- a/src/ResizeDetector.jsx +++ b/src/ResizeDetector.jsx @@ -1,3 +1,4 @@ +/* eslint-disable jsx-a11y/alt-text */ import React, { Component } from 'react'; import PropTypes from 'prop-types';