Skip to content

Commit 09bd314

Browse files
committed
capitalize comments
1 parent c3b06b0 commit 09bd314

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/oxlint/src-js/plugins/source_code.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ export const SOURCE_CODE = Object.freeze({
160160
*/
161161
getAllComments(): Comment[] {
162162
if (ast === null) initAst();
163-
// TODO: deserializing strings is expensive, make this access lazy
164-
// @ts-expect-error types are generated from Program attributes
165-
// which are also twined with estree generation so cant touch it
163+
// TODO: Deserializing strings is expensive, make this access lazy
164+
// @ts-expect-error types are generated from `Program` attributes
165+
// which are also twinned with ESTree generation so can't touch it
166166
return ast.comments;
167167
},
168168

tasks/ast_tools/src/generators/raw_transfer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ fn generate_deserializers(
223223
fn variants(&mut self) -> Vec<[bool; 6]> {
224224
let mut variants = Vec::with_capacity(9);
225225

226-
// parser deserializers
226+
// Parser deserializers
227227
for is_ts in [false, true] {
228228
for range in [false, true] {
229229
for parent in [false, true] {
@@ -242,8 +242,8 @@ fn generate_deserializers(
242242
}
243243
}
244244

245+
// Linter deserializer
245246
self.variant_paths.push(format!("{OXLINT_APP_PATH}/src-js/generated/deserialize.js"));
246-
// linter deserializer
247247
variants.push([
248248
/* is_ts */ true, /* range */ true, /* loc */ true,
249249
/* parent */ true, /* preserve_parens */ false, /* comments */ true,

0 commit comments

Comments
 (0)