Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
04628e7
object-shorthand test cases
KubaJastrz May 8, 2024
95b8370
parse config
KubaJastrz May 10, 2024
f8ea3a8
remove regex for now
KubaJastrz May 10, 2024
6f2ce31
lint
KubaJastrz May 10, 2024
61d6e54
use new diagnostics
KubaJastrz May 16, 2024
c86cf35
add new test cases from eslint
KubaJastrz May 16, 2024
7e6d695
report longform methods and properties
KubaJastrz May 28, 2024
48b4474
refactor(diagnostics): s/warning/warn
KubaJastrz May 28, 2024
dabf3d1
simplify code
KubaJastrz May 29, 2024
6cf545b
fixer for longform properties
KubaJastrz May 29, 2024
5e9b23e
fixer for shorthand properties
KubaJastrz May 29, 2024
0fc1537
fix: cleanup objectshorthand rule def
yue4u Jan 4, 2026
5d33e4d
feat: impl shorthand fixer
yue4u Jan 4, 2026
2aead47
feat: impl ignore_constructors
yue4u Jan 4, 2026
708f530
feat: impl methods_ignore_pattern
yue4u Jan 4, 2026
3b80838
feat: impl avoid_quotes
yue4u Jan 4, 2026
7e4e9fe
fix: restore type_param for longform_methods and skip scope test
yue4u Jan 6, 2026
da44eb3
fix: restore tests
yue4u Jan 8, 2026
943e89e
refactor: split make_function_shorthand
yue4u Jan 19, 2026
20bf64d
refactor: split make_function_long_form
yue4u Jan 19, 2026
1d35c75
refactor: merge make_function_shorthand
yue4u Jan 19, 2026
4f853eb
fix: avoid conflict via with_snapshot_suffix
yue4u Jan 19, 2026
93c0550
fix: function long form replace range should include async and * tokens
yue4u Jan 19, 2026
ac40e08
fix: create stack if lexical_scope_stack is empty
yue4u Jan 24, 2026
b10030d
fix: skip if contains jsdoc
yue4u Jan 24, 2026
80d6f57
fix: port jsdoc tests
yue4u Jan 24, 2026
2ce1766
fix: rerun cargo run -p oxc_linter_codegen
yue4u Jan 24, 2026
dec87fb
fix: cleanup debug leftover
yue4u Jan 24, 2026
c90e22a
fix: lint
yue4u Jan 24, 2026
baae761
fix: cleanup clone count
yue4u Jan 24, 2026
7e24f53
fix: impl default for ObjectShorthandConfig
yue4u Jan 24, 2026
89c28ef
reorder imports
camc314 Mar 30, 2026
51cf1a6
remove unneede scope/rule from diagnostic msgs
camc314 Mar 30, 2026
f2586e8
remove superfluous doc comment
camc314 Mar 30, 2026
e3b7f74
update snap
camc314 Mar 30, 2026
8c2dd62
refactor: avoid full ast traversal
camc314 Mar 30, 2026
7579ff8
remove unneeded snaps
camc314 Mar 30, 2026
00fcc45
re-gen tests
camc314 Mar 30, 2026
9f6c182
update snap, disable failing test
camc314 Mar 30, 2026
256831a
remove unused import
camc314 Mar 30, 2026
0c8d814
rename var
camc314 Mar 30, 2026
37990ca
add FIXME comment
camc314 Mar 30, 2026
32ae5a1
jsx parser with generics
camc314 Mar 30, 2026
49eb9f9
refactor object-shorthand config handling
camc314 Mar 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions crates/oxc_linter/src/generated/rule_runner_impls.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 25 additions & 1 deletion crates/oxc_linter/src/generated/rules_enum.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ pub(crate) mod eslint {
pub mod no_void;
pub mod no_warning_comments;
pub mod no_with;
pub mod object_shorthand;
pub mod operator_assignment;
pub mod prefer_const;
pub mod prefer_destructuring;
Expand Down
12 changes: 1 addition & 11 deletions crates/oxc_linter/src/rules/eslint/new_cap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use crate::{
AstNode,
context::LintContext,
rule::{DefaultRuleConfig, Rule},
utils::deserialize_regex_option,
};

fn new_cap_diagnostic(span: Span, cap: &GetCapResult) -> OxcDiagnostic {
Expand Down Expand Up @@ -84,17 +85,6 @@ impl std::ops::Deref for NewCap {
}
}

fn deserialize_regex_option<'de, D>(deserializer: D) -> Result<Option<Regex>, D::Error>
where
D: serde::Deserializer<'de>,
{
use serde::de::Error;

Option::<String>::deserialize(deserializer)?
.map(|pattern| Regex::new(&pattern).map_err(D::Error::custom))
.transpose()
}

const CAPS_ALLOWED: [&str; 11] = [
"Array", "Boolean", "Date", "Error", "Function", "Number", "Object", "RegExp", "String",
"Symbol", "BigInt",
Expand Down
Loading
Loading