Commit graph

1963 commits

Author SHA1 Message Date
Boshen
717d472d09
chore(linter): move some rules to pedantic
* prefer_dom_node_append
* prefer_string_slice
* no_hex_escape
2023-11-22 14:26:54 +08:00
IWANABETHATGUY
b6393f052f
feat(transformer/react): handle babel 8 breaking removed-options (#1489)
1. removed options react jsx
2. Passed 4 test cases.
2023-11-22 11:01:40 +08:00
Dunqing
f06f0f2078
feat(task/prettier-confromance): ignore tests with non-standard syntax (#1492) 2023-11-22 11:01:26 +08:00
Dunqing
79c67d15c0
perf(prettier): check commandjs or amd in CallExpression only (#1491) 2023-11-22 10:57:31 +08:00
Boshen
064353c97e
feat(prettier): turn off preserve_parens and start working on need-parens (#1487) 2023-11-21 16:26:56 +00:00
IWANABETHATGUY
f66e4d8ac3
feat(transformer): add transform property-literal plugin (#1458)
1. Add `transform-property-literal-plugin`
2. Passing 2 testcases.

---------

Co-authored-by: Wenzhe Wang <mysteryven@gmail.com>
2023-11-21 23:07:43 +08:00
Shannon Rothe
8934ddb590
feat(prettier): basic TaggedTemplateExpression printing (#1486) 2023-11-21 22:15:29 +08:00
IWANABETHATGUY
4fb4a85ab1
chore(transformer): 🤖 add diff section when conformance failed in filter mode (#1488) 2023-11-21 21:47:58 +08:00
Boshen
c934d93713
chore(justfile): update just update for syncing submodules 2023-11-21 18:57:32 +08:00
Boshen
f41b3f0968
Release oxc_resolver v0.5.4 2023-11-21 18:57:27 +08:00
Dunqing
347b5721c0
feat(prettier): print multiple variable declarator correctly in VariableDeclaration (#1485) 2023-11-21 18:54:26 +08:00
Dunqing
f1874c7955
feat(prettier): should be newline if break in AssigmentExpression (#1484) 2023-11-21 18:50:26 +08:00
Shannon Rothe
332ed81e1e
chore(linter): uncomment test case for no-func-assign rule (#1483) 2023-11-21 18:22:09 +08:00
Boshen
abde1e06b0
refactor(resolver): do not search for package.json inside non-existing directories (#1482) 2023-11-21 17:28:27 +08:00
Dunqing
c762a85fcc
feat(prettier): print inner comment in PropertyKey (#1479) 2023-11-21 17:26:36 +08:00
Boshen
4dbe17c33a
fix(resolver): make sure package.json path is inside the resolved path (#1481) 2023-11-21 17:24:06 +08:00
Dunqing
79c2bac6b1
feat(prettier): support longer source in ImportExpression (#1478) 2023-11-21 17:21:23 +08:00
Boshen
7b909de28e
perf(resolver): do not search for package.json inside non-existing directories (#1480) 2023-11-21 16:57:44 +08:00
Dunqing
51a78e2223
feat(prettier): support print inner comment in CallExpression (#1475) 2023-11-21 12:28:46 +08:00
Boshen
07b010912a
feat(parser): add preserve_parens option (default: true) (#1474)
closes #1461
2023-11-21 11:16:30 +08:00
Cameron
0f7d6a5800
feat(linter) eslint plugin unicorn: prefer dom node remove (#1472) 2023-11-21 10:40:40 +08:00
Cameron
1c28feec52
feat(linter) eslint plugin unicorn: prefer includes (#1471) 2023-11-21 10:35:26 +08:00
Cameron
807ede7996
refactor(linter) Use is_method_call in no_console_spaces (#1470) 2023-11-21 10:30:31 +08:00
Cameron
32afe1afd0
refactor(linter) Use is_method_call in more places (#1469) 2023-11-21 10:25:25 +08:00
Cameron
ce20a02692
feat(linter) eslint plugin unicorn: prefer array some (#1467) 2023-11-21 10:21:25 +08:00
Cameron
ba1bb03e91
feat(linter) eslint plugin unicorn: prefer math trunc (#1466) 2023-11-21 10:16:26 +08:00
Cameron
067cec7d82
feat(linter) eslint plugin unicorn: prefer event target (#1465) 2023-11-21 10:11:27 +08:00
Shannon Rothe
0b6b0b4854
feat(cli): add --deny-warnings flag (#1452)
See #1403

Terminates linting with an exit code of 1 if the `--deny-warnings` flag
is provided _and_ there is 1 or more warnings produced from the linting.
2023-11-21 10:08:10 +08:00
Cameron
10be84a07a
feat(linter) eslint plugin unicorn: no zero fractions (#1464) 2023-11-21 10:06:28 +08:00
Dunqing
d64ed0a953
feat(prettier): support format commonjs and amd call (#1473) 2023-11-21 10:05:39 +08:00
Cameron
8b0032d4af
feat(linter): eslint plugin unicorn: no useless switch case (#1463) 2023-11-21 10:02:32 +08:00
magic-akari
f81f15ff71
fix(prettier): Private Field Expression (#1459) 2023-11-20 23:32:16 +08:00
Wenzhe Wang
5aca375a94
feat(prettier): add should_break for array (#1454) 2023-11-20 22:58:52 +08:00
magic-akari
4c213a1c14
fix(prettier): async arrow expression (#1457) 2023-11-20 22:58:37 +08:00
magic-akari
59b8fdfaa5
fix(prettier): class extends clause (#1456) 2023-11-20 21:45:28 +08:00
magic-akari
18d8be0353
fix(prettier): class without name (#1455) 2023-11-20 21:41:14 +08:00
magic-akari
eecf8d3dc6
fix(prettier): print_method (#1453) 2023-11-20 12:41:36 +00:00
Shannon Rothe
712505bfce
chore(prettier): fix typo in function name (#1451)
Small typo on the function name cloned from the Prettier repo
2023-11-20 18:51:45 +08:00
Boshen
4af5f29774
ci: disable native build 2023-11-20 17:45:51 +08:00
Boshen
507958d5bf
Revert "chore(deps): bump the dependencies group with 2 updates (#1446)"
This reverts commit b052f022aa.
2023-11-20 17:24:25 +08:00
Boshen
0bf3dbfde4
feat(prettier): add infra for need_parens (#1450) 2023-11-20 17:18:39 +08:00
Dunqing
719ed744e0
feat(prettier): implement should_break in CallExpression and Object (#1448) 2023-11-20 17:07:32 +08:00
Dunqing
aabed6bee8
feat(prettier): when calculating the remaining width, the docs of the remaining commands should be included (#1441) 2023-11-20 16:59:06 +08:00
magic-akari
a7e0706dbc
fix(parser): correct import_kind of TSImportEqualsDeclaration (#1449) 2023-11-20 16:57:38 +08:00
Dunqing
ca06126d50
feat(prettier): support format function for ImportNamespaceSpecifier (#1443) 2023-11-20 07:24:15 +00:00
Boshen
6892a298cf
feat(prettier): add spacing before empty bracket in ImportDeclaration (#1447)
Co-authored-by: Dunqing <dengqing0821@gmail.com>
2023-11-20 15:14:38 +08:00
dependabot[bot]
b052f022aa
chore(deps): bump the dependencies group with 2 updates (#1446) 2023-11-20 15:09:29 +08:00
Boshen
1a576f60a8
refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
Cameron
d02b7470d9
feat(prettier) print ?. when a printing an optional call expression (#1440) 2023-11-20 09:40:28 +08:00
Cameron
a53c5e9bab
feat(prettier) check original state for new lines when formatting properties (#1439) 2023-11-20 09:36:26 +08:00