Skip to content

Commit 5e115c2

Browse files
Merge pull request #363 from splitio/refactor_type_definitions_internal_reuse
Refactor TypeScript declarations: apply TSDoc linter rules and reuse types internally
2 parents d13c68e + 549ee4f commit 5e115c2

File tree

142 files changed

+1683
-3058
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+1683
-3058
lines changed

.eslintrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"parser": "@typescript-eslint/parser",
66
"plugins": [
77
"@typescript-eslint",
8+
"eslint-plugin-tsdoc",
89
"import"
910
],
1011

@@ -90,6 +91,19 @@
9091
"sourceType": "module"
9192
}
9293
},
94+
{
95+
"files": ["types/**"],
96+
"rules": {
97+
"no-use-before-define": "off"
98+
}
99+
},
100+
{
101+
// Enable TSDoc rules for TypeScript files, allowing the use of JSDoc in JS files.
102+
"files": ["**/*.ts"],
103+
"rules": {
104+
"tsdoc/syntax": "warn"
105+
}
106+
},
93107
// @TODO remove when moving InLocalStorage to js-browser
94108
{
95109
"files": ["src/storages/inLocalStorage/**/*.ts"],

0 commit comments

Comments
 (0)