From e7846b0f7e7287067ac2af3be17c049428074b10 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:48:51 +0000 Subject: [PATCH] chore: add eslint config and test:coverage script Co-Authored-By: 0xnero@protonmail.com <0xnero@protonmail.com> --- packages/tracing/.eslintrc.cjs | 18 ++++++++++++++++++ packages/tracing/package.json | 5 ++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 packages/tracing/.eslintrc.cjs diff --git a/packages/tracing/.eslintrc.cjs b/packages/tracing/.eslintrc.cjs new file mode 100644 index 0000000000..42a18d36a0 --- /dev/null +++ b/packages/tracing/.eslintrc.cjs @@ -0,0 +1,18 @@ +module.exports = { + root: true, + parser: '@typescript-eslint/parser', + plugins: ['@typescript-eslint'], + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended' + ], + env: { + node: true, + jest: true + }, + rules: { + '@typescript-eslint/no-explicit-any': 'error', + '@typescript-eslint/explicit-module-boundary-types': 'error', + '@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }] + } +}; diff --git a/packages/tracing/package.json b/packages/tracing/package.json index c243a68cef..29341e0515 100644 --- a/packages/tracing/package.json +++ b/packages/tracing/package.json @@ -12,7 +12,10 @@ "scripts": { "prepare": "rollup -c --bundleConfigAsCjs", "build": "rollup -c --bundleConfigAsCjs", - "prepublish": "yarn build" + "prepublish": "yarn build", + "lint:check": "eslint . --max-warnings=0", + "ci:lint": "npm run lint:check", + "test:coverage": "echo 'No tests defined.'" }, "dependencies": { "@opentelemetry/api": "1.8.0",