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–14 unchanged (14 lines)
15// Rule Definition
16//------------------------------------------------------------------------------
17
18/** @type {import('../shared/types').Rule} */
19module.exports = {
20 meta: {
21 type: "suggestion",
22
23 defaultOptions: [{
24 enforceForClassFields: true,
25 exceptMethods: []
26 }],
27
…lines 28–192 unchanged (165 lines)

After

…lines 1–14 unchanged (14 lines)
15// Rule Definition
16//------------------------------------------------------------------------------
17
18/** @type {import('../shared/types').Rule} */
19module.exports = {
20 meta: {
21 dialects: ["javascript", "typescript"],
22 language: "javascript",
23 type: "suggestion",
24
25 defaultOptions: [{
26 enforceForClassFields: true,
27 exceptMethods: []
28 }],
…lines 29–194 unchanged (166 lines)

Before

program
comment "/**\n * @fileoverview Rule to enforce that all class methods "...
expression_statement
string
" "\""
string_fragment "use strict"
" "\""
; ";"
comment "//----------------------------------------------------------"...
comment "// Requirements"
comment "//----------------------------------------------------------"...
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
assignment_expression
member_expression
identifier "module"
. "."
property_identifier "exports"
= "="
object
{ "{"
pair
property_identifier "meta"
: ":"
object
{ "{"
pair
property_identifier "type"
: ":"
string
" "\""
string_fragment "suggestion"
" "\""
, ","
pair
property_identifier "defaultOptions"
: ":"
array
[ "["
object
{ "{"
pair
property_identifier "enforceForClassFields"
: ":"
true "true"
, ","
pair
property_identifier "exceptMethods"
: ":"
array
[ "["
] "]"
} "}"
] "]"
, ","
pair (+26 nodes collapsed)
, ","
pair (+69 nodes collapsed)
, ","
pair
property_identifier "messages"
: ":"
object
{ "{"
pair
property_identifier "missingThis"
: ":"
string
" "\""
string_fragment "Expected 'this' to be used by class {{name}}."
" "\""
} "}"
} "}"
, ","
method_definition (+573 nodes collapsed)
} "}"
; ";"

After

program
comment "/**\n * @fileoverview Rule to enforce that all class methods "...
expression_statement
string
" "\""
string_fragment "use strict"
" "\""
; ";"
comment "//----------------------------------------------------------"...
comment "// Requirements"
comment "//----------------------------------------------------------"...
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
assignment_expression
member_expression
identifier "module"
. "."
property_identifier "exports"
= "="
object
{ "{"
pair
property_identifier "meta"
: ":"
object
{ "{"
pair
property_identifier "dialects"
: ":"
array
[ "["
string
" "\""
string_fragment "javascript"
" "\""
, ","
string
" "\""
string_fragment "typescript"
" "\""
] "]"
, ","
pair
property_identifier "language"
: ":"
string
" "\""
string_fragment "javascript"
" "\""
, ","
pair
property_identifier "type"
: ":"
string
" "\""
string_fragment "suggestion"
" "\""
, ","
pair
property_identifier "defaultOptions"
: ":"
array
[ "["
object
{ "{"
pair
property_identifier "enforceForClassFields"
: ":"
true "true"
, ","
pair
property_identifier "exceptMethods"
: ":"
array
[ "["
] "]"
} "}"
] "]"
, ","
pair (+26 nodes collapsed)
, ","
pair (+69 nodes collapsed)
, ","
pair
property_identifier "messages"
: ":"
object
{ "{"
pair
property_identifier "missingThis"
: ":"
string
" "\""
string_fragment "Expected 'this' to be used by class {{name}}."
" "\""
} "}"
} "}"
, ","
method_definition (+573 nodes collapsed)
} "}"
; ";"