@@ -68,9 +68,13 @@ var config = {
6868 }
6969} ;
7070
71+ if ( utils . importOrderPluginInstalled ) {
72+ config . extends . push ( "plugin:import-order/recommended" ) ;
73+ config . plugins . push ( "import-order" ) ;
74+ }
75+
7176if ( utils . reactPluginInstalled ) {
7277 config . extends . push ( "plugin:react/recommended" ) ;
73-
7478 config . plugins . push ( "react" ) ;
7579
7680 config . rules = objectAssign ( config . rules , {
@@ -80,6 +84,7 @@ if (utils.reactPluginInstalled) {
8084 "react/jsx-equals-spacing" : [ 2 , "never" ] ,
8185 "react/jsx-first-prop-new-line" : [ 2 , "multiline" ] ,
8286 "react/jsx-handler-names" : 2 ,
87+ "react/jsx-indent" : [ 2 , 4 ] ,
8388 "react/jsx-indent-props" : [ 2 , 4 ] ,
8489 "react/jsx-key" : 2 ,
8590 "react/jsx-max-props-per-line" : [ 2 , { "maximum" : 4 } ] ,
@@ -93,6 +98,7 @@ if (utils.reactPluginInstalled) {
9398 "react/jsx-uses-vars" : 1 ,
9499 "react/display-name" : 1 ,
95100 "react/no-danger" : 2 ,
101+ "react/no-deprecated" : 2 ,
96102 "react/no-did-mount-set-state" : [ 2 , "allow-in-func" ] ,
97103 "react/no-did-update-set-state" : [ 2 , "allow-in-func" ] ,
98104 "react/no-direct-mutation-state" : 2 ,
0 commit comments