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
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
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
Cameron
008eb0d178
feat(prettier) Support should_break option for group doc ( #1438 )
2023-11-20 09:32:05 +08:00
Ken-HH24
822ce76402
feat(linter): html-has-lang for eslint-plugin-jsx-a11y ( #1436 )
...
It's my first time trying to implement the rule of linter.
**html-has-lang** for #1141
2023-11-20 00:10:42 +08:00
Boshen
18f19ee164
refactor(prettier): improve comment handling API ( #1435 )
2023-11-19 23:08:23 +08:00
Boshen
0218ae8641
feat(prettier): print leading comments with newlines ( #1434 )
2023-11-19 22:46:55 +08:00
zhangpeng
2ba69f1f01
feat(linter): anchor-has-content for eslint-plugin-jsx-a11y
2023-11-19 22:38:07 +08:00
Boshen
6ee072aafd
refactor(prettier): comment flags should be bigflags ( #1433 )
2023-11-19 21:24:22 +08:00
Boshen
cf388ae79e
feat(prettier): format empty try catch ( #1430 )
2023-11-19 18:01:49 +08:00
Boshen
18fa8e45a4
feat(prettier): format for((let) of .. ( #1429 )
2023-11-19 17:48:09 +08:00
Boshen
cc8b8719f7
feat(prettier): format for loop and update expression ( #1427 )
2023-11-19 14:04:47 +08:00
Wenzhe Wang
c1450d8e90
feat(prettier): basic print of TemplateLiteral ( #1426 )
2023-11-19 13:51:47 +08:00
Boshen
902d4d0bab
feat(prettier): format with and if statements ( #1425 )
2023-11-19 11:47:31 +08:00
Cameron
08ce4474e1
feat(prettier) Add IndentIfBreak support ( #1420 )
2023-11-19 03:11:52 +00:00
Jon Surrell
cb804d3cd2
Add base to AST BigintLiteral ( #1416 )
2023-11-19 11:11:19 +08:00
Dunqing
b945307ab3
feat(prettier): support format function for ImportDefaultSpecifier ( #1424 )
2023-11-19 11:10:08 +08:00
Wenzhe Wang
d6b913e46a
feat(prettier): add trailing comma ( #1422 )
2023-11-19 11:08:25 +08:00
Cameron
91ee3e8bfc
fix(prettier) Print intend in doc debug view ( #1419 )
2023-11-19 11:07:32 +08:00
Hao Cheng
5543e8c435
feat(linter): eslint-plugin-unicorn/no-nested-ternary ( #1417 )
...
This PR implements the
[eslint-plugin-unicorn/no-nested-ternary](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-nested-ternary.md )
rule.
Tests taken from
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/test/no-nested-ternary.mjs .
Related issue: #684
2023-11-19 11:06:48 +08:00
Angelo Annunziata
b72f83b000
feat(linter): for-direction rule add check for condition in reverse o… ( #1418 )
...
Align eslint **for-direction** rule with the new default behaviour
https://github.com/eslint/eslint/pull/17755
2023-11-18 23:53:39 +00:00
Boshen
1dacb645d0
feat(prettier): start adding parent stack ( #1415 )
2023-11-18 16:39:24 +00:00
Boshen
abaa8c37a5
refactor(prettier): clean up some code ( #1414 )
2023-11-18 14:46:11 +00:00
Boshen
d0a70d0626
feat(prettier): print class method and read tab width ( #1413 )
2023-11-18 22:42:53 +08:00
Dunqing
b0248acb7b
refactor(prettier): refactor binaryish expression formatting ( #1412 )
2023-11-18 22:03:26 +08:00
Dunqing
f6ecd96e69
feat(prettier): print getter/setter function in PropertyKey ( #1411 )
2023-11-18 21:59:22 +08:00
RiESAEX
98279fc6ff
feat(linter): eslint-plugin-unicorn: no-hex-escape ( #1410 )
...
[Rule
Detail](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-hex-escape.md )
#684
2023-11-18 21:57:06 +08:00
Boshen
bc3069ec76
feat(prettier): print empty object properties ( #1409 )
2023-11-18 16:52:54 +08:00
Wenzhe Wang
70b80ba542
feat(prettier): print TSTupleType ( #1408 )
2023-11-18 16:44:27 +08:00
Wenzhe Wang
97fee26e25
feat(prettier): print empty array ( #1407 )
2023-11-18 16:40:39 +08:00