Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint all examples using eslint #3080

Merged
merged 2 commits into from
Mar 6, 2017

Conversation

abdulhannanali
Copy link
Contributor

Summary
Lint all the examples including examples/react-native. For some reason, examples/react-native was added in .eslintignore and wasn't being linted. I have removed it from .eslintignore and fixed all the lint errors thrown out by examples/react-native. Now all the examples are guaranteed linted, as there are no remaining example folder in .eslintignore.

This emerged from the discuss here #3047 (comment) with @cpojer

Test plan

yarn run lint works

@@ -5,35 +5,35 @@
*/
'use strict';

import React, {Component} from 'react';
import {
import React, {Component} from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that indentation is actually wrong. Remove the extra space before use strict and it'll get back to normal :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! Sorry didn't notice it. I have corrected this 👍 Thanks!

@codecov-io
Copy link

codecov-io commented Mar 6, 2017

Codecov Report

Merging #3080 into master will decrease coverage by -1.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3080      +/-   ##
==========================================
- Coverage   69.56%   68.49%   -1.08%     
==========================================
  Files         157      146      -11     
  Lines        5539     5335     -204     
  Branches        3        0       -3     
==========================================
- Hits         3853     3654     -199     
+ Misses       1685     1681       -4     
+ Partials        1        0       -1
Impacted Files Coverage Δ
packages/jest-resolve-dependencies/src/index.js 0% <0%> (-100%)
packages/jest-config/src/index.js 0% <0%> (-35.72%)
packages/jest-config/src/normalize.js 85.9% <0%> (-3.5%)
packages/jest-cli/src/runTest.js 12.5% <0%> (-3.41%)
packages/jest-config/src/setFromArgv.js 0% <0%> (-2.44%)
packages/jest-resolve/src/index.js 13.86% <0%> (-2.31%)
packages/jest-config/src/utils.js 93.33% <0%> (-2.23%)
packages/jest-runtime/src/transform.js 87.87% <0%> (-1.6%)
packages/jest-matcher-utils/src/index.js 71.42% <0%> (-0.8%)
packages/jest-mock/src/index.js 89.54% <0%> (-0.41%)
... and 44 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2122f0d...439cef5. Read the comment docs.

@cpojer cpojer merged commit b903fe5 into jestjs:master Mar 6, 2017
@cpojer
Copy link
Member

cpojer commented Mar 6, 2017

Woah, thanks! This is great.

skovhus pushed a commit to skovhus/jest that referenced this pull request Apr 29, 2017
* lint examples/react-native

* correct indentations for react-native example
tushardhole pushed a commit to tushardhole/jest that referenced this pull request Aug 21, 2017
* lint examples/react-native

* correct indentations for react-native example
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants