forked from eclipse-thingweb/node-wot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(td-tools): enable eslint/strict-boolean-expressions and strictN…
…ullChecks (eclipse-thingweb#1077) * chore: enable eslint/strict-boolean-expressions and strictNullChecks * fix package examples * fix package td-tools Note: leave out asset-interface-description.ts because of eclipse-thingweb#1052 * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * fix: issue issue introduced by commenting * move eslint settings to td-tools package only * fix: lint errors for AID * refactor: revert changes in package "examples" * refactor: revert "!== undefined" to "!= null" OR "=== undefined" to "== null" * refactor: revert some changes proposed by @JKRhb leads to different results * fix: wrong conversion * refactor: missing one undefined change * fix: add proper boolean check * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * refactor: further simplifications * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * refactor: simplify data.version.model check --------- Co-authored-by: Jan Romann <[email protected]> Co-authored-by: Cristiano Aguzzi <[email protected]>
- Loading branch information
1 parent
8e94d64
commit b0edba2
Showing
7 changed files
with
75 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"extends": "../../.eslintrc.js", | ||
"ignorePatterns": "webpack.config.js" | ||
"ignorePatterns": "webpack.config.js", | ||
"rules": { | ||
"@typescript-eslint/strict-boolean-expressions": ["error"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.