Member Junction
Preparing search index...
@memberjunction/react-linter
ComponentLinter
Class ComponentLinter
Index
Constructors
constructor
Accessors
Sql
Dialect
Methods
lint
Component
validate
Component
Syntax
Constructors
constructor
new
ComponentLinter
()
:
ComponentLinter
Returns
ComponentLinter
Accessors
Static
Sql
Dialect
get
SqlDialect
()
:
SQLParserDialect
Current SQL dialect used for WHERE clause parsing
Returns
SQLParserDialect
Methods
Static
lint
Component
lintComponent
(
code
:
string
,
componentName
:
string
,
componentSpec
?:
ComponentSpec
,
isRootComponent
?:
boolean
,
contextUser
?:
UserInfo
,
debugMode
?:
boolean
,
options
?:
LinterOptions
,
sqlDialect
?:
SQLParserDialect
,
)
:
Promise
<
LintResult
>
Parameters
code
:
string
componentName
:
string
Optional
componentSpec
:
ComponentSpec
Optional
isRootComponent
:
boolean
Optional
contextUser
:
UserInfo
Optional
debugMode
:
boolean
Optional
options
:
LinterOptions
Optional
sqlDialect
:
SQLParserDialect
Returns
Promise
<
LintResult
>
Static
validate
Component
Syntax
validateComponentSyntax
(
code
:
string
,
componentName
:
string
,
)
:
Promise
<
{
errors
:
string
[]
;
valid
:
boolean
}
>
Parameters
code
:
string
componentName
:
string
Returns
Promise
<
{
errors
:
string
[]
;
valid
:
boolean
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
Sql
Dialect
Methods
lint
Component
validate
Component
Syntax
Member Junction
Loading...
Current SQL dialect used for WHERE clause parsing