File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ rules:
247247 default-case : off
248248 default-case-last : error
249249 default-param-last : error
250- dot-notation : off
250+ dot-notation : error
251251 eqeqeq : [error, smart]
252252 grouped-accessor-pairs : error
253253 guard-for-in : error
@@ -583,6 +583,7 @@ overrides:
583583
584584 # Disable conflicting ESLint rules and enable TS-compatible ones
585585 default-param-last : off
586+ dot-notation : off
586587 lines-between-class-members : off
587588 no-array-constructor : off
588589 no-dupe-class-members : off
@@ -594,6 +595,7 @@ overrides:
594595 require-await : off
595596 no-return-await : off
596597 ' @typescript-eslint/default-param-last ' : error
598+ ' @typescript-eslint/dot-notation ' : error
597599 ' @typescript-eslint/lines-between-class-members ' :
598600 [error, always, { exceptAfterSingleLine : true }]
599601 ' @typescript-eslint/no-array-constructor ' : error
@@ -608,7 +610,6 @@ overrides:
608610 ' @typescript-eslint/return-await ' : error
609611
610612 # Disable for JS, Flow and TS
611- ' @typescript-eslint/dot-notation ' : off # TODO consider
612613 ' @typescript-eslint/init-declarations ' : off
613614 ' @typescript-eslint/no-magic-numbers ' : off
614615 ' @typescript-eslint/no-use-before-define ' : off
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const labelsConfig = {
3737 fold : true ,
3838 } ,
3939} ;
40- const GH_TOKEN = process . env [ 'GH_TOKEN' ] ;
40+ const { GH_TOKEN } = process . env ;
4141
4242if ( ! GH_TOKEN ) {
4343 console . error ( 'Must provide GH_TOKEN as environment variable!' ) ;
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ describe('inspect', () => {
8181 expect ( inspect ( { a : { b : { c : 1 } } } ) ) . to . equal ( '{ a: { b: [Object] } }' ) ;
8282
8383 const map = Object . create ( null ) ;
84- map [ 'a' ] = true ;
85- map [ 'b' ] = null ;
84+ map . a = true ;
85+ map . b = null ;
8686 expect ( inspect ( map ) ) . to . equal ( '{ a: true, b: null }' ) ;
8787 } ) ;
8888
You can’t perform that action at this time.
0 commit comments