filtered
0e9b8b03b7
Enforce curly braces in multi-line if statements ( #619 )
...
Removes formatters' ability to print code that goes to a new line, but
uses no braces to delineate.
It becomes more difficult to follow when using JS-style indents (two
spaces).
No effort required - braces added by auto-fixer.
2025-02-26 15:08:23 +00:00
filtered
3040924d76
[TS] Use strict mode in CanvasPointer, measure, and polyfills ( #617 )
...
- Adds runtime type guard
- Adds ts-ignore that must be removed later
* [ ] #578
2025-02-26 13:05:40 +00:00
filtered
9ded97d189
[Doc] Add JSDoc linter & general comment clean up ( #611 )
...
- Prefer comments above lines over end-of-line comments
- Makes auto-formatting easier
- Subjective, but it is generally easier to read in JS
- Standardises JSdoc format
- Auto-fixes for many issues (applies on save w/ESLint extension)
2025-02-26 08:54:18 +00:00
Chenlei Hu
4844311f3b
Add ts-strict-ignore plugin ( #443 )
...
* Add ts-strict-ignore plugin
* nit
2025-02-03 15:49:58 -05:00
filtered
5469bfdd52
Add ESLint, pre-commit hook & format all files ( #319 )
...
* Add ESLint config
* Add ESLint packages
* Add prettier config
* Fix ESLint package version
* Format all files
* Format static assets
* Format project root config
* Add pre-commit code formatting
Formats .css & .js files automatically. If any .ts or .mts files are staged, the entire project is type-checked.
Packages:
- lint-staged
- husky
- prettier
2024-11-20 21:50:58 -05:00
Chenlei Hu
7c0240857c
Revert branch to cb6e80a645 ( #257 )
2024-11-03 09:12:47 -05:00
dmx
79c53e0095
(prettier formatting)
2024-11-03 09:20:57 +04:00
filtered
d9d0837423
Code clean up ( #244 )
...
* Replace global var with enums
* Remove unused interface
* Add TS types
* Remove unused code
* nit - Clean up
* Add TS types
* nit - Refactor / clean up
* nit - Add TS types, clean up
* nit - Doc
* nit
* nit
* nit
* nit - Doc
* nit
* nit
* nit - let/const
* nit - Remove redundant code
2024-10-31 14:17:13 -04:00
filtered
5d510cd674
Revert "Format all code with prettier ( #197 )" ( #198 )
...
This reverts commit 28382b7e45 .
2024-10-08 13:14:36 -04:00
Chenlei Hu
28382b7e45
Format all code with prettier ( #197 )
...
* Add formatter support
* Format all code
* Fix moved @ts-expect-error
2024-10-07 14:06:44 -04:00
filtered
18600f48f9
Clean litegraph module entry file ( #171 )
...
* Move LiteGraph global class props, fix duplicates
* Split polyfills out to separate file
* Move prototype modifications to class decl
2024-09-30 16:31:18 -04:00