Skip to content

Commit

Permalink
chore: add eslint config and test:coverage script
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] and trajan0x committed Dec 19, 2024
1 parent 148105a commit e7846b0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
18 changes: 18 additions & 0 deletions packages/tracing/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -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': '^_' }]
}
};
5 changes: 4 additions & 1 deletion packages/tracing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e7846b0

Please sign in to comment.