File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,7 @@ module.exports = {
21
21
{
22
22
files : [ 'test/**/*.ts' ] ,
23
23
24
- rules : {
25
- // most of these errors come from `new Promise(process.nextTick)`
26
- '@typescript-eslint/unbound-method' : 'off' ,
27
- // TODO: decide if we want to enable this again after the migration
28
- // We can take the freedom to be a bit more lenient with tests
29
- '@typescript-eslint/no-floating-promises' : 'off' ,
30
- } ,
24
+ rules : { } ,
31
25
} ,
32
26
{
33
27
files : [ 'src/types/deprecated.ts' ] ,
Original file line number Diff line number Diff line change 1
- export type LaunchDarklyOptions = Record < string , never > ; //TODO:
1
+ export type LaunchDarklyOptions = Record < string , never > ; // Extend as needed.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export const FLAG_BUFFER_SIZE = 100;
17
17
* oldest inserted flag is evicted.
18
18
*/
19
19
export function insertToFlagBuffer ( flags : FeatureFlag [ ] , name : string , value : boolean ) : void {
20
- // Check if the flag is already in the buffer
20
+ // Check if the flag is already in the buffer - O(n)
21
21
const index = flags . findIndex ( f => f . flag === name ) ;
22
22
23
23
if ( index !== - 1 ) {
You can’t perform that action at this time.
0 commit comments