Skip to content

Commit

Permalink
Merge pull request react-bootstrap#490 from AlexKVal/eslint2
Browse files Browse the repository at this point in the history
44 less superfluous eslint warnings in docs and tests.
  • Loading branch information
mtscout6 committed Apr 9, 2015
2 parents 10ed077 + 43f6f2e commit e0181ad
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
7 changes: 7 additions & 0 deletions docs/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"rules": {
"comma-spacing": 0,
"react/no-multi-comp": 0,
"react/prop-types": 0
}
}
5 changes: 5 additions & 0 deletions ie8/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
rules: {
"react/no-multi-comp": 0
}
}
2 changes: 1 addition & 1 deletion src/TabbedArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const TabbedArea = React.createClass({

getDefaultProps() {
return {
bsStyle: "tabs",
bsStyle: 'tabs',
animation: true
};
},
Expand Down
5 changes: 3 additions & 2 deletions test/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"sinon": true
},
"rules": {
"no-script-url": 1,
"no-script-url": 0,
"no-unused-expressions": 0,
"react/no-multi-comp": 0
"react/no-multi-comp": 0,
"react/prop-types": 0
}
}
2 changes: 1 addition & 1 deletion test/BadgeSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('Badge', function () {

it('Should not have a badge class when empty', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Badge></Badge>
<Badge />
);
assert.notOk(instance.getDOMNode().className.match(/\bbadge\b/));
});
Expand Down

0 comments on commit e0181ad

Please sign in to comment.