Skip to content

Commit caab6d9

Browse files
Introduce DocumentInfo Cache and discovery of spans, wrapped in a function (#244)
Introduce DocumentInfo Cache Add spans to the document discovered by server that are wrapped within function Fix typos and some ESLint warnings Add Prettier Add pre-commit hooks with linter checks
1 parent aed0143 commit caab6d9

36 files changed

+4337
-308
lines changed

.eslintrc.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
jquery: true,
5+
es2021: true,
6+
node: true
7+
},
8+
root: true,
9+
extends: [
10+
// "eslint:recommended",
11+
// "plugin:@typescript-eslint/recommended",
12+
// "plugin:@typescript-eslint/recommended-requiring-type-checking",
13+
"prettier"
14+
],
15+
parser: "@typescript-eslint/parser",
16+
parserOptions: {
17+
tsconfigRootDir: __dirname,
18+
project: "./tsconfig.eslint.json",
19+
ecmaVersion: 12,
20+
sourceType: "module"
21+
},
22+
plugins: ["@typescript-eslint"],
23+
rules: {
24+
/* eslint-disable @typescript-eslint/naming-convention */
25+
"@typescript-eslint/naming-convention": "warn",
26+
"@typescript-eslint/semi": "warn",
27+
curly: "warn",
28+
eqeqeq: "warn",
29+
"no-throw-literal": "warn",
30+
semi: "off"
31+
/* eslint-enable @typescript-eslint/naming-convention */
32+
},
33+
ignorePatterns: [
34+
"jaegerUi",
35+
"out",
36+
"src/views-ui/common/jquery-3.6.0.min.js",
37+
"src/views-ui/common/require-2.3.6.min.js"
38+
]
39+
};

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ out/**
55
.DS_Store
66

77
.idea/
8+
.eslintcache

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run precommit

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
jaegerUi/
2+
out/
3+
package.json
4+
package-lock.json
5+
src/views-ui/common/jquery-3.6.0.min.js
6+
src/views-ui/common/require-2.3.6.min.js

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"trailingComma": "none",
3+
"tabWidth": 4
4+
}

.stylelintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": [
3+
"stylelint-config-recommended-scss",
4+
"stylelint-config-prettier-scss"
5+
]
6+
}

.vscode/extensions.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
2-
// See http://go.microsoft.com/fwlink/?LinkId=827846
3-
// for the documentation about the extensions.json format
4-
"recommendations": [
5-
"dbaeumer.vscode-eslint"
6-
]
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint",
6+
"stylelint.vscode-stylelint",
7+
"davidanson.vscode-markdownlint",
8+
"esbenp.prettier-vscode"
9+
]
710
}

.vscode/settings.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
},
99
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
1010
"typescript.tsc.autoDetect": "off",
11-
"python.linting.enabled": true,
12-
"digma.environment": "DEV",
13-
"torque.activeProfile": "",
14-
"editor.detectIndentation": false,
15-
"editor.tabSize": 4,
16-
}
11+
// "editor.formatOnSave": true,
12+
"editor.codeActionsOnSave": {
13+
// "source.organizeImports": true
14+
},
15+
"editor.defaultFormatter": "esbenp.prettier-vscode",
16+
"stylelint.validate": ["css", "scss"]
17+
}

0 commit comments

Comments
 (0)