Skip to content

Commit 46f527e

Browse files
committed
Consolidate test ESLint overrides
1 parent d28036b commit 46f527e

19 files changed

+8
-25
lines changed

modules/__tests__/.eslintrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"env": {
3+
"mocha": true
4+
},
5+
"rules": {
6+
"react/prop-types": 0
7+
}
8+
}

modules/__tests__/History-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint-env mocha */
21
import expect from 'expect'
32
import React from 'react'
43
import { render, unmountComponentAtNode } from 'react-dom'

modules/__tests__/IndexLink-test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/*eslint-env mocha */
2-
/*eslint react/prop-types: 0*/
31
import expect from 'expect'
42
import React, { Component } from 'react'
53
import { render, unmountComponentAtNode } from 'react-dom'

modules/__tests__/IndexRedirect-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint-env mocha */
21
import expect from 'expect'
32
import React from 'react'
43
import { render, unmountComponentAtNode } from 'react-dom'

modules/__tests__/IndexRoute-test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/*eslint-env mocha */
2-
/*eslint react/prop-types: 0*/
31
import expect from 'expect'
42
import React, { Component } from 'react'
53
import { render, unmountComponentAtNode } from 'react-dom'

modules/__tests__/Link-test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/*eslint-env mocha */
2-
/*eslint react/prop-types: 0*/
31
import expect, { spyOn } from 'expect'
42
import React, { Component } from 'react'
53
import { Simulate } from 'react-addons-test-utils'

modules/__tests__/PatternUtils-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint-env mocha */
21
import expect from 'expect'
32
import { matchPattern } from '../PatternUtils'
43

modules/__tests__/Redirect-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint-env mocha */
21
import expect from 'expect'
32
import React from 'react'
43
import { render, unmountComponentAtNode } from 'react-dom'

modules/__tests__/RouteComponent-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint-env mocha */
21
import expect from 'expect'
32
import React, { Component } from 'react'
43
import { render, unmountComponentAtNode } from 'react-dom'

modules/__tests__/Router-test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/*eslint-env mocha */
2-
/*eslint react/prop-types: 0*/
31
import expect from 'expect'
42
import React, { Component } from 'react'
53
import { render, unmountComponentAtNode } from 'react-dom'

0 commit comments

Comments
 (0)