Skip to content

Commit

Permalink
Shorter rule name
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Jan 17, 2019
1 parent 902cb08 commit 8797fa6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion fixtures/eslint/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"plugins": ["react-hooks"],
"rules": {
"react-hooks/rules-of-hooks": 2
"react-hooks/rules-of-hooks": 2,
"react-hooks/reactive-deps": 2
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

const ESLintTester = require('eslint').RuleTester;
const ReactHooksESLintPlugin = require('eslint-plugin-react-hooks');
const ReactHooksESLintRule =
ReactHooksESLintPlugin.rules['reactive-dependencies'];
const ReactHooksESLintRule = ReactHooksESLintPlugin.rules['reactive-deps'];

ESLintTester.setDefaultConfig({
parser: 'babel-eslint',
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin-react-hooks/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
'use strict';

import RuleOfHooks from './RulesOfHooks';
import ReactiveDependencies from './ReactiveDependencies';
import ReactiveDeps from './ReactiveDeps';

export const rules = {
'rules-of-hooks': RuleOfHooks,
'reactive-dependencies': ReactiveDependencies,
'reactive-deps': ReactiveDeps,
};
4 changes: 2 additions & 2 deletions scripts/rollup/results.json
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,8 @@
"filename": "eslint-plugin-react-hooks.development.js",
"bundleType": "NODE_DEV",
"packageName": "eslint-plugin-react-hooks",
"size": 25592,
"gzip": 5885
"size": 44512,
"gzip": 9733
},
{
"filename": "eslint-plugin-react-hooks.production.min.js",
Expand Down

0 comments on commit 8797fa6

Please sign in to comment.