Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Commit f83bdf3

Browse files
author
Kris West
authored
Merge pull request #15 from ChartIQ/typescript-linting
Typescript linting and moving variable for bloombergBridgeFolder to locaiton required in 5.0
2 parents 3202bbd + ed04a36 commit f83bdf3

File tree

9 files changed

+3053
-64
lines changed

9 files changed

+3053
-64
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# don't ever lint node_modules
2+
node_modules
3+
# don't lint build output (make sure it's set to your correct build folder name)
4+
dist
5+
# don't lint nyc coverage output
6+
coverage

.eslintrc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
plugins: [
5+
'@typescript-eslint',
6+
],
7+
extends: [
8+
// 'eslint:recommended',
9+
// 'plugin:@typescript-eslint/recommended',
10+
// 'airbnb-typescript'
11+
'eslint:recommended',
12+
'plugin:@typescript-eslint/recommended',
13+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
14+
],
15+
parserOptions: {
16+
tsconfigRootDir: __dirname,
17+
project: './tsconfig.json',
18+
},
19+
rules: {
20+
// indent: ["error", "tab"],
21+
'no-tabs': 'off',
22+
"indent": "off",
23+
"linebreak-style": 0,
24+
"@typescript-eslint/explicit-module-boundary-types": "off"
25+
}
26+
};

finsemble.config.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"seedProjectDirectory": "../finsemble-seed",
3-
"bloombergBridgeFolder": "C:/Users/admin/Documents/code/finsemble-bloomberg/BloombergBridge",
43
"importConfig": [
54
"$applicationRoot/components/Bloomberg Terminal/config.json",
65
"$applicationRoot/components/Bloomberg Bridge/config.json",
7-
"$applicationRoot/components/testBloomberg/config.json",
8-
"$applicationRoot/components/SecurityFinder/config.json"
6+
"$applicationRoot/components/testBloomberg/config.json",
7+
"$applicationRoot/components/SecurityFinder/config.json"
98
]
109
}

finsemble.manifest.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@
66
"alias": "bloomberg_bridge",
77
"target": "BloombergBridge.exe"
88
}
9-
]
9+
],
10+
"finsemble": {
11+
"custom": {
12+
"bloombergBridgeFolder": "C:/Users/admin/Documents/code/finsemble-bloomberg/BloombergBridge"
13+
}
14+
}
1015
}

fpe-scripts/watch.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ async function updateManifestLocal(seedDirectory, currentFile) {
112112

113113
seedManifest.appAssets = newAppAssets;
114114

115+
//add the variable for the bloomberg bridge path (for development)
116+
if (!seedManifest.finsemble.custom) { seedManifest.finsemble.custom = {};}
117+
seedManifest.finsemble.custom.bloombergBridgeFolder = projectManifest.finsemble.custom.bloombergBridgeFolder;
118+
115119
const output = await writeJson(seedManifestPath, seedManifest, { spaces: 4 });
116120
if (output) console.log('success writing manifest');
117121
} catch (error) {

package.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "Finsemble's Bloomberg Terminal Connect Integration",
55
"scripts": {
66
"watch": "node ./fpe-scripts/watch.js",
7-
"docs": "npx typedoc"
7+
"docs": "npx typedoc",
8+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
9+
"lintTS": "tsc --noemit && eslint . --ext .ts,.tsx"
810
},
911
"keywords": [
1012
"Finsemble",
@@ -17,16 +19,24 @@
1719
"node": ">=10"
1820
},
1921
"devDependencies": {
22+
"@finsemble/finsemble-core": "^5.0.1",
23+
"@typescript-eslint/eslint-plugin": "^4.5.0",
24+
"@typescript-eslint/parser": "^4.5.0",
2025
"chokidar": "^3.4.0",
26+
"eslint": "^7.11.0",
27+
"eslint-config-airbnb-typescript": "^12.0.0",
28+
"eslint-plugin-import": "^2.22.1",
29+
"eslint-plugin-jsx-a11y": "^6.3.1",
30+
"eslint-plugin-react": "^7.21.5",
31+
"eslint-plugin-react-hooks": "^4.2.0",
2132
"fs-extra": "^9.0.0",
2233
"typedoc": "^0.17.7",
23-
"typedoc-plugin-markdown": "^2.3.1"
34+
"typedoc-plugin-markdown": "^2.3.1",
35+
"typescript": "^4.0.3"
2436
},
2537
"dependencies": {
26-
"@chartiq/finsemble": "^4.3.0",
2738
"@types/node": "^14.0.13",
2839
"react-autosuggest": "^10.0.2",
29-
"react-tabs": "^3.1.1",
30-
"typescript": "^3.9.5"
40+
"react-tabs": "^3.1.1"
3141
}
3242
}

0 commit comments

Comments
 (0)