Skip to content

Commit 0afadcd

Browse files
committed
Fix warnings, run prettier
1 parent 3fc9d8c commit 0afadcd

39 files changed

+391
-383
lines changed

.eslintrc.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"parser": "babel-eslint",
33

4+
"plugins": [
5+
"jest"
6+
],
7+
48
"env": {
59
"node": true,
610
"es6": true
@@ -37,12 +41,17 @@
3741
"sourceType": "module"
3842
},
3943

40-
"extends": "airbnb",
44+
"extends": [
45+
"airbnb",
46+
"prettier",
47+
"plugin:jest/recommended"
48+
],
4149

4250
"rules": {
4351
"strict": 0,
4452
"arrow-parens": 0,
4553
"no-param-reassign": 0,
54+
"react/forbid-prop-types": 0,
4655
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
4756
}
4857
}

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
5151
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
5252

5353
[version]
54-
^0.64.0
54+
^0.63.0

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ buck-out/
5252
*/fastlane/report.xml
5353
*/fastlane/Preview.html
5454
*/fastlane/screenshots
55+
56+
ios/Index/

App.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Provider } from 'react-redux';
33
import { persistStore } from 'redux-persist';
44

55
import { store } from './app/config/store';
6-
import { registerScreens } from './app/config/router';
7-
import { hackd } from './app/config/router';
6+
import { registerScreens, hackd } from './app/config/router';
87

98
registerScreens(store, Provider);
109

__tests__/data/api/comment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const comment = {
22
by: 'norvig',
33
id: 2921983,
4-
kids: [ 2922097, 2922429, 2924562, 2922709, 2922573, 2922140, 2922141 ],
4+
kids: [2922097, 2922429, 2924562, 2922709, 2922573, 2922140, 2922141],
55
parent: 2921506,
66
text: 'Aw shucks, guys ... you make me blush with your compliments.<p>Tell you what, Ill make a deal: I\'ll keep writing if you keep reading. K?',
77
time: 1314211127,

__tests__/data/api/post.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const post = {
22
by: 'dhouston',
33
descendants: 71,
44
id: 8863,
5-
kids: [ 8952, 9224, 8917, 8884, 8887, 8943, 8869, 8958, 9005, 9671, 9067, 8940, 8908, 9055, 8865, 8881, 8872, 8873, 8955, 10403, 8903, 8928, 9125, 8998, 8901, 8902, 8907, 8894, 8878, 8980, 8870, 8934, 8876 ],
5+
kids: [8952, 9224, 8917, 8884, 8887, 8943, 8869, 8958, 9005, 9671, 9067, 8940, 8908, 9055, 8865, 8881, 8872, 8873, 8955, 10403, 8903, 8928, 9125, 8998, 8901, 8902, 8907, 8894, 8878, 8980, 8870, 8934, 8876],
66
score: 109,
77
time: 1175714200,
88
title: 'My YC app: Dropbox - Throw away your USB drive',
@@ -14,7 +14,7 @@ export const posts = [
1414
{
1515
by: 'norvig',
1616
id: 2921983,
17-
kids: [ 2922097, 2922429, 2924562, 2922709, 2922573, 2922140, 2922141 ],
17+
kids: [2922097, 2922429, 2924562, 2922709, 2922573, 2922140, 2922141],
1818
parent: 2921506,
1919
text: 'Aw shucks, guys ... you make me blush with your compliments.<p>Tell you what, Ill make a deal: I\'ll keep writing if you keep reading. K?',
2020
time: 1314211127,

__tests__/data/api/user.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/tests/actions/auth.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as types from '../../../app/actions/types';
21
import * as actions from '../../../app/actions/auth';
32

43
import { appUser } from '../../data/api/user';

__tests__/tests/actions/items.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as types from '../../../app/actions/types';
21
import * as actions from '../../../app/actions/items';
32

43
import { posts } from '../../data/api/post';

0 commit comments

Comments
 (0)