File tree Expand file tree Collapse file tree 5 files changed +76
-2
lines changed
packages/instrumentation-long-task Expand file tree Collapse file tree 5 files changed +76
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import tseslint from 'typescript-eslint';
1919import globals from 'globals' ;
2020import nodePlugin from 'eslint-plugin-n' ;
2121import yalhPlugin from 'eslint-plugin-yet-another-license-header' ;
22+ import baselinePlugin from 'eslint-plugin-baseline-js' ;
2223
2324const defaultLicense = `
2425/*
@@ -201,11 +202,20 @@ const baseConfig = tseslint.config(
201202 files : [
202203 '**/examples/web/**/*' ,
203204 '**/packages/**/browser/**/*' ,
204- '**/packages/instrumentation-user-interaction /**/*' ,
205+ '**/packages/auto-instrumentations-web /**/*' ,
205206 '**/packages/instrumentation-document-load/**/*' ,
206207 '**/packages/instrumentation-long-task/**/*' ,
208+ '**/packages/instrumentation-user-interaction/**/*' ,
209+ '**/packages/instrumentation-web-exception/**/*' ,
207210 '**/packages/plugin-react-load/**/*' ,
208211 ] ,
212+ plugins : { 'baseline-js' : baselinePlugin } ,
213+ extends : [
214+ baselinePlugin . configs [ 'recommended-ts' ] ( {
215+ available : 'widely' ,
216+ level : 'error' ,
217+ } ) ,
218+ ] ,
209219 languageOptions : {
210220 globals : {
211221 ...globals . browser ,
Original file line number Diff line number Diff line change 5959 "babel-plugin-istanbul" : " 7.0.1" ,
6060 "cross-env" : " 10.1.0" ,
6161 "eslint" : " 9.34.0" ,
62+ "eslint-plugin-baseline-js" : " 0.4.0" ,
6263 "eslint-plugin-import" : " 2.32.0" ,
6364 "eslint-plugin-n" : " 17.21.3" ,
6465 "eslint-plugin-yet-another-license-header" : " 0.2.0" ,
Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16+
17+ // PerformanceLongTaskTiming is experimental and may change in future versions.
18+ // https://developer.mozilla.org/en-US/docs/Web/API/PerformanceLongTaskTiming
19+ /* eslint-disable baseline-js/use-baseline */
20+
1621import { hrTime } from '@opentelemetry/core' ;
1722import { diag } from '@opentelemetry/api' ;
1823import { InstrumentationBase } from '@opentelemetry/instrumentation' ;
Original file line number Diff line number Diff line change 1616import * as tracing from '@opentelemetry/sdk-trace-base' ;
1717
1818export class DummySpanExporter implements tracing . SpanExporter {
19- export ( spans : tracing . ReadableSpan [ ] ) { }
19+ export ( _spans : tracing . ReadableSpan [ ] ) { }
2020
2121 shutdown ( ) {
2222 return Promise . resolve ( ) ;
You can’t perform that action at this time.
0 commit comments