SonarJS linter helper functions
isAnyLiteral
Function isAnyLiteral
isAnyLiteral
(
literal
:
StringLiteral
)
:
boolean
Parameters
literal
:
StringLiteral
Returns
boolean
Settings
Theme
OS
Light
Dark
ESlint dev guide
SonarJS linter helper functions
Chai
is
Assertion
is
Imported
Express
attempt
Find
App
Injection
attempt
Find
App
Instantiation
is
Middleware
Instance
is
Using
Middleware
Sensitive
Middleware
Property
Rule
Mocha
Test
Case
extract
Test
Case
is
Describe
Case
is
Test
Case
is
Test
Construct
Sinon
is
Assertion
is
Imported
Vitest
is
Assertion
is
Imported
Live
Variables
Reaching
Definitions
Encoded
Message
Issue
Location
Policy
Checker
Options
Reference
Like
Aws
Cdk
Callback
Aws
Cdk
Consumer
Aws
Cdk
Consumer
Map
Context
Overrider
Fully
Qualified
Name
Function
Node
Type
Location
Holder
Loop
Like
Named
Dependency
Node
Report
Overrider
Required
Parser
Services
Rule
Context
Sonar
Meta
String
Literal
Values
collection
Constructor
copying
Sort
Like
detect
React
Rule
FUNCTION_
NODES
function
Like
globals
By
Libraries
PACKAGE_
JSON
sort
Like
TYPED_
ARRAY_
TYPES
unknown
Value
UTILITY_
TYPES
writing
Methods
ancestors
Chain
are
Equivalent
Aws
Cdk
Check
Arguments
Aws
Cdk
Template
Aws
Iam
Policy
Template
check
Sensitive
Call
children
Of
clear
Dependencies
Cache
collect
If
Branches
collect
Switch
Branches
encode
Contents
expand
Message
find
First
Matching
Ancestor
find
First
Matching
Local
Ancestor
find
Parent
find
Propagated
Setting
flat
Map
flatten
Args
generate
Meta
get
All
Dependencies
get
Bucket
Property
get
Dependencies
get
Dependencies
From
Package
Json
get
Element
Type
get
First
Token
get
First
Token
After
get
Fully
Qualified
Name
get
Fully
Qualified
Name
Raw
get
Import
Declarations
get
Jsx
Short
Circuit
Nodes
get
Lhs
Variable
get
Literal
Value
get
Main
Function
Token
Location
get
Manifests
get
Node
Parent
get
Parent
get
Program
Statements
get
Property
get
Property
With
Value
get
Require
Calls
get
Sensitive
Effect
get
Signature
From
Callee
get
Simple
Raw
String
Value
get
Symbol
At
Location
get
Type
As
String
get
Type
From
Tree
Node
get
Union
Types
get
Unique
Write
Reference
get
Unique
Write
Usage
get
Unique
Write
Usage
Or
Node
get
Value
Of
Expression
get
Variable
From
Identifier
get
Variable
From
Name
get
Variable
From
Scope
intercept
Report
intercept
Report
For
React
is
Any
is
Any
Literal
is
Array
is
Array
Expression
is
Array
Like
Type
is
Arrow
Function
Expression
is
Big
Int
Array
is
Big
Int
Type
is
Binary
Plus
is
Boolean
Literal
is
Boolean
Literal
Type
is
Boolean
True
Type
is
Boolean
Type
is
Calling
Method
is
Default
Specifier
is
Dot
Notation
is
Element
Write
is
False
Literal
is
Function
is
Function
Call
is
Function
Declaration
is
Function
Expression
is
Function
Invocation
is
Function
Node
is
Generic
Type
is
Identifier
is
If
Statement
is
Index
Notation
is
Inside
Vue
Setup
Script
is
Literal
is
Logical
Expression
is
Member
Expression
is
Member
With
Property
is
Method
Call
is
Method
Invocation
is
Module
Declaration
is
Module
Exports
is
Namespace
Specifier
is
Null
Literal
is
Null
Or
Undefined
Type
is
Number
is
Number
Array
is
Number
Literal
is
Number
Type
is
Object
Destructuring
is
Object
Type
is
Presentation
Table
is
Property
is
Reference
To
is
Regex
Literal
is
Require
is
Required
Parser
Services
is
Require
Module
is
Root
is
S3
Bucket
Constructor
is
S3
Bucket
Deployment
Constructor
is
Simple
Raw
String
is
Static
Template
Literal
is
String
is
String
Array
is
String
Literal
is
String
Type
is
Supported
is
Thenable
is
This
Expression
is
Throw
Statement
is
Type
Alias
is
Typed
Array
is
Unary
Expression
is
Undefined
is
Undefined
Or
Null
is
Union
is
Unresolved
is
Variable
Declaration
last
local
Ancestors
Chain
lva
merge
Rules
normalize
FQN
reaching
Definitions
read
File
Sync
reduce
To
reduce
To
Identifier
remove
Node
With
Leading
Whitespaces
report
resolve
Assigned
Values
resolve
From
Function
Reference
resolve
Function
resolve
Identifiers
S3
Bucket
Template
strip
BOM
take
Without
Break
to
Encoded
Message
to
Secondary
Location
to
Unix
Path
M
M
N
E
P
V
F
C
I
C
P
M
F
P
C
P
T
T
A
A
A
T
R