Showing 101 of 101 total issues
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror {
- Create a ticketCreate a ticket
- Exclude checks
Using height with padding-bottom can sometimes make elements larger than you expect. Open
padding-bottom: 30px;
- Create a ticketCreate a ticket
- Exclude checks
Element (span.CodeMirror-selectedtext) is overqualified, just use .CodeMirror-selectedtext without element name. Open
span.CodeMirror-selectedtext { background: none; }
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
#conf {
- Create a ticketCreate a ticket
- Exclude checks
Don't use IDs in selectors. Open
#local-media, #local-media video {
- Create a ticketCreate a ticket
- Exclude checks
Do not use 'new' for side effects. Open
new bsn.Button(connectButton, 'reset');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Disallow new For Side Effects (no-new)
The goal of using new
with a constructor is typically to create an object of a particular type and store that object in a variable, such as:
var person = new Person();
It's less common to use new
and not store the result, such as:
new Person();
In this case, the created object is thrown away because its reference isn't stored anywhere, and in many cases, this means that the constructor should be replaced with a function that doesn't require new
to be used.
Rule Details
This rule is aimed at maintaining consistency and convention by disallowing constructor calls using the new
keyword that do not assign the resulting object to a variable.
Examples of incorrect code for this rule:
/*eslint no-new: "error"*/
new Thing();
Examples of correct code for this rule:
/*eslint no-new: "error"*/
var thing = new Thing();
Thing();
Source: http://eslint.org/docs/rules/
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror-gutter-filler {
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror-gutter {
- Create a ticketCreate a ticket
- Exclude checks
height can't be used with display: inline. Open
height: 100%;
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
#local-media {
- Create a ticketCreate a ticket
- Exclude checks
Fallback background-color (hex or RGB) should precede RGBA background-color. Open
background-color: rgba(20, 20, 20, 0.7);
- Create a ticketCreate a ticket
- Exclude checks
Element (span.CodeMirror-matchingbracket) is overqualified, just use .CodeMirror-matchingbracket without element name. Open
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
- Create a ticketCreate a ticket
- Exclude checks
Use of !important Open
overflow: scroll !important; /* Things will break if this is overridden */
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror-vscrollbar {
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror-gutter-elt {
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
div.CodeMirror-cursors {
- Create a ticketCreate a ticket
- Exclude checks
Do not use 'new' for side effects. Open
new bsn.Button(e.target, 'reset');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Disallow new For Side Effects (no-new)
The goal of using new
with a constructor is typically to create an object of a particular type and store that object in a variable, such as:
var person = new Person();
It's less common to use new
and not store the result, such as:
new Person();
In this case, the created object is thrown away because its reference isn't stored anywhere, and in many cases, this means that the constructor should be replaced with a function that doesn't require new
to be used.
Rule Details
This rule is aimed at maintaining consistency and convention by disallowing constructor calls using the new
keyword that do not assign the resulting object to a variable.
Examples of incorrect code for this rule:
/*eslint no-new: "error"*/
new Thing();
Examples of correct code for this rule:
/*eslint no-new: "error"*/
var thing = new Thing();
Thing();
Source: http://eslint.org/docs/rules/