mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix lint
- Upgrade babel-eslint - Ignore coverage - Fix actual lint warning
This commit is contained in:
@@ -11,5 +11,6 @@ docs/vendor/bundle/
|
||||
examples/
|
||||
# Ignore built files.
|
||||
build/
|
||||
coverage/
|
||||
scripts/bench/bench-*.js
|
||||
vendor/*
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
"devDependencies": {
|
||||
"async": "^1.5.0",
|
||||
"babel": "^5.8.29",
|
||||
"babel-eslint": "4.1.5",
|
||||
"babel-eslint": "4.1.8",
|
||||
"browserify": "^12.0.1",
|
||||
"bundle-collapser": "^1.1.1",
|
||||
"coffee-script": "^1.8.0",
|
||||
|
||||
@@ -224,7 +224,7 @@ describe('ReactStatelessComponent', function() {
|
||||
it('should allow simple functions to return false', function() {
|
||||
function Child() {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
expect(() => ReactTestUtils.renderIntoDocument(<Child />)).not.toThrow();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user