• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yannickcr / eslint-plugin-react / 4602
97%

Build:
DEFAULT BRANCH: master
Ran 21 Oct 2020 05:13AM UTC
Jobs 24
Files 109
Run time 8min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4602

push

travis-ci

Jordan Harband
[New] `jsx-no-constructed-context-values`: add new rule which checks when the value passed to a Context Provider will cause needless rerenders

Adds a new rule that checks if the value prop passed to a Context Provider will cause needless rerenders. A common example is inline object
declaration such as:
```js
<Context.Provider value={{foo: 'bar'}}>
...
</Context.Provider>
```
which will cause the Context to rerender every time this is run because the object is defined with a new reference. This can lead to
performance hits since not only will this rerender all the children of a context, it will also update all consumers of the value. The
search React does to search the tree can also be very expensive. Some other instances that this rule covers are: array declarations,
function declarations (i.e. arrow functions), or new class object instantians.

4768 of 5034 branches covered (94.72%)

73 of 73 new or added lines in 1 file covered. (100.0%)

5625 of 5770 relevant lines covered (97.49%)

12462.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4602.1 (TEST=true ESLINT=7) 21 Oct 2020 05:13AM UTC 0
97.47
Travis Job 4602.1
2 4602.2 (TEST=true ESLINT=6) 21 Oct 2020 05:13AM UTC 0
97.47
Travis Job 4602.2
3 4602.3 (TEST=true ESLINT=5) 21 Oct 2020 05:13AM UTC 0
97.47
Travis Job 4602.3
4 4602.4 (TEST=true ESLINT=4) 21 Oct 2020 05:14AM UTC 0
95.32
Travis Job 4602.4
5 4602.5 (TEST=true ESLINT=7) 21 Oct 2020 05:15AM UTC 0
97.47
Travis Job 4602.5
6 4602.6 (TEST=true ESLINT=6) 21 Oct 2020 05:15AM UTC 0
97.47
Travis Job 4602.6
7 4602.7 (TEST=true ESLINT=5) 21 Oct 2020 05:15AM UTC 0
97.47
Travis Job 4602.7
8 4602.8 (TEST=true ESLINT=4) 21 Oct 2020 05:15AM UTC 0
95.32
Travis Job 4602.8
9 4602.9 (TEST=true ESLINT=7) 21 Oct 2020 05:16AM UTC 0
97.47
Travis Job 4602.9
10 4602.10 (TEST=true ESLINT=6) 21 Oct 2020 05:16AM UTC 0
97.47
Travis Job 4602.10
11 4602.11 (TEST=true ESLINT=5) 21 Oct 2020 05:16AM UTC 0
97.47
Travis Job 4602.11
12 4602.12 (TEST=true ESLINT=4) 21 Oct 2020 05:16AM UTC 0
95.32
Travis Job 4602.12
13 4602.13 (TEST=true ESLINT=6) 21 Oct 2020 05:17AM UTC 0
97.47
Travis Job 4602.13
14 4602.14 (TEST=true ESLINT=5) 21 Oct 2020 05:17AM UTC 0
97.47
Travis Job 4602.14
15 4602.15 (TEST=true ESLINT=4) 21 Oct 2020 05:17AM UTC 0
95.32
Travis Job 4602.15
16 4602.16 (TEST=true ESLINT=5) 21 Oct 2020 05:18AM UTC 0
97.47
Travis Job 4602.16
17 4602.17 (TEST=true ESLINT=4) 21 Oct 2020 05:19AM UTC 0
95.32
Travis Job 4602.17
19 4602.19 (TEST=true PRETEST=true) 21 Oct 2020 05:19AM UTC 0
97.47
Travis Job 4602.19
20 4602.20 (TEST=true POSTTEST=true) 21 Oct 2020 05:19AM UTC 0
97.47
Travis Job 4602.20
21 4602.21 (TEST=true README=true) 21 Oct 2020 05:20AM UTC 0
97.47
Travis Job 4602.21
22 4602.22 (TEST=true ESLINT=7) 21 Oct 2020 05:20AM UTC 0
97.47
Travis Job 4602.22
23 4602.23 (TEST=true ESLINT=6) 21 Oct 2020 05:20AM UTC 0
97.47
Travis Job 4602.23
24 4602.24 (TEST=true ESLINT=5) 21 Oct 2020 05:21AM UTC 0
97.47
Travis Job 4602.24
25 4602.25 (TEST=true ESLINT=4) 21 Oct 2020 05:21AM UTC 0
95.32
Travis Job 4602.25
Source Files on build 4602
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4602
  • ac98c0f8 on github
  • Prev Build on master (#4596)
  • Next Build on master (#4603)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc