Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Aug 7, 2016
1 parent 25fd5e2 commit 77b0a4a
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 22 deletions.
4 changes: 1 addition & 3 deletions .eslintrc
Expand Up @@ -221,9 +221,7 @@
"react/no-unknown-property": 1,
"react/prop-types": [2, {"ignore": ["onMouseDown", "onTouchStart"]}],
"react/react-in-jsx-scope": 1,
"react/require-extension": 1,
"react/self-closing-comp": 1,
"react/sort-comp": 1,
"react/wrap-multilines": 1
"react/sort-comp": 1
}
}
4 changes: 0 additions & 4 deletions .sass-lint.yml
Expand Up @@ -49,7 +49,6 @@ rules:
convention: hyphenatedlowercase
mixins-before-declarations: 0
nesting-depth: 0
no-color-keyword: 1
no-color-literals: 0
no-css-comments: 1
no-debug: 1
Expand All @@ -73,9 +72,6 @@ rules:
no-trailing-zero: 1
no-url-protocols: 1
placeholder-in-extend: 0
placeholder-name-format:
- 0
- convention: hyphenatedlowercase
property-sort-order:
- 1
- ignore-custom-properties: false
Expand Down
2 changes: 1 addition & 1 deletion components/input/Input.js
Expand Up @@ -177,7 +177,7 @@ const factory = (FontIcon) => {
<div data-react-toolbox='input' className={className}>
{React.createElement(multiline ? 'textarea' : 'input', inputElementProps)}
{icon ? <FontIcon className={theme.icon} value={icon} /> : null}
<span className={theme.bar}></span>
<span className={theme.bar} />
{labelText
? <label className={labelClassName}>
{labelText}
Expand Down
2 changes: 1 addition & 1 deletion components/menu/Menu.js
Expand Up @@ -206,7 +206,7 @@ const factory = (MenuItem) => {

return (
<div data-react-toolbox='menu' className={className} style={this.getRootStyle()}>
{this.props.outline ? <div className={theme.outline} style={outlineStyle}></div> : null}
{this.props.outline ? <div className={theme.outline} style={outlineStyle} /> : null}
<ul ref='menu' className={theme.menuInner} style={this.getMenuStyle()}>
{this.renderItems()}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions components/progress_bar/ProgressBar.js
Expand Up @@ -72,8 +72,8 @@ class ProgressBar extends Component {
const {buffer, value} = this.linearStyle();
return (
<div>
<span ref='buffer' data-ref='buffer' className={this.props.theme.buffer} style={buffer}></span>
<span ref='value' data-ref='value' className={this.props.theme.value} style={value}></span>
<span ref='buffer' data-ref='buffer' className={this.props.theme.buffer} style={buffer}/>
<span ref='value' data-ref='value' className={this.props.theme.value} style={value}/>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion components/slider/Slider.js
Expand Up @@ -281,7 +281,7 @@ const factory = (ProgressBar, Input) => {
onTouchStart={this.handleTouchStart}
style={knobStyles}
>
<div className={theme.innerknob} data-value={parseInt(this.props.value)}></div>
<div className={theme.innerknob} data-value={parseInt(this.props.value)}/>
</div>

<div className={theme.progress}>
Expand Down
2 changes: 1 addition & 1 deletion components/table/TableHead.js
Expand Up @@ -16,7 +16,7 @@ const factory = (Checkbox) => {
);
} else if (selectable) {
selectCell = (
<th key='select' className={theme.selectable}></th>
<th key='select' className={theme.selectable}/>
);
}
return (
Expand Down
2 changes: 1 addition & 1 deletion components/time_picker/ClockHand.js
Expand Up @@ -116,7 +116,7 @@ class Hand extends Component {

return (
<div className={className} style={handStyle}>
<div ref='knob' className={theme.knob}></div>
<div ref='knob' className={theme.knob}/>
</div>
);
}
Expand Down
10 changes: 5 additions & 5 deletions components/tooltip/theme.scss
Expand Up @@ -7,15 +7,15 @@
position: absolute;
z-index: $z-index-higher;
display: block;
padding: $tooltip-margin;
max-width: $tooltip-max-width;
padding: $tooltip-margin;
font-family: Roboto, sans-serif;
font-size: $tooltip-font-size;
font-weight: $font-weight-bold;
line-height: $font-size-small;
text-align: center;
pointer-events: none;
text-transform: none;
pointer-events: none;
transition: $animation-curve-default $tooltip-animation-duration transform;
transform: scale(0) translateX(-50%);
transform-origin: top left;
Expand Down Expand Up @@ -47,9 +47,9 @@
}

.tooltipInner {
background: $tooltip-background;
border-radius: $tooltip-border-radius;
color: $tooltip-color;
display: block;
padding: $tooltip-padding;
color: $tooltip-color;
background: $tooltip-background;
border-radius: $tooltip-border-radius;
}
4 changes: 2 additions & 2 deletions docs/app/components/logo/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spec/components/card.js
Expand Up @@ -143,7 +143,7 @@ const cards = {
<CardMedia
aspectRatio="wide"
>
<iframe width="1280" height="720" src="https://www.youtube.com/embed/sGbxmsDFVnE?rel=0&amp;showinfo=0" frameBorder="0" allowFullScreen></iframe>
<iframe width="1280" height="720" src="https://www.youtube.com/embed/sGbxmsDFVnE?rel=0&amp;showinfo=0" frameBorder="0" allowFullScreen />
</CardMedia>
<CardActions style={{ justifyContent: 'flex-end' }}>
<IconButton icon="report_problem" />
Expand Down

0 comments on commit 77b0a4a

Please sign in to comment.