deno
feat(lint): add JavaScript plugin support
#27203
Merged

feat(lint): add JavaScript plugin support #27203

bartlomieju merged 188 commits into denoland:main from bartlomieju:lint_plugins
bartlomieju
bartlomieju basic plugin loading
79b5c3e6
bartlomieju basic execution
7e8e4ae9
bartlomieju some basic structure
1eb4862a
bartlomieju add visitor
49c2d9e2
bartlomieju actually pass AST to plugin
99d70c95
bartlomieju PluginRunner and PluginRunnerProxy
1fdcbd92
bartlomieju req -> resp
bc00517f
bartlomieju first diagnostic from a plugin!
7f458752
bartlomieju load plugins from a flag
c9fa293b
bartlomieju declarative
5639379e
bartlomieju cleanup
0b369714
bartlomieju basic range
f9291e41
bartlomieju measure how long i takes to run
dea3219d
bartlomieju don't dump ast
439d43e5
bartlomieju Merge branch 'main' into lint_plugins
c3208dff
bartlomieju add basic traversal
5a6c1286
bartlomieju correctly report
fb47288f
bartlomieju remove some prints
a15c1165
marvinhagemeister drop!: vue demo rule
008e2493
marvinhagemeister feat: add source() method
f3745f95
marvinhagemeister chore: add more lint rules
46766438
bartlomieju build on stable rust
1217314c
bartlomieju remove unneeded files
a1dfea67
bartlomieju remove debug log, lint
37bafdc6
marvinhagemeister fix: show correct specifier in error output
77526ca0
marvinhagemeister drop!: temporary disable lint cache
5a950e5c
bartlomieju wip
42d9936e
bartlomieju Merge branch 'main' into lint_plugins
c2ac4248
bartlomieju load plugins from a config file
106b1f13
bartlomieju almost working with regular cli worker
3e1e46d4
bartlomieju plugins can be authored in TS
052a035c
bartlomieju add basic type decl
a1e590dc
bartlomieju comment out type decls, capture more fns
3588e75c
bartlomieju optimize callign to js
026a5d95
bartlomieju remove dead code
78dc5b8f
marvinhagemeister fix: only invoke lint plugin runner when there are plugins
a1482058
marvinhagemeister feat: merge lint plugin visitors
2dba36e6
jasfour-seriesai
marvinhagemeister add visitor types
1fc41dcb
marvinhagemeister more types
58e7c2d1
marvinhagemeister chore: ignore lint type errors for now
54f002fc
marvinhagemeister WIP
c734214c
marvinhagemeister WIP
f0a26143
marvinhagemeister WIP
d8897bdd
marvinhagemeister WIP
4d3767bd
marvinhagemeister WIP
4365959f
marvinhagemeister WIP
83da570c
marvinhagemeister WIP
ccf7009d
marvinhagemeister WIP
19baadf3
marvinhagemeister WIP
280d10e8
marvinhagemeister WIP
99b9e726
marvinhagemeister WIP
c039c51e
marvinhagemeister WIP
22681b42
marvinhagemeister WIP
ccabd64f
marvinhagemeister WIP
20c477dc
marvinhagemeister WIP
3c19d065
marvinhagemeister WIP
3629fd1d
marvinhagemeister WIP
d6c20d3f
marvinhagemeister more nodes
a2b10d43
marvinhagemeister more nodes
8e56216a
marvinhagemeister more nodes
17ad68bb
marvinhagemeister more nodes
a3421b9c
marvinhagemeister refactor
499257cb
marvinhagemeister more_nodes
dd75c31a
marvinhagemeister refactors
d9e506eb
marvinhagemeister fix: clippy
dda408b0
marvinhagemeister refactor ast
2902ebaa
marvinhagemeister basic ts nodes
7c7a888f
marvinhagemeister more nodes
8f104313
marvinhagemeister fix traversal
76c12752
marvinhagemeister Refactor binary ast
c83f7220
marvinhagemeister refactor node handling
f50bf9b0
marvinhagemeister improve format
65fcda4c
marvinhagemeister make js plugins independent of ast strucure
ea11f950
marvinhagemeister feat(lint): support visitor selector syntax
3f9ee0d6
marvinhagemeister remove dead code
f1672775
marvinhagemeister WIP
86fc6e64
marvinhagemeister WIP
2f18594c
marvinhagemeister fix selector parser
e542ba8b
marvinhagemeister fix nth child
132db560
marvinhagemeister integrate selctors part 1
d9fd9598
marvinhagemeister get selector integration working
6e70ba2c
marvinhagemeister fix: descendant selector
dde9f52d
bartlomieju Merge branch 'main' into lint_plugins
53a680bd
marvinhagemeister fix: node name
8d9f9ce5
marvinhagemeister fix: sibling selectors
321a1fe5
marvinhagemeister fix more types
e296022d
marvinhagemeister improve conversion safety
5ea018aa
marvinhagemeister clippy stuff
13cc74dd
bartlomieju Merge branch 'main' into lint_plugins
d3e41a77
bartlomieju wip after merge
fcfd4c09
bartlomieju Try to load files differently
67e2d06c
bartlomieju runs tests, but they fail
6e28ae54
bartlomieju revert selector changes
c831535a
bartlomieju fix the plugin
66f22d83
bartlomieju update a todo
8479e954
bartlomieju move ops
6d03bafd
bartlomieju remove dead code
06ddb574
bartlomieju remove --plugins flag support for now
a446c896
bartlomieju load plugins relative to the config file
3bea4cfa
bartlomieju run jsr plugins
71c82e47
bartlomieju Merge branch 'main' into lint_plugins
46db6dd1
bartlomieju remove duplicate types
a6d10328
bartlomieju type
fdea4eaa
bartlomieju remove integration tests for now, we have unit tests for that
a2bacbb0
bartlomieju revert types change
7be95bbb
bartlomieju revert most of typings for now
0a28ac65
bartlomieju simplify plugin loading
0e8457d7
bartlomieju abstract away running plugins
e6d0a6fd
bartlomieju plugins are run inside CliLinter now
f6efc9f3
bartlomieju wire up in the lsp
f55dd0d0
bartlomieju add PluginLogger, finally works in the LSP
05a89f5f
bartlomieju add CancellationToken, but not wired up yet
c1e3357d
bartlomieju smaller diff
f8e8f251
bartlomieju cleanup
1a0a61d0
bartlomieju revert
2d7ef066
bartlomieju remove debug logs
46e191c5
bartlomieju lint
47178efd
bartlomieju use static strings
df54f588
bartlomieju put fns into Rc
f283a0fd
bartlomieju renames
c3ac6031
bartlomieju add support for hint
a6d1f111
bartlomieju Merge branch 'main' into lint_plugins
554bce98
marvinhagemeister feat: support js lint plugins fixes
321e37bf
bartlomieju update for deno_lint changes
2edd3090
bartlomieju use git deno_lint
9685d713
marvinhagemeister feat: support excluding rules from lint plugins
adc25f85
marvinhagemeister feat: add missing fixer methods
b85974b2
marvinhagemeister fix: missing argument
6cf3a274
marvinhagemeister chore: remove cancellation branch
0c1f93e6
marvinhagemeister fix: add missing null check
b972fc99
marvinhagemeister chore: support more nodes
9124e0a0
bartlomieju testing helpers
5af9453f
bartlomieju lint
ebb6b600
bartlomieju
bartlomieju commented on 2025-01-03
bartlomieju wire up CancellationToken
7b3cdf13
bartlomieju bartlomieju marked this pull request as ready for review 1 year ago
bartlomieju
bartlomieju commented on 2025-01-06
bartlomieju Merge branch 'main' into lint_plugins
37207e59
bartlomieju revert changes to permissions
64df2cef
bartlomieju lint
08482b04
bartlomieju foo
ad41ab7c
bartlomieju use structs instead
1f9a5c19
bartlomieju install all plugins in one go
f7051e20
bartlomieju Merge branch 'main' into lint_plugins
ec745bd2
bartlomieju lint
2fddd68d
bartlomieju run in tc_scope
f7b5ee2f
bartlomieju fix print functions
900ef00c
bartlomieju add todos
0db8db2a
bartlomieju Merge branch 'main' into lint_plugins
807cf191
bartlomieju fix after merge
89af19da
bartlomieju
bartlomieju show errors with cause raised in JS
714ed554
bartlomieju validate range
31473ca2
bartlomieju fix printer
ebaf18e8
bartlomieju lsp
0486303c
bartlomieju log -> debug
aa145fd3
bartlomieju Merge branch 'main' into lint_plugins
67f77579
bartlomieju maybe cleanup
cb638dba
bartlomieju add an error
e56e7a28
bartlomieju Merge branch 'main' into lint_plugins
a8c647e0
bartlomieju lint
1b7ed4d9
bartlomieju Merge branch 'main' into lint_plugins
9b36c6f2
bartlomieju Merge remote-tracking branch 'upstream/main' into lint_plugins
278bfd02
bartlomieju Merge branch 'main' into lint_plugins
0a46741b
bartlomieju lint
4d3aa3f7
bartlomieju bump deno_lint
008c7897
bartlomieju Merge branch 'main' into lint_plugins
532f756b
bartlomieju Merge branch 'main' into lint_plugins
92876ea6
bartlomieju add some comments in JSDoc
b1bfea69
bartlomieju more JSDoc fixes
bf9e4493
bartlomieju simplify types
b3ddde1d
bartlomieju more types
46e150dc
bartlomieju jsdoc my old friend
b3d0b0e4
bartlomieju further fixes
97d8ae29
bartlomieju fix dts
43fff854
bartlomieju Merge branch 'main' into lint_plugins
9782f415
bartlomieju fix lsp tests
fb0fe35c
bartlomieju fix unit tests
d71ff4e6
bartlomieju should work now
843e8eb1
bartlomieju fix again
418e2643
bartlomieju integration tests should be passing now
09fbea10
bartlomieju schema file test update
142bac0d
bartlomieju Merge branch 'main' into lint_plugins
85099a9c
dsherret
dsherret commented on 2025-01-31
dsherret
dsherret commented on 2025-01-31
dsherret
dsherret commented on 2025-01-31
dsherret
dsherret commented on 2025-01-31
bartlomieju Merge branch 'main' into lint_plugins
26555b4c
bartlomieju review first pass
e5b57f64
bartlomieju compute plugins when resolving options
4a9c1d68
bartlomieju bartlomieju added this to the 2.2.0 milestone 1 year ago
dsherret Merge branch 'main' into lint_plugins
69bc80f3
dsherret
dsherret commented on 2025-02-04
dsherret Fix ranges in tests
ce058edc
dsherret remove top level test folder
24b59762
dsherret make js ranges utf16 and better error handling
9d2ccda8
dsherret stricter validation on plugin name
554586f6
dsherret remove lock
99d41a29
dsherret
dsherret approved these changes on 2025-02-05
bartlomieju bartlomieju merged f08ca641 into main 1 year ago
bartlomieju bartlomieju deleted the lint_plugins branch 1 year ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone