From 8769f10d17b801a67444ae4bfecbc2c6fdbf7c8a Mon Sep 17 00:00:00 2001 From: Chun-MingChen Date: Sat, 7 Oct 2017 22:20:36 +0800 Subject: [PATCH] turn off lint of require-default-props --- .eslintrc | 3 ++- packages/react-bootstrap-table2/src/body.js | 1 - packages/react-bootstrap-table2/src/header-cell.js | 1 - packages/react-bootstrap-table2/src/header.js | 1 - .../src/row-selection/selection-cell.js | 6 ++---- .../src/row-selection/selection-header-cell.js | 1 - 6 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.eslintrc b/.eslintrc index c29b8e9..c379957 100644 --- a/.eslintrc +++ b/.eslintrc @@ -11,11 +11,12 @@ ], "rules": { "comma-dangle": ["error", "never"], - "react/jsx-curly-spacing": 0, "react/forbid-prop-types": 0, + "react/jsx-curly-spacing": 0, "react/jsx-filename-extension": 0, "react/jsx-space-before-closing": 0, "react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always" }], + "react/require-default-props": 0, "import/extensions": 0, // skip import extensions "import/no-unresolved": [0, { "ignore": ["^react-bootstrap-table"] }], // monorepo setup "import/prefer-default-export": 0, diff --git a/packages/react-bootstrap-table2/src/body.js b/packages/react-bootstrap-table2/src/body.js index 9a0cbba..ddec292 100644 --- a/packages/react-bootstrap-table2/src/body.js +++ b/packages/react-bootstrap-table2/src/body.js @@ -1,5 +1,4 @@ /* eslint react/prop-types: 0 */ -/* eslint react/require-default-props: 0 */ import React from 'react'; import PropTypes from 'prop-types'; diff --git a/packages/react-bootstrap-table2/src/header-cell.js b/packages/react-bootstrap-table2/src/header-cell.js index 13c6727..bc33419 100644 --- a/packages/react-bootstrap-table2/src/header-cell.js +++ b/packages/react-bootstrap-table2/src/header-cell.js @@ -1,4 +1,3 @@ -/* eslint react/require-default-props: 0 */ import React from 'react'; import cs from 'classnames'; import PropTypes from 'prop-types'; diff --git a/packages/react-bootstrap-table2/src/header.js b/packages/react-bootstrap-table2/src/header.js index 8953c63..d5cabb7 100644 --- a/packages/react-bootstrap-table2/src/header.js +++ b/packages/react-bootstrap-table2/src/header.js @@ -1,4 +1,3 @@ -/* eslint react/require-default-props: 0 */ import React from 'react'; import PropTypes from 'prop-types'; import Const from './const'; diff --git a/packages/react-bootstrap-table2/src/row-selection/selection-cell.js b/packages/react-bootstrap-table2/src/row-selection/selection-cell.js index 73b3e4a..20b7751 100644 --- a/packages/react-bootstrap-table2/src/row-selection/selection-cell.js +++ b/packages/react-bootstrap-table2/src/row-selection/selection-cell.js @@ -1,7 +1,5 @@ -/* eslint - react/require-default-props: 0 - jsx-a11y/no-noninteractive-element-interactions: 0 -*/ +/* eslint jsx-a11y/no-noninteractive-element-interactions: 0 */ + import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Const from '../const'; diff --git a/packages/react-bootstrap-table2/src/row-selection/selection-header-cell.js b/packages/react-bootstrap-table2/src/row-selection/selection-header-cell.js index 08516d1..7dae259 100644 --- a/packages/react-bootstrap-table2/src/row-selection/selection-header-cell.js +++ b/packages/react-bootstrap-table2/src/row-selection/selection-header-cell.js @@ -1,4 +1,3 @@ -/* eslint react/require-default-props: 0 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Constant from '../const';