filtered
1e8938ceff
Add unicorn lint rules - DOM built-in functions ( #628 )
...
- Prefer append(), remove(), replaceAll()
- Wrap nested ternaries in parenthesis
2025-02-27 09:18:25 +00:00
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
5cdd0581fa
Add import / export sort rules ( #612 )
...
- Adds ESLint package
- Applies import/export rules to all files
- Uses newline delineated grouping, with type-only imports first
2025-02-26 09:21:33 +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
filtered
9d6c867607
[TS] Strict mode: CurveEditor ( #580 )
...
- Converts `CurveEditor` to ts strict
- Two runtime changes: explicit throws instead of `TypeError` on following line
2025-02-24 10:21:35 +00:00
filtered
4163cb04b8
[Refactor] Prefer modern for..of loops ( #566 )
...
- Replaces traditional incrementing `for` loops and `forEach()` calls with modern `for..of` syntax
- Improves readability
- Semantic checking used; not expecting issues to arise from this portion
2025-02-23 19:59:41 +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
c0afb1306e
Convert CurveEditor to TypeScript ( #211 )
2024-10-24 19:59:36 -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
7c11409881
Split CurveEditor out to TS file
2024-09-27 09:56:19 +09:00