Skip to content

Commit e0181ad

Browse files
committed
Merge pull request react-bootstrap#490 from AlexKVal/eslint2
44 less superfluous eslint warnings in docs and tests.
2 parents 10ed077 + 43f6f2e commit e0181ad

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

docs/.eslintrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"rules": {
3+
"comma-spacing": 0,
4+
"react/no-multi-comp": 0,
5+
"react/prop-types": 0
6+
}
7+
}

ie8/.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
rules: {
3+
"react/no-multi-comp": 0
4+
}
5+
}

src/TabbedArea.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const TabbedArea = React.createClass({
3131

3232
getDefaultProps() {
3333
return {
34-
bsStyle: "tabs",
34+
bsStyle: 'tabs',
3535
animation: true
3636
};
3737
},

test/.eslintrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
"sinon": true
88
},
99
"rules": {
10-
"no-script-url": 1,
10+
"no-script-url": 0,
1111
"no-unused-expressions": 0,
12-
"react/no-multi-comp": 0
12+
"react/no-multi-comp": 0,
13+
"react/prop-types": 0
1314
}
1415
}

test/BadgeSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('Badge', function () {
4242

4343
it('Should not have a badge class when empty', function () {
4444
let instance = ReactTestUtils.renderIntoDocument(
45-
<Badge></Badge>
45+
<Badge />
4646
);
4747
assert.notOk(instance.getDOMNode().className.match(/\bbadge\b/));
4848
});

0 commit comments

Comments
 (0)