Cameron
7edc7f0690
feat(linter) eslint-plugin-react(jsx-no-comment-text-nodes) ( #1027 )
2023-10-23 09:42:09 +08:00
Cameron
d129425b67
feat(linter) eslint-plugin-react: no dangerously set inner html ( #1029 )
2023-10-23 09:39:12 +08:00
Cameron
76ac9cd4c5
fix(lexer) Fix spans for jsx children ( #1030 )
...
Closes #1026
2023-10-22 22:44:19 +08:00
Angelo Annunziata
46207c0e4b
chore: update just file ( #1028 )
...
**What I Did**
- move command short-description just above the command to show it
correctly in `just -l`
- just one git command to update local repo for both oxc and submodules
2023-10-22 12:06:49 +08:00
Boshen
01671729b7
chore(span,index): update documentation
2023-10-22 11:23:36 +08:00
Cameron
dea9b7cbac
feat(linter): eslint-plugin-react: jsx-no-duplicate-props ( #1024 )
...
Co-authored-by: Boshen <boshenc@gmail.com>
2023-10-21 15:25:32 +00:00
Sg
25247e3839
feat(linter): eslint/no-fallthrough (nursery)
2023-10-21 23:22:56 +08:00
Cameron
f13fc2287a
feat(linter): eslint-plugin-react/no-useless-fragment ( #1021 )
2023-10-21 23:16:46 +08:00
Cameron
72cf9ec725
chore(rulegen) Add rule gen for react rules ( #1023 )
2023-10-21 22:39:19 +08:00
Boshen
1edf67eb68
Add more credits to README
2023-10-21 22:30:11 +08:00
Cameron
854dfe0dea
feat(linter) eslint-plugin-react/no-children-prop ( #1015 )
2023-10-21 21:08:37 +08:00
Cameron
c4a2084f27
fix(linter) Fix panic when linting declaration files ( #1014 )
...
When linting declaration files, it panics here
6628fc8d9c/crates/oxc_linter/src/rules/eslint/no_global_assign.rs (L57)
with this error:
```
index out of bounds: the len is 0 but the index is 0
```
Because it expects the array to have the root scope id inside (non zero
len)
0fcad27515/crates/oxc_semantic/src/scope.rs (L52-L54)
2023-10-21 09:25:32 +08:00
Boshen
d31a667e23
feat(transformer): drop this parameter from typescript functions ( #1019 )
2023-10-20 23:15:06 +08:00
Cameron
ee134f022c
fix(linter): incorrect reporting for jsx_key ( #1020 )
...
tested on a different repo and noticed an issue (despite passing all of
the eslint test cases)
If we are in the following scenario:
```tsx
const columns: ColumnDef<User>[] = [
{
accessorKey: 'firstName',
header: ({ column }) => <DataTableColumnHeader column={column} title="First Name" />,
cell: ({ row }) => <div>{row.getValue('firstName')}</div>,
enableSorting: true,
enableHiding: false,
},
]
```
Previously an error would be reported however it did not make sense to
as the object has to be mapped again before it is displayed in react
(hence lets check there instead)
2023-10-20 21:50:58 +08:00
Boshen
5e083b156c
refactor(transform_conformance): remove the Failed: prefix from snapshot
2023-10-20 16:49:04 +08:00
Boshen
4c4ccc6577
feat(transform_conformance): remove legacy decorator tests
2023-10-20 16:47:58 +08:00
Boshen
dfee8539f0
feat(transformer): add utils to make logical_assignment_operators pass ( #1017 )
2023-10-20 16:27:23 +08:00
Cameron
3f06335172
feat(linter) eslint-plugin-react/jsx-key ( #1016 )
...
https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-key.md
2023-10-20 15:52:24 +08:00
Boshen
06efb77d57
chore(minifier): add --whitespace option to example
2023-10-20 11:33:53 +08:00
Boshen
c95f2e0937
fix(linter): fix panic with strip_prefix ( #1013 )
...
fixes #1011
2023-10-20 10:05:32 +08:00
Boshen
46a5c42c75
refactor(transformer): add TransformerCtx struct for easier access to symbols and scopes
2023-10-19 16:19:27 +08:00
Boshen
94792e9153
refactor(ast): split syntax_directed_operations into separate files
2023-10-19 14:58:31 +08:00
Jason Miller
1aa95fa6d6
Fix oxlint --quiet suppressing errors ( #1008 )
...
As explained by the comment in source, --quiet should only suppress
warning output.
Please double-check that I haven't done something totally wrong here, I
don't know Rust.
2023-10-18 11:00:27 +08:00
Boshen
4b719026bf
feat(transform_conformance): handle non-existent output.js ( #1007 )
2023-10-17 20:44:35 +08:00
Boshen
052661d75e
refactor(transform_conformance): improve report format
2023-10-17 17:41:34 +08:00
Boshen
3605f7c0fc
fix(transform_conformance): fix for codecov
2023-10-17 15:34:50 +08:00
Boshen
1b3b100475
feat(transformer_conformance): read plugins options from babel options.json ( #1006 )
...
This PR correctly handles babel `options.json` such as
https://github.com/babel/babel/blob/main/packages/babel-plugin-transform-nullish-coalescing-operator/test/fixtures/assumption-noDocumentAll/options.json
2023-10-17 14:52:51 +08:00
Boshen
077585addc
chore(codecov): ignore oxc_formatter because it is not being actively worked on
2023-10-17 09:18:13 +08:00
Cameron
88cf98a258
feat(linter): eslint-plugin-unicorn(throw-new-error) ( #1005 )
...
part of https://github.com/web-infra-dev/oxc/issues/684
[throw-new-error](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/throw-new-error.md )
2023-10-17 09:15:10 +08:00
Boshen
678db1d955
feat(transformer): ES2020 Nullish Coalescing Operator ( #1004 )
...
The test runner needs an update for reading options.jon, which I'll work
on in the up coming PR.
2023-10-16 21:45:58 +08:00
Wenzhe Wang
0e9104477f
feat: adjust the order of print semicolon ( #1003 )
...
Add a number of semicolons to our minifier test cases.
2023-10-16 21:33:15 +08:00
Boshen
240260ea05
chore(linter): update snapshots
2023-10-16 21:11:39 +08:00
Boshen
1f1eb6c497
chore: fix spelling
2023-10-16 15:33:47 +08:00
dependabot[bot]
3688f6a06f
chore(deps): bump the dependencies group with 5 updates ( #1002 )
2023-10-16 15:23:20 +08:00
Boshen
4886d408eb
chore(clippy): enable undocumented_unsafe_blocks
2023-10-16 15:18:14 +08:00
Boshen
db5417f9a9
refactor(clippy): allow clippy::too_many_lines
2023-10-16 15:18:11 +08:00
Boshen
eaeb63072f
refactor(clippy): allow struct_excessive_bools
2023-10-16 15:18:07 +08:00
Boshen
1e1050f92f
refactor(transformer): clean up the transformer constructor code
2023-10-16 14:36:14 +08:00
Boshen
6f289b9e57
chore(codecov): ignore oxc_linter_plugin
2023-10-16 14:09:09 +08:00
Boshen
c060621512
feat(transformer): add unit tests and test coverage ( #1001 )
2023-10-16 14:07:29 +08:00
Boshen
cc6c52e536
fix(benchmark): bench the whole transformation pipeline ( #998 )
2023-10-16 13:17:15 +08:00
Boshen
110059ffb7
refactor(rust): change RefCell.clone().into_inner() to RefCell.get()
2023-10-16 11:26:38 +08:00
Cameron
952139c5ec
feat(linter): eslint-plugin-unicorn(prefer-array-flat-map) ( #997 )
...
part of #684
[prefer-array-flat-map](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat-map.md )
2023-10-16 11:26:00 +08:00
Boshen
0f72066f2e
feat(transformer): finish 2016 exponentiation operator ( #996 )
2023-10-16 09:30:04 +08:00
Wenzhe Wang
6c18b3e8ec
feat(codegen): beauty class print ( #995 )
2023-10-15 16:37:01 +08:00
Boshen
47872200e5
refactor(ast): clean up some methods
2023-10-15 10:49:35 +08:00
Boshen
1661385c1a
feat(semantic): check non-simple lhs expression of assignment expression ( #994 )
2023-10-14 23:40:10 +08:00
Cameron
dc08a21207
feat(linter) eslint-plugin-unicorn error message ( #992 )
...
Co-authored-by: Boshen <boshenc@gmail.com>
2023-10-14 22:01:29 +08:00
Cameron
41c55bc5a9
feat(linter): eslint-plugin-unicorn no console spaces ( #991 )
2023-10-14 21:40:30 +08:00
Boshen
2e2b7587ac
feat(playground): add transform and minify ( #993 )
2023-10-14 19:49:58 +08:00