0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-16 02:26:08 -05:00
Commit graph

111 commits

Author SHA1 Message Date
Bartek Iwańczuk
6d03bafd1e
move ops 2024-12-22 21:20:52 +01:00
Bartek Iwańczuk
8479e9541d
update a todo 2024-12-22 21:04:55 +01:00
Bartek Iwańczuk
67e2d06c34
Try to load files differently 2024-12-21 16:08:47 +01:00
Bartek Iwańczuk
fcfd4c09b5
wip after merge 2024-12-21 02:38:23 +01:00
Bartek Iwańczuk
d3e41a770a
Merge branch 'main' into lint_plugins 2024-12-21 02:28:39 +01:00
Marvin Hagemeister
26425a137b
feat(unstable): add JS linting plugin infrastructure (#27416)
This PR extracts the core part of
https://github.com/denoland/deno/pull/27203 to make it easier to review
and land in parts.

It contains:
-  The JS plugin code the deserializes and walks the buffer
- The Rust portion to serialize SWC to the buffer format (a bunch of
nodes are still todos, but imo these can land anytime later)
- Basic lint plugin types, without the AST node types to make this PR
easier to review
- Added more code comments to explain the format etc.


More fixes and changes will be done in follow-up PRs.

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-12-21 00:58:03 +01:00
Marvin Hagemeister
13cc74dd59 clippy stuff 2024-12-18 15:29:27 +01:00
Marvin Hagemeister
5ea018aa58 improve conversion safety 2024-12-18 14:36:24 +01:00
Marvin Hagemeister
e296022d44 fix more types 2024-12-18 12:16:28 +01:00
Marvin Hagemeister
8d9f9ce5e2 fix: node name 2024-12-18 11:30:23 +01:00
Bartek Iwańczuk
53a680bded
Merge branch 'main' into lint_plugins 2024-12-18 05:35:56 +01:00
Marvin Hagemeister
6e70ba2c77 get selector integration working 2024-12-17 12:04:12 +01:00
Bartek Iwańczuk
f9add94e17
refactor(lint): renames and code flattening (#27386)
Working on loading plugin configuration for
https://github.com/denoland/deno/pull/27203
I encountered a lot of complexity, so did some drive-by cleanups to make
it easier to grok the code and have fewer duplicate names.
2024-12-17 01:35:26 +00:00
Marvin Hagemeister
86fc6e64cb WIP 2024-12-16 16:17:02 +01:00
Marvin Hagemeister
f167277561 remove dead code 2024-12-15 22:57:55 +01:00
Marvin Hagemeister
3f9ee0d6df feat(lint): support visitor selector syntax 2024-12-15 22:56:50 +01:00
Marvin Hagemeister
ea11f95029 make js plugins independent of ast strucure 2024-12-15 19:18:30 +01:00
Marvin Hagemeister
65fcda4cd5 improve format 2024-12-13 11:38:35 +01:00
Marvin Hagemeister
f50bf9b064 refactor node handling 2024-12-13 00:33:44 +01:00
Marvin Hagemeister
c83f722039 Refactor binary ast 2024-12-12 22:16:49 +01:00
Marvin Hagemeister
76c1275200 fix traversal 2024-12-12 20:53:08 +01:00
Marvin Hagemeister
8f104313ff more nodes 2024-12-12 15:20:36 +01:00
Marvin Hagemeister
7c7a888fa6 basic ts nodes 2024-12-12 13:28:35 +01:00
Marvin Hagemeister
2902ebaa6f refactor ast 2024-12-12 11:34:45 +01:00
Marvin Hagemeister
dda408b019 fix: clippy 2024-12-12 10:53:12 +01:00
Marvin Hagemeister
d9e506eb8d refactors 2024-12-12 10:42:38 +01:00
Marvin Hagemeister
dd75c31aa3 more_nodes 2024-12-12 10:22:21 +01:00
Marvin Hagemeister
499257cbf1 refactor 2024-12-12 04:19:11 +01:00
Marvin Hagemeister
a3421b9c0a more nodes 2024-12-12 01:35:57 +01:00
Marvin Hagemeister
17ad68bb53 more nodes 2024-12-11 17:47:46 +01:00
Marvin Hagemeister
8e56216adf more nodes 2024-12-11 17:41:33 +01:00
Marvin Hagemeister
a2b10d43f3 more nodes 2024-12-11 17:10:05 +01:00
Marvin Hagemeister
3c19d0651b WIP 2024-12-11 12:47:45 +01:00
Marvin Hagemeister
20c477dc7d WIP 2024-12-11 11:02:21 +01:00
Bartek Iwańczuk
dd42a64c43
refactor(lint): manage schema files for linter in Deno repo (#27324)
This commit provides schema files for lint rules and lint tags
in this repo instead of pulling them from `deno_lint` repository.

A unit test was added to ensure all available rules are listed
in the schema file. A unit test for tags can be done once 
https://github.com/denoland/deno/pull/27162 lands.
2024-12-11 02:06:04 +01:00
Marvin Hagemeister
ccabd64f6d WIP 2024-12-10 23:05:38 +01:00
Marvin Hagemeister
22681b428a WIP 2024-12-10 22:48:54 +01:00
Marvin Hagemeister
c039c51e90 WIP 2024-12-10 21:17:02 +01:00
Marvin Hagemeister
99b9e726d4 WIP 2024-12-10 05:34:12 +01:00
Marvin Hagemeister
280d10e801 WIP 2024-12-10 04:33:33 +01:00
Marvin Hagemeister
4365959f0c WIP 2024-12-06 21:31:28 +01:00
Marvin Hagemeister
4d3767bdb0 WIP 2024-12-06 21:31:28 +01:00
Marvin Hagemeister
d8897bdd3e WIP 2024-12-06 21:31:28 +01:00
Marvin Hagemeister
f0a2614304 WIP 2024-12-06 21:31:28 +01:00
Marvin Hagemeister
c734214c41 WIP 2024-12-06 21:31:28 +01:00
Marvin Hagemeister
a14820586f fix: only invoke lint plugin runner when there are plugins 2024-12-04 12:08:19 +01:00
Bartek Iwańczuk
78dc5b8fe9
remove dead code 2024-12-04 04:33:13 +01:00
Bartek Iwańczuk
026a5d952a
optimize callign to js 2024-12-04 04:30:32 +01:00
Bartek Iwańczuk
3588e75c6c
comment out type decls, capture more fns 2024-12-04 03:29:05 +01:00
Bartek Iwańczuk
052a035c23
plugins can be authored in TS 2024-12-04 02:59:39 +01:00