Skip to content

Commit b833d55

Browse files
committed
use a real linting rule instead of hacks 😢
1 parent 0e85e23 commit b833d55

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎.eslintrc‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"parser": "babel-eslint",
1313
"rules": {
1414
"strict": 0,
15-
"react/prop-types": 2
15+
"react/prop-types": 2,
16+
"react/jsx-uses-react": 1
1617
},
1718
"plugins": [
1819
"react"

‎modules/__tests__/matchRoutes-test.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import { createLocation } from 'history';
88
import { createRoutes } from '../RouteUtils';
99
import matchRoutes from '../matchRoutes';
1010

11-
React.shutupESLint;
12-
1311
describe('matchRoutes', function () {
1412
var routes, RootRoute, UsersRoute, UsersIndexRoute, UserRoute, PostRoute, FilesRoute, AboutRoute, TeamRoute, ProfileRoute, CatchAllRoute;
1513
beforeEach(function () {

0 commit comments

Comments
 (0)