Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Unused expressions are expression statements which are not assignments or function calls
(and thus usually no-ops).
Rationale
Detects potential errors where an assignment or function call was intended.
Config
Three arguments may be optionally provided:
allow-fast-null-checks allows to use logical operators to perform fast null checks and perform
method or function calls for side effects (e.g. e && e.preventDefault()).
allow-new allows 'new' expressions for side effects (e.g. new ModifyGlobalState();.
allow-tagged-template allows tagged templates for side effects (e.g. this.add\foo`;`.
Unused expressions are expression statements which are not assignments or function calls
(and thus usually no-ops).
Rationale
Detects potential errors where an assignment or function call was intended.
Config
Three arguments may be optionally provided:
allow-fast-null-checks allows to use logical operators to perform fast null checks and perform
method or function calls for side effects (e.g. e && e.preventDefault()).
allow-new allows 'new' expressions for side effects (e.g. new ModifyGlobalState();.
allow-tagged-template allows tagged templates for side effects (e.g. this.add\foo`;`.
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces/disallows use of ES6 object literal shorthand.
Notes
Has Fix
Config
"always" assumed to be default option, thus with no options provided
the rule enforces object literal methods and properties shorthands.
With "never" option provided, any shorthand object literal syntax causes an error.
The rule can be configured in a more granular way.
With {"property": "never"} provided (which is equivalent to {"property": "never", "method": "always"}),
the rule only flags property shorthand assignments,
and respectively with {"method": "never"} (equivalent to {"property": "always", "method": "never"}),
the rule fails only on method shorthands.
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Unused expressions are expression statements which are not assignments or function calls
(and thus usually no-ops).
Rationale
Detects potential errors where an assignment or function call was intended.
Config
Three arguments may be optionally provided:
allow-fast-null-checks allows to use logical operators to perform fast null checks and perform
method or function calls for side effects (e.g. e && e.preventDefault()).
allow-new allows 'new' expressions for side effects (e.g. new ModifyGlobalState();.
allow-tagged-template allows tagged templates for side effects (e.g. this.add\foo`;`.
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces/disallows use of ES6 object literal shorthand.
Notes
Has Fix
Config
"always" assumed to be default option, thus with no options provided
the rule enforces object literal methods and properties shorthands.
With "never" option provided, any shorthand object literal syntax causes an error.
The rule can be configured in a more granular way.
With {"property": "never"} provided (which is equivalent to {"property": "never", "method": "always"}),
the rule only flags property shorthand assignments,
and respectively with {"method": "never"} (equivalent to {"property": "always", "method": "never"}),
the rule fails only on method shorthands.
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".
Enforces consistent semicolon usage at the end of every statement.
Notes
Has Fix
Config
One of the following arguments must be provided:
"always" enforces semicolons at the end of every statement.
"never" disallows semicolons at the end of every statement except for when they are necessary.
The following arguments may be optionally provided:
"ignore-interfaces" skips checking semicolons at the end of interface members.
"ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
"strict-bound-class-methods" disables any special handling of bound class methods and treats them as any
other assignment. This option overrides "ignore-bound-class-methods".