Boshen
a5734db437
ci: add timeout to benchmark
2023-11-16 10:54:38 +08:00
Boshen
5cafe24bea
chore: update gitmodules for prettier
2023-11-16 10:49:07 +08:00
Boshen
a2f9c8c6b7
feat(prettier): add more expression formatting logic ( #1334 )
2023-11-15 16:36:15 +00:00
Boshen
9594f62caf
feat(prettier): add print_block ( #1333 )
2023-11-15 14:56:20 +00:00
Wenzhe Wang
f04921fa95
feat(prettier): format WithStatement ( #1332 )
2023-11-15 14:49:52 +00:00
Boshen
45d5cf7e0a
chore(prettier): move format.rs to its own directory ( #1331 )
2023-11-15 13:08:29 +00:00
Boshen
ad49551a3d
ci: add prettier label
2023-11-15 17:44:20 +08:00
Boshen
33a14902d3
perf(prettier): preallocate the output buffer ( #1328 )
2023-11-15 14:24:47 +08:00
Iván Ovejero
5ade8950e6
feat(linter): Add rule eslint(no_regex_spaces) ( #1129 )
2023-11-15 14:04:48 +08:00
Dunqing
ba0e4d1a6a
feat(tasks/prettier-conformance): parse the specs and pass the correct options to prettier ( #1327 )
...
### This PR did the following things.
1. Parse specs
2. Collect `run_spec's` arguments
3. Pass the correct `PrettierOptions` to the `Prettier`
4. Printing snapshots correctly
2023-11-15 13:30:44 +08:00
Cameron
e5a34366af
fix(prettier) Fix printing of array expressions ( #1325 )
2023-11-15 10:18:32 +08:00
Cameron
9c170b89ff
refactor(prettier) Remove flat_contents from IfBreak ( #1324 )
2023-11-15 10:13:30 +08:00
Hao Cheng
71b3f48af1
feat(linter): eslint-plugin-unicorn/number-literal-case ( #1271 )
...
This PR implements the
[eslint-plugin-unicorn/number-literal-case](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/number-literal-case.md )
rule.
Tests taken from
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/test/number-literal-case.mjs .
(Test cases that rely on a Vue parser are removed.)
Related issue: #684
2023-11-15 10:07:19 +08:00
Cameron
01a3a77ead
fix(prettier) indent block stmts correctly ( #1323 )
2023-11-15 09:59:11 +08:00
Cameron
ebcd707e8b
feat(prettier) Get indentation working ( #1322 )
2023-11-15 09:58:35 +08:00
Boshen
be043c37e9
refactor(ast): VariableDeclarationKind::to_string -> as_str ( #1321 )
2023-11-14 15:28:13 +00:00
Boshen
d2b73122c5
refactor(prettier): add a static string ss construction macro ( #1320 )
2023-11-14 15:20:50 +00:00
Dunqing
96753c2efd
feat(prettier): add HardLine if the next line of the VariableDeclartion is a empty line ( #1318 )
2023-11-14 23:04:27 +08:00
Dunqing
ca7e0ab208
fix(prettier): calculate overflow for ObjectPattern ( #1317 )
2023-11-14 22:58:09 +08:00
Boshen
5773af9536
feat(prettier): complete PrettireOptions ( #1319 )
2023-11-14 14:57:19 +00:00
Boshen
3edad44d1d
chore(README): add codspeed badges
2023-11-14 21:26:43 +08:00
Dunqing
dee24c7092
feat(prettier): implement format function for PropertyKey ( #1311 )
2023-11-14 21:22:30 +08:00
Dunqing
fae2813683
feat(prettier): implement format function for BindingProperty ( #1310 )
2023-11-14 21:16:31 +08:00
Dunqing
211275fd7f
feat(prettier): implement format function for ObjectPattern ( #1309 )
...
feat(prettier): implement format function for ObjectPattern
feat: replace space with Line
2023-11-14 21:09:26 +08:00
Dunqing
f597a43d8a
feat(prettier): implement format function for StringLiteral ( #1308 )
2023-11-14 21:03:26 +08:00
Dunqing
e26e8dd6f8
feat(prettier): implement format function for CallExpression ( #1307 )
2023-11-14 20:55:26 +08:00
Dunqing
e0af69a884
feat(prettier): implement format function for BindingPattern ( #1306 )
...
feat(prettier): implement format function for BindingPattern
feat: full match
2023-11-14 20:48:34 +08:00
Dunqing
071efded7c
feat(prettier): implement format function for VariableDeclarator ( #1305 )
2023-11-14 20:40:29 +08:00
Cameron
6a062a882f
fix(prettier) Fix subtract with overflow ( #1314 )
2023-11-14 20:35:33 +08:00
Boshen
5f316626f6
feat(prettier): add the basics of comment printing ( #1313 )
2023-11-14 12:32:03 +00:00
Dunqing
4967ca2cdb
feat(prettier): implement format function for VariableDeclaration ( #1304 )
2023-11-14 20:30:27 +08:00
magic-akari
ac6f5884a5
feat(prettier): implement format for MemberExpression ( #1312 )
2023-11-14 20:23:50 +08:00
Dunqing
446ba169de
feat(ast): add to_string function to VariableDelcartionKind ( #1303 )
...
feat(ast): add to_string function to VariableDelcartionKind
fix: lint error
2023-11-14 20:22:56 +08:00
Boshen
3dee2c7178
feat(benchmark): add prettier ( #1302 )
2023-11-14 17:47:17 +08:00
Cameron
891d353ade
feat(prettier) Improve function printing ( #1301 )
2023-11-14 17:14:34 +08:00
Boshen
4977ea1554
feat(cli): add basic prettier cli infrastructure ( #1300 )
2023-11-14 08:22:22 +00:00
cin
6ac5403daf
feat(linter): eslint-plugin-jest/max_expects ( #1239 )
2023-11-14 16:14:09 +08:00
magic-akari
445352991f
fix(parser): Fix type import ( #1291 )
...
- fix : #1288
- fix : #1289
2023-11-14 15:17:58 +08:00
magic-akari
3fd97505d1
feat(prettier): implement format for ClassElement ( #1299 )
2023-11-14 15:16:05 +08:00
magic-akari
b95ec556fc
feat(prettier): implement format for StaticBlock ( #1298 )
2023-11-14 15:15:47 +08:00
magic-akari
73e0bd7edf
feat(prettier): implement format for CatchClause ( #1297 )
2023-11-14 15:15:18 +08:00
Wenzhe Wang
dfc2c6a545
refactor(linter): replace the old parse_expect_jest_fn.rs file ( #1267 )
2023-11-14 15:14:36 +08:00
Boshen
e1266c69f9
chore(prettier_conformance): temporary disable code coverage
2023-11-14 15:13:25 +08:00
Boshen
90c7fee1bc
refactor(prettier): make the printer code more rusty ( #1296 )
2023-11-14 13:54:32 +08:00
Dunqing
6c1435a3c1
feat(prettier): implement format for ContinueStatement ( #1293 )
...
Deleted by mistake at #1285
Co-authored-by: Boshen <boshenc@gmail.com>
2023-11-14 05:49:04 +00:00
Boshen
a8ecdaecb9
refactor(prettier): move printer.rs to its own folder ( #1294 )
2023-11-14 13:42:41 +08:00
Shannon Rothe
d5e46ef929
fix(tasks/prettier_conformance): fix incorrect casing in README ( #1295 )
2023-11-14 13:41:48 +08:00
Boshen
4eec2492b1
Add prettier and biome to THIRD-PARTY-LICENSE
2023-11-14 13:03:14 +08:00
Cameron
92cd6df08a
feat(printer) A Working Printer ( #1287 )
...
Co-authored-by: Boshen <boshenc@gmail.com>
2023-11-14 05:00:57 +00:00
Dunqing
f13e9aa69d
feat(task/prettier-conformance): incorrect compatibility percentage ( #1292 )
2023-11-14 12:22:27 +08:00