File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -122,14 +122,14 @@ class FilterExample extends React.Component {
122122 filterTree ( ) {
123123 // Reset nodes back to unfiltered state
124124 if ( ! this . state . filterText ) {
125- this . setState ( prevState => ( {
125+ this . setState ( ( prevState ) => ( {
126126 nodesFiltered : prevState . nodes ,
127127 } ) ) ;
128128
129129 return ;
130130 }
131131
132- const nodesFiltered = prevState => (
132+ const nodesFiltered = ( prevState ) => (
133133 { nodesFiltered : prevState . nodes . reduce ( this . filterNodes , [ ] ) }
134134 ) ;
135135
Original file line number Diff line number Diff line change 4242 "enzyme" : " ^3.0.0" ,
4343 "enzyme-adapter-react-16" : " ^1.0.0" ,
4444 "eslint" : " ^6.0.0" ,
45- "eslint-config-takiyon-react" : " ^0.4 .0" ,
45+ "eslint-config-takiyon-react" : " ^0.5 .0" ,
4646 "eslint-import-resolver-webpack" : " ^0.11.0" ,
4747 "eslint-plugin-import" : " ^2.2.0" ,
4848 "eslint-plugin-jsx-a11y" : " ^6.0.2" ,
Original file line number Diff line number Diff line change @@ -187,11 +187,15 @@ class CheckboxTree extends React.Component {
187187 }
188188
189189 isEveryChildChecked ( node ) {
190- return node . children . every ( child => this . state . model . getNode ( child . value ) . checkState === 1 ) ;
190+ return node . children . every (
191+ ( child ) => this . state . model . getNode ( child . value ) . checkState === 1 ,
192+ ) ;
191193 }
192194
193195 isSomeChildChecked ( node ) {
194- return node . children . some ( child => this . state . model . getNode ( child . value ) . checkState > 0 ) ;
196+ return node . children . some (
197+ ( child ) => this . state . model . getNode ( child . value ) . checkState > 0 ,
198+ ) ;
195199 }
196200
197201 renderTreeNodes ( nodes , parent = { } ) {
Original file line number Diff line number Diff line change 11{
22 "env": {
33 "mocha": true
4+ },
5+ "rules": {
6+ "react/jsx-props-no-spreading": "off"
47 }
58}
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ const { window } = jsdom;
99
1010function copyProps ( src , target ) {
1111 const props = Object . getOwnPropertyNames ( src )
12- . filter ( prop => typeof target [ prop ] === 'undefined' )
13- . map ( prop => Object . getOwnPropertyDescriptor ( src , prop ) ) ;
12+ . filter ( ( prop ) => typeof target [ prop ] === 'undefined' )
13+ . map ( ( prop ) => Object . getOwnPropertyDescriptor ( src , prop ) ) ;
1414 Object . defineProperties ( target , props ) ;
1515}
1616
You can’t perform that action at this time.
0 commit comments