File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ module.exports = {
28
28
rules,
29
29
configs : {
30
30
recommended : {
31
+ plugins : [ 'react-redux' ] ,
31
32
rules : {
32
33
'react-redux/connect-prefer-minimum-two-arguments' : 0 ,
33
34
'react-redux/connect-prefer-named-arguments' : 2 ,
@@ -43,6 +44,7 @@ module.exports = {
43
44
} ,
44
45
} ,
45
46
all : {
47
+ plugins : [ 'react-redux' ] ,
46
48
rules : activeRulesConfig ,
47
49
} ,
48
50
} ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ describe('all rule files should be exported by the plugin', () => {
22
22
describe ( 'configurations' , ( ) => {
23
23
it ( 'should export a \'recommended\' configuration' , ( ) => {
24
24
assert ( plugin . configs . recommended ) ;
25
+ assert ( plugin . configs . recommended . plugins . includes ( 'react-redux' ) ) ;
25
26
Object . keys ( plugin . configs . recommended . rules ) . forEach ( ( configName ) => {
26
27
assert . equal ( configName . indexOf ( 'react-redux/' ) , 0 ) ;
27
28
const ruleName = configName . substring ( 'react-redux/' . length ) ;
@@ -30,6 +31,7 @@ describe('configurations', () => {
30
31
} ) ;
31
32
it ( 'should export a \'all\' configuration' , ( ) => {
32
33
assert ( plugin . configs . all ) ;
34
+ assert ( plugin . configs . all . plugins . includes ( 'react-redux' ) ) ;
33
35
Object . keys ( plugin . configs . all . rules ) . forEach ( ( configName ) => {
34
36
assert . equal ( configName . indexOf ( 'react-redux/' ) , 0 ) ;
35
37
assert . equal ( plugin . configs . all . rules [ configName ] , 2 ) ;
You can’t perform that action at this time.
0 commit comments