Commit Graph
32 Commits
Author SHA1 Message Date
Jack WorksandNathan Shively-Sanders 5f818a9031 fix: class field is not accessible via super (#54056)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-09-22 16:20:12 -07:00
Jack Works e7bb0ebfac refactor: let exportMapKey accepts bad symbol name (#54678) 2023-09-13 09:39:05 -07:00
Jack WorksandJake Bailey cd391b066b chore: disallows unicode escape sequence in JSX (#48609)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-08-09 15:59:39 -07:00
Jack WorksandIsabel Duan bd1e9752d2 fix: import keyword name (#54675)
Co-authored-by: Isabel Duan <iduan@hmc.edu>
2023-06-30 10:14:43 -07:00
Jack WorksandNathan Shively-Sanders ed5008da68 Improve error for unclosed imports and exports (#54634)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-06-29 10:22:05 -07:00
Jack Works e60cf121ae Add check for reference-compared literals to JS files (#49164) 2023-06-12 16:02:25 -07:00
Jack Works 42f9143e11 feat: codefix for for await of (#50623) 2022-09-29 16:13:25 -07:00
Jack Works 075ee3d4b6 refactor: follow gh-50257 JSX.IntrinsicClassAttributes logic (#50271) 2022-08-11 09:32:31 -07:00
Jack Works e2fbe19adf fix: produceLKG does not work on Windows (#50140) 2022-08-10 20:12:17 -07:00
Jack Works 382f0c3af3 fix: crashes when JSX.IntrinsicClassAttributes is an alias type close GH-50254 (#50257) 2022-08-10 10:41:12 -07:00
Jack Works b689cd0aa9 feat: support error when comparing with object/array literals (#45978)
* feat: support error when comparing with object/array literals

* chore: include regexp, function and class literal

* chore: include regexp, function and class literal

* test: update baseline

* fix: baseline
2022-05-12 15:45:22 -07:00
Jack Works 9b5abac4f4 chore: add packageManager field to support corepack (#46756) 2021-12-09 14:46:27 +00:00
Jack Works bb8b9db9f7 Add error for missing await in conditionals 2021-02-16 12:00:41 -05:00
Jack Works 0b6c9254a8 Fix import tracker for dynamic import (#41473)
* chore: migrate findAllRefs_importType_js to baseline

* fix: reference for dynamic import

* fix: find all reference for typeof import()

* fix: test

* refactor: addIndirectUser

* refactor: isExported

* refactor: isExported

* resolve review
2020-12-02 14:46:20 -08:00
Jack Works ad96a52cc6 fix: IOSession access this before calling super (#40645)
* fix: IOSession access this before calling super

close #40399 

This makes the TS server crashes if the build target is ES6 or higher.

* fix

* revert unrelated changes

* revert unrelated changes

* revert unrelated changes

* better way
2020-10-15 11:01:26 -07:00
Jack Works 8dc4f7e3d2 chore: resolve suggestions 2020-06-23 08:06:46 +08:00
Jack Works ddfab9640e change 2020-06-19 11:37:06 +08:00
Jack Works 41a1cd9128 chore: more change 2020-06-19 11:35:35 +08:00
Jack Works 4fce495303 chore: resolve review 2020-06-19 11:28:06 +08:00
Jack Works d33256cc5a chore: save space 2020-06-19 10:50:40 +08:00
Jack Works cdd14ccec6 fix: lint error 2020-06-19 10:50:37 +08:00
Jack Works ffb35a3eb1 test: add test for it 2020-06-19 10:50:35 +08:00
Jack Works c36fe2339a chore: make isJsxAttr required 2020-06-19 10:50:33 +08:00
Jack Works d38096ab90 chore: revert change in checker 2020-06-19 10:50:31 +08:00
Jack Works 5853d2ab69 feat: re-impl react class name fix 2020-06-19 10:50:28 +08:00
Jack Works c8abf6fe67 Revert "feat: add a codefix to fix class to className in react"
This reverts commit 15133266893f113d7d60f8696480adc75aba9827.
2020-06-19 10:50:27 +08:00
Jack Works 8c8f84549c feat: support spell checking in JSX attribute 2020-06-19 10:50:25 +08:00
Jack Works 0975bafbde feat: add name suggestion for JSX 2020-06-19 10:50:23 +08:00
Jack Works 9fe25ca077 feat: add a codefix to fix class to className in react 2020-06-19 10:50:21 +08:00
8e290e5aae Improve error range for ts2657 (jsx expr must have parent element), add code fix for it (#37917)
* fix: range of ts2657 (jsx expr must have parent) and remove 2695 (LHS expr of comma has no side effects)

* feat: add code fix for 2657

* fix: resolve review

* chore: hoist a var

* chore: add test for skipTrivia

* fix: rebase error

* Update src/compiler/diagnosticMessages.json

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

* Update src/services/codefixes/wrapJsxInFragment.ts

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

Co-authored-by: Andrew Branch <andrew@wheream.io>
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2020-06-01 12:22:44 -07:00
Jack Works 6f7faa7636 Fix: convertFunctionToEs6Class cannot recognize x.prototype = {} pattern (#35219)
* fix: convertFunctionToEs6Class cannot recognize `x.prototype = {}` pattern

* test: add test for convert fn to es6

* chore: add more tests

* chore: move tests around

* chore: make code more clear
2020-04-30 11:06:46 -07:00
Jack WorksandOrta Therox 38e717a244 fix: hyphened name not auto-completed by the ls (#37455)
* fix: hyphened name not auto-completed by the ls

* fix: accept new baseline

* Adds a test to validate the hypened identifiers in JSX

Co-authored-by: Orta Therox <orta.therox@gmail.com>
2020-03-23 17:08:44 -04:00