Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–11 unchanged (11 lines)
12const FixTracker = require("./utils/fix-tracker");
13const astUtils = require("./utils/ast-utils");
14
15//------------------------------------------------------------------------------
16// Rule Definition
17//------------------------------------------------------------------------------
18
19/** @type {import('../shared/types').Rule} */
20module.exports = {
21 meta: {
22 deprecated: {
23 message: "Formatting rules are being moved out of ESLint core.",
24 url: "https://eslint.org/blog/2023/10/deprecating-formatting-rules/",
25 deprecatedSince: "8.53.0",
…lines 26–477 unchanged (452 lines)

After

…lines 1–11 unchanged (11 lines)
12const FixTracker = require("./utils/fix-tracker");
13const astUtils = require("./utils/ast-utils");
14
15//------------------------------------------------------------------------------
16// Rule Definition
17//------------------------------------------------------------------------------
18
19/** @type {import('../types').Rule.RuleModule} */
20module.exports = {
21 meta: {
22 deprecated: {
23 message: "Formatting rules are being moved out of ESLint core.",
24 url: "https://eslint.org/blog/2023/10/deprecating-formatting-rules/",
25 deprecatedSince: "8.53.0",
…lines 26–477 unchanged (452 lines)

Before

program
comment "/**\n * @fileoverview Rule to flag missing semicolons.\n * @au"...
expression_statement
string
" "\""
string_fragment "use strict"
" "\""
; ";"
comment "//----------------------------------------------------------"...
comment "// Requirements"
comment "//----------------------------------------------------------"...
lexical_declaration
const "const"
variable_declarator
identifier "FixTracker"
= "="
call_expression
identifier "require"
arguments
( "("
string
" "\""
string_fragment "./utils/fix-tracker"
" "\""
) ")"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "astUtils"
= "="
call_expression
identifier "require"
arguments
( "("
string
" "\""
string_fragment "./utils/ast-utils"
" "\""
) ")"
; ";"
comment "//----------------------------------------------------------"...
comment "// Rule Definition"
comment "//----------------------------------------------------------"...
comment "/** @type {import('../shared/types').Rule} */"
expression_statement (+2315 nodes collapsed)

After

program
comment "/**\n * @fileoverview Rule to flag missing semicolons.\n * @au"...
expression_statement
string
" "\""
string_fragment "use strict"
" "\""
; ";"
comment "//----------------------------------------------------------"...
comment "// Requirements"
comment "//----------------------------------------------------------"...
lexical_declaration
const "const"
variable_declarator
identifier "FixTracker"
= "="
call_expression
identifier "require"
arguments
( "("
string
" "\""
string_fragment "./utils/fix-tracker"
" "\""
) ")"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "astUtils"
= "="
call_expression
identifier "require"
arguments
( "("
string
" "\""
string_fragment "./utils/ast-utils"
" "\""
) ")"
; ";"
comment "//----------------------------------------------------------"...
comment "// Rule Definition"
comment "//----------------------------------------------------------"...
comment "/** @type {import('../types').Rule.RuleModule} */"
expression_statement (+2315 nodes collapsed)