Commit graph

7114 commits

Author SHA1 Message Date
Amit Dahan
50f133f9a6
feat(cli): Print lint duration (#105) 2023-03-03 18:34:30 -08:00
Boshen
47c1e7ef51
feat(cli): print diagnostics with file name (#103)
This also speeds up printing when a file has lots diagnostics.
This is done by allocating only once compared to multiple times from before.
2023-03-03 08:43:13 -08:00
magic-akari
b4ee8c0dc3
feat(linter): no-empty-pattern (fix) 2023-03-03 17:53:51 +08:00
magic-akari
85de06eae7
feat(linter): no-empty-pattern (#74)
* feat(linter): no-empty-pattern

* chore(linter/no-empty-pattern): update docs and examples

* chore: fix typo
2023-03-03 17:53:00 +08:00
Shannon Rothe
92b232372f
feat(linter): implement autofix (#94)
* feat(linter): implement autofix

* remove `fs::write`
2023-03-03 17:12:47 +08:00
Shannon Rothe
77d6edbe72 feat(cli): use BufWriter for diagnostic printing 2023-03-02 21:59:42 -08:00
Ye Yangchen
b06ab627bf fix(oxc_parser) correct span for decorators 2023-03-02 21:34:24 -08:00
Boshen
6a191ddce2
chore(cli): fix clippy warnings 2023-03-03 10:41:34 +08:00
Pascal Schilp
679cd0bf32
feat(cli): parallelize diagnostics (#93)
feat(cli): parallelize printing of diagnostics
2023-03-02 07:28:45 -08:00
Boshen
4c4cb4d526 ci: setup npm publish 2023-03-02 06:55:56 -08:00
Boshen
2d09c57ce8 ci: deny all warnings 2023-03-02 00:44:03 -08:00
Shannon Rothe
27b82bda36
feat(cli): implement --max-warnings CLI option (#77)
* implement `--max-warnings` CLI option

* implement `--max-warnings` CLI option

* review comments

* remove `.vscode/`

* revert loop + add tests
2023-03-02 16:16:03 +08:00
Xuan
51d0ced5a0 feat(oxc_cli): support no-ignore 2023-03-01 23:54:11 -08:00
Shannon Rothe
6647752e03
refactor(ast): change Option<Vec> to Vec for decorators (#84)
* remove `Option<Vec>` from `FormalParameter`

* `unwrap` -> `unwrap_or_else`

* prefer `AstBuilder` helper

* implement `consume_decorators`
2023-03-02 15:52:46 +08:00
Ye Yangchen
d8c6caf57f feat(oxc_parser): Parse modifiers before declaration 2023-03-01 22:50:23 -08:00
Shannon Rothe
ba6414656c run coverage 2023-03-01 20:47:52 -08:00
Shannon Rothe
143edeb62f prepend TS error code 2023-03-01 20:47:52 -08:00
Shannon Rothe
df78044c87 lint 2023-03-01 20:47:52 -08:00
Shannon Rothe
bc6a6d50ea remove TODO 2023-03-01 20:47:52 -08:00
Shannon Rothe
4d894e7db1 parser: prevent JSX expressions using comma operator 2023-03-01 20:47:52 -08:00
Yoni Feigelson
9b5c170c19 refactor(linter) Generate rule name with declare_oxc_lint 2023-03-01 06:50:36 -08:00
Boshen
5fb425029a chore: s/LICENSE-THIRD-PARTY/THIRD-PARTY_LICENSE
so it doesn't show up as "Unknown licenses found"
2023-03-01 21:11:20 +08:00
Boshen
a15b57a9cf ci: remove permissions override, I changed it in the GitHub settings 2023-03-01 20:47:14 +08:00
Xuan
298e956d0d feat(oxc_cli): support ignore-path 2023-03-01 04:39:18 -08:00
Shannon Rothe
0992a4930c printer: support JSXElement/JSXFragment 2023-03-01 02:34:23 -08:00
Boshen
df64e2f8b1
ci: bump 0.0.0-alpha.4 and trigger release_ci.yaml 2023-03-01 14:12:19 +08:00
Boshen
abc368a203
ci: fix zip name 2023-03-01 13:58:52 +08:00
Boshen
e9764382c6
ci: bump 0.0.0-alpha.3 and trigger release_ci.yaml 2023-03-01 13:44:53 +08:00
Boshen
5e451ff2e4
ci: fix zip name 2023-03-01 13:44:14 +08:00
Boshen
0024fc10d9
ci: bump 0.0.0-alpha.2 and trigger release_ci.yaml 2023-03-01 11:33:30 +08:00
Boshen
10bd3d518c
ci: attempt to fix upload permissions 2023-03-01 11:32:41 +08:00
Yoni Feigelson
f859ee0e38 feat(linter): declare_oxc_lint proc_macro 2023-02-28 18:05:45 -08:00
Xuan
c2fb3613bd feat(oxc_cli): support ignore-pattern 2023-02-28 08:38:33 -08:00
Boshen
a3ffee8b21 ci: trigger release_ci.yaml 2023-03-01 00:34:38 +08:00
Boshen
4f78d69e0e chore(rust): remove symbols in release profile 2023-03-01 00:33:24 +08:00
Boshen
bd4730ccfc ci: add back binary permissions after download in release_cli 2023-03-01 00:32:25 +08:00
Boshen
9852c2e49f ci: trigger release_ci.yaml 2023-02-28 23:44:22 +08:00
Boshen
5f651df156 ci: add write permissions to release_cli.yaml 2023-02-28 23:34:18 +08:00
Boshen
825e27178c ci: add release_cli.yaml with build binary and upload artifact steps 2023-02-28 07:21:03 -08:00
Boshen
b0c67c3a69
chore(README): credit @jfmengels and elm-review 2023-02-28 10:27:15 +08:00
Amit Dahan
3b53e0ba4e feat(linter): no-array-constructor 2023-02-27 08:12:28 -08:00
Boshen
3b887dbeaf feat(parser): print json in parser example 2023-02-28 00:05:54 +08:00
Boshen
665e8723c0 refactor(ast): remove acorn feature
This is a left over from where I tried to be compatible with estree,
but the implementation deviated from estree.
2023-02-27 23:44:13 +08:00
thepassle
33e5f8dd8d feat(cli): support --quiet flag for lint command 2023-02-27 07:43:00 -08:00
Boshen
00cdf703f6
chore(README): credit author of the TypeScript parser 2023-02-27 14:04:55 +08:00
Boshen
91e10d5e16
chore(README.md): add discord channel 2023-02-27 13:04:28 +08:00
Boshen
ab0b764dfc
chore(README.md): include third party licenses 2023-02-27 12:46:07 +08:00
Boshen
9d4367c2cd refactor(linter): s/from_json/from_configuration 2023-02-27 12:31:57 +08:00
Boshen
8b9ebcd6e5 feat(linter): read rule configuration from json 2023-02-27 12:31:57 +08:00
Boshen
b4a5f13fb6 feat(linter): make no-empty configure from json 2023-02-27 12:31:57 +08:00