Skip to content

Commit

Permalink
feat(linter): Enhance no_zero_fractions rule handling
Browse files Browse the repository at this point in the history
- Add TODO for more complex token checks and
  • Loading branch information
cblh committed Aug 16, 2024
1 parent bfa2fb5 commit 4d4acd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/unicorn/no_zero_fractions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl Rule for NoZeroFractions {
// TODO: checks the type and value of tokenBefore:
// If tokenBefore is a Punctuator (e.g., a symbol like ;, ], or )), it determines whether a semicolon is necessary based on the context (e.g., the type of the last block node).
// If the token type is in tokenTypesNeedsSemicolon, it returns true (semicolon needed).
// Special cases like Template strings, ObjectExpression blocks, and certain Identifier cases are handled explicitly.
// Special cases like Template strings, ObjectExpression blocks, and certain Identifier cases are handled explicitly.
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/77f32e5a6b2df542cf50dfbd371054f2cd8ce2d6/rules/no-zero-fractions.js#L56
}

Expand Down

0 comments on commit 4d4acd2

Please sign in to comment.