Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

[react-hooks] Remove duplicated rules defined in recommended sets #421

Merged
merged 1 commit into from
Jul 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions config/eslintrc_react_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,12 @@

'use strict';

// https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks
module.exports = {

'plugins': [
'react-hooks',
'extends': [
'plugin:react-hooks/recommended',
],

// eslint-plugin-react-hooks
// https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks
//
// I think we should enable these rules as 'errors' because this plugin always provides rules
// which detects possible errors.
/* eslint sort-keys: 'error' */
'rules': {
'react-hooks/exhaustive-deps': 'error',
'react-hooks/rules-of-hooks': 'error',
},
};