Devin-Yeung
ba8dbf5446
fix(linter): fix false positives in loss-of-precision lint ( #664 )
...
Almost rewrite the no-loss-of-precision lint, fix known false positives,
close #656
---------
Co-authored-by: Boshen <boshenc@gmail.com>
2023-07-31 14:48:00 +08:00
Boshen
c956f7e897
refactor(cli): remove experimental code "module_tree_handler" ( #670 )
...
This code will eventually be superseded by
https://github.com/web-infra-dev/oxc/pull/530 , removing this for now so
others don't have to touch this.
2023-07-31 12:40:14 +08:00
EliLichtblau
5e54bd0537
Adding types to the symbol table - consistent export type sample rule implemented ( #667 )
...
Fixes 11 TS conformance tests and 18 babel tests.
Adds types to the symbol table functionally conformant to TS behavior
but symbol flags implemented slightly differently.
Symbol redeclaration check is also not entirely conformant but fixing
this seems like a separate PR.
For testing purposes - consistent-export-type was also implemented
(WIP).
2023-07-31 12:33:47 +08:00
Don Isaac
d3accc1ee3
fix(semantic): nested references ( #661 )
...
Addresses #660
2023-07-31 12:29:15 +08:00
u9g
8b7b1381b5
chore(query): abstract away testing boilerplate ( #669 )
2023-07-31 10:05:24 +08:00
Don Isaac
47541339a9
feat(ast): AstKind::debug_name() ( #665 )
...
Adds `AstKind::debug_name()`, which returns the name of an AstKind
struct with a few minor details as applicable. I intentionally did not
make `AstKind` implement `Display`, as this method returns minimal
information. Additionally, this method only exists in debug builds. I've
hidden it behind a `#[cfg(debug_assertions)]`, so it won't affect
release builds.
This code was extracted from #642 , where it as created while debugging
iteration over ancestor nodes. I figured it belonged in its own PR and
may be useful to other devs.
2023-07-31 10:04:52 +08:00
u9g
08e78bce16
feat(query): add ast counterpart to JSXOpeningElement ( #668 )
2023-07-30 19:51:25 -04:00
u9g
228cab9269
feat(query): add ast counterpart to ObjectLiteral ( #666 )
2023-07-30 18:15:57 -04:00
u9g
29ddca52b7
chore(query): condense XAST and X resolvers into one ( #663 )
...
No need to needlessly duplicate code.
**Future work:**
1. remove any breakout function that calls getspan...
2. maybe: make every type that can implement span (why don't we already)
2023-07-30 11:34:34 -04:00
Wenzhe Wang
3cf08a256c
feat(linter): no-focused-test(eslint-jest-plugin) ( #609 )
2023-07-30 20:57:30 +08:00
Boshen
3b9cc474e9
feat(resolver): port the rest of the exports field tests ( #659 )
2023-07-30 01:03:10 +08:00
阿良仔
e090b560be
feat(minifier): initialize conditions folding ( #658 )
...
related: #401
2023-07-30 01:02:32 +08:00
Boshen
ee211baabc
Release oxlint v0.0.7
2023-07-29 13:40:35 +08:00
Boshen
4b34c447f4
chore(linter): only check no-this-alias in TypeScript
2023-07-29 12:42:35 +08:00
Boshen
92348f1830
chore(linter): change no-loss-of-precision to nursery
2023-07-29 12:40:57 +08:00
Don Isaac
6628fc8d9c
perf(linter): reduce mallocs ( #654 )
...
Reduces mallocs via `clones()` (particularly of `Atom`s), and vec
allocations.
Affects the following rules:
- [x] eslint/no-dupe-keys
- [x] eslint/no-global-assign
- [x] eslint/no-loss-of-precision _(only partially optimized, needs more
work later)_
~- [ ] typescript-eslint/ajacent-overload-signatures~ (_will be
addressed in following pr_)
2023-07-29 12:02:53 +08:00
Boshen
976aa28f67
chore(linter): move no-var-requires to restriction
...
The code is not wrong, nor useless, it is just a restriction in typescript
2023-07-29 11:49:07 +08:00
Boshen
c42a61f34f
feat(cli): separate warnings and errors numbers and print separately
2023-07-29 11:02:51 +08:00
Boshen
f23a0347fd
chore(linter): move adjacent-overload-signatures to style
...
Per the typescript-eslint v6 change
2023-07-29 11:02:51 +08:00
Boshen
f5c9908550
fix(linter): improve the span for no-inner-declarations
2023-07-29 11:02:51 +08:00
Boshen
e4020d6fb2
fix(linter): change no-control-regex to severity warning
2023-07-29 11:02:51 +08:00
Boshen
fe54b1fbc9
chore(linter): move no-return-await to pedantic
...
Since this is not a eslint recommended rule
2023-07-29 11:02:51 +08:00
Boshen
1bc564eafc
feat(linter): add style category and change no-empty-interface to style
...
It's officially change in typescript-eslint
2023-07-29 11:02:51 +08:00
Boshen
ad51157ea9
fix(linter): make disable directives work with plugin rule names
2023-07-29 11:02:51 +08:00
Boshen
edb3f8b634
fix(cli): improve the TIMING=1 table alignment
2023-07-29 11:02:51 +08:00
Devin-Yeung
72afdf6d19
feat(linter): eslint/no-loss-of-precision ( #649 )
...
Close #613
2023-07-28 20:59:20 +08:00
Boshen
fc0a4110d4
chore: update .git-blame-ignore-revs
2023-07-28 13:57:29 +08:00
Boshen
217997bd7c
chore(rust): run cargo fmt --all -- crates/**/*.rs
2023-07-28 13:57:12 +08:00
SoonIter
786cf8252f
feat(linter): implement no-global-assign ( #624 )
...
closes #598
2023-07-28 10:20:38 +08:00
Boshen
6631336f5c
feat(resolver): implement more of exports field ( #648 )
2023-07-28 10:19:29 +08:00
Boshen
5e0edf14fe
ci: remove accident push trigger from website.yml
2023-07-27 18:25:17 +08:00
Boshen
252d3342a1
feat(linter): add a run_once callback ( #647 )
...
For situations where you want to inspect the scopes and trivias.
2023-07-27 18:15:15 +08:00
Boshen
b338f5f53d
ci: ignore more crates from when running benchmark
2023-07-27 18:11:37 +08:00
Boshen
a760068eef
chore(Cargo.toml): update homepage link
2023-07-27 14:16:58 +08:00
Boshen
14164b22ed
chore(oxc): remove mention of nightly
2023-07-27 14:14:56 +08:00
Boshen
b52ec3f344
ci: remove cargo-udeps
2023-07-27 14:09:42 +08:00
Boshen
df90bf21ec
chore: update MAINTAINANCE.md
2023-07-27 14:09:39 +08:00
Boshen
1012d8300c
chore: release crates as v0.1.0
2023-07-27 13:54:17 +08:00
Boshen
d587065436
chore(rust): update crate info, add minimal rust-version, add categories
2023-07-27 13:33:18 +08:00
Boshen
45c1650631
chore(oxc_query): do not publish yet, it is not ready
2023-07-27 13:17:33 +08:00
Boshen
26fc0cfde5
ci: on run conformance on certain crate changes
2023-07-27 13:12:12 +08:00
Boshen
1eacd51cb0
ci: make the website a nightly trigger
2023-07-27 13:12:11 +08:00
Boshen
53370e3487
ci: add a job name to auto-labeler
2023-07-27 13:12:11 +08:00
Boshen
fa82f940f0
chore: stable Rust
...
closes #626
2023-07-27 13:11:46 +08:00
Boshen
449120e29e
chore: update .git-blame-ignore-revs to ignore previous format commits
2023-07-27 13:11:46 +08:00
Boshen
b34ef4f07a
chore: reformat
2023-07-27 13:11:46 +08:00
Boshen
9cb34e0021
chore(rustfmt): disable all unstable format options
2023-07-27 13:11:46 +08:00
Boshen
608ee9116b
refactor(parser): remove portable simd because it is not stable Rust ( #645 )
...
related #626
2023-07-27 12:43:11 +08:00
Boshen
f2df32d1c0
fix(taplo): adjust the include glob so it doesn't time out searching for files
2023-07-27 12:30:34 +08:00
u9g
34f25b7067
feat(query): adapter invariant test ( #644 )
...
Checks for invariants in the adapter that would certainly error out real
usage, doesn't actually use the data provided to the adapter
2023-07-26 23:59:02 -04:00