Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Oct 14, 2024
1 parent c9717ce commit 73ed9c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 3 additions & 9 deletions packages/sdk/browser/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const terserOpts = {
regex: /^_/,
// Do not mangle '_meta', because this is part of our JSON
// data model.
reserved: ['_meta']
reserved: ['_meta'],
},
}
},
};

export default [
Expand All @@ -53,12 +53,6 @@ export default [
},
{
...getSharedConfig('cjs', 'dist/index.cjs.js'),
plugins: [
typescript(),
common(),
resolve(),
terser(terserOpts),
json(),
],
plugins: [typescript(), common(), resolve(), terser(terserOpts), json()],
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ describe('given a flag payload with prerequisites', () => {
let testPayload: FlagsAndSegments;

class TestQueries implements Queries {
constructor(private readonly data: FlagsAndSegments) {}
constructor(private readonly _data: FlagsAndSegments) {}

getFlag(key: string, cb: (flag: Flag | undefined) => void): void {
const res = this.data.flags[key];
const res = this._data.flags[key];
cb(res);
}

getSegment(key: string, cb: (segment: Segment | undefined) => void): void {
const res = this.data.segments[key];
const res = this._data.segments[key];
cb(res);
}

Expand Down

0 comments on commit 73ed9c8

Please sign in to comment.