Devin-Yeung
c0b06a5700
feat(rulegen): automatically detect proxy ( #740 )
...
detect `HTTP_PROXY/HTTPS_PROXY/ALL_PROXY` environments automatically,
since visiting https://raw.githubusercontent.com sometimes need proxy,
upstream PR
[algesten/ureq#649 ](https://github.com/algesten/ureq/pull/649 )
2023-08-15 13:32:09 +08:00
Sg
fae9a7c28b
feat(formatter): add "Quote Props" option ( #652 )
...
For #634 .
This PR prepares for the fix of #634 , adding an option to formatter to
control whether to quote object properties. After this PR, the rulegen
script can use oxc-formatter to output JSON-like object literal.
The `Quote Props` option is from Prettier. For detail:
https://prettier.io/docs/en/options.html#quote-props
> Change when properties in objects are quoted.
> Valid options:
> "as-needed" - Only add quotes around object properties where required.
> "consistent" - If at least one property in an object requires quotes,
quote all properties.
> "preserve" - Respect the input use of quotes in object properties.
---------
Co-authored-by: Don Isaac <donald.isaac@gmail.com>
2023-08-15 11:40:38 +08:00
Devin-Yeung
a041fbd96b
fix(rulegen): import thiserror correctly ( #735 )
...
close #734
2023-08-14 10:20:25 +08:00
Wenzhe Wang
0c645170a8
feat(linter): valid-describe-callback(eslint-plugin-jest) ( #706 )
2023-08-12 16:47:49 +08:00
Alexandr Metreniuc
f8358a148a
feat(linter): @typescript-eslint/no-namespace ( #703 )
2023-08-09 23:02:24 +08:00
Wenzhe Wang
de110828cc
fix(task): update taggedTemplateExpression template ( #676 )
...
For generate test cases like:
```js
{
code: dedent`
afterAll(async (done) => {
await myAsyncTask();
done();
});
`,
errors: [{ messageId: 'useAwaitInsteadOfCallback', line: 1, column: 17 }],
},
```
2023-08-02 11:46:15 +08:00
Boshen
e25f6e2dd4
chore(rust): rust cargo fmt and fix clippy warnings
2023-07-04 15:41:30 +08:00
Wenzhe Wang
a0eba67ad9
feat(tasks): support init jest lint rule ( #513 )
2023-07-04 14:53:29 +08:00
Boshen
9ca942ab2e
fix(tasks): save eslint files to the eslint/ directory
2023-06-28 20:48:51 +08:00
Carter Snook
a518bcbb3b
fix(tasks/rulegen): use correct Span import ( #433 )
2023-06-12 11:09:02 +08:00
Boshen
b26900f8c4
fix(rulegen): fix ureq not working without tls
2023-06-09 12:43:41 +08:00
Boshen
ad2835f11b
chore(rustfmt): run cargo fmt
2023-05-21 11:52:26 +08:00
Boshen
af95b59a0e
feat(ast): split Property into ObjectProperty and BindingProperty ( #361 )
2023-05-16 15:51:50 +08:00
Boshen
14720e7c69
refactor: move SourceType from oxc_ast to oxc_span ( #351 )
...
related #350
2023-05-12 23:16:14 +08:00
Boshen
ec092eab01
deps(rust): bump dependencies
2023-05-12 11:23:41 +08:00
Wenzhe Wang
638576c323
fix(ast): replace ArrayElementType ( #330 )
2023-05-04 20:33:58 +08:00
Boshen
cd276c2850
feat: add oxc_span crate ( #323 )
2023-04-27 21:51:15 +08:00
Boshen
1004a1d197
chore: clean up workspace dependencies ( #320 )
2023-04-27 11:38:39 +08:00
Boshen
7aca953635
ci: add cargo deny
2023-04-22 22:35:19 +08:00
Boshen
4801e68b56
chore: bump deps ( #311 )
2023-04-22 22:09:53 +08:00
Boshen
080baaa2db
chore: use taplo to reformat toml files
2023-04-22 15:58:59 +08:00
Boshen
4939eeab6a
refactor(oxc_ast): cleanup docs and exports
2023-04-15 18:02:17 +08:00
Boshen
a7cd845fff
feat: add cargo minsize task for tracking minification size ( #276 )
...
* feat: add `cargo minsize` task for tracking minification size
* add gzip
2023-04-14 13:07:37 +08:00
Boshen
abcda95e8e
deps: bump deps
2023-04-02 16:48:45 +08:00
Boshen
de9be97f0f
chore: clean up Cargo.toml in tasks
2023-03-31 22:22:18 +08:00
Boshen
9e3675a575
chore: clean up Cargo.toml
2023-03-30 23:27:26 +08:00
yangchenye
40460dd32b
feat(rulegen): fallback to empty rule template ( #208 )
2023-03-24 22:36:11 -07:00
Xuan
e4d5202f52
fix(rulegen): convert the rule name to underscore case for filenames ( #177 )
2023-03-14 11:26:27 +08:00
Boshen
2ee0b40656
chore: fix clippy warnings
2023-03-10 11:09:44 -08:00
Shannon Rothe
da8355f418
feat(rulegen): refactor to visitor pattern ( #162 )
...
* feat(rulegen): refactor to visitor pattern
* convert `parse_test_code` to visitor pattern
2023-03-09 17:33:30 +08:00