Skip to content

Commit f43ddf7

Browse files
committed
🎨 Lints everything
1 parent 4c652a1 commit f43ddf7

File tree

78 files changed

+1903
-613
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1903
-613
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test": "lerna run test --scope 'reactotron-core-*' --scope 'reactotron-redux*' --scope 'reactotron-apisauce'",
1111
"lint": "lerna run lint",
1212
"welcome": "yarn run clean && yarn run bootstrap && yarn run build && yarn run copy-internal-deps && yarn run lint -s",
13-
"format": "prettier --write \"**/*.{js,jsx}\" && standard --fix"
13+
"format": "lerna run format"
1414
},
1515
"devDependencies": {
1616
"@types/jest": "^21.1.2",

packages/.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/.vscode
2+
**/android
3+
**/build
4+
**/dist
5+
**/ios
6+
**/release

packages/.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"bracketSpacing": true,
3+
"jsxBracketSameLine": false,
4+
"printWidth": 100,
5+
"semi": false,
6+
"singleQuote": true,
7+
"tabWidth": 2,
8+
"trailingComma": "es5",
9+
"useTabs": false
10+
}

packages/demo-react-js/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
"version": "1.13.0",
44
"private": true,
55
"devDependencies": {
6-
"babel-eslint": "^7.1.1",
6+
"babel-eslint": "^8.2.1",
7+
"prettier": "^1.10.2",
78
"react-scripts": "^0.9.5",
89
"reactotron-apisauce": "^1.13.0",
910
"reactotron-core-client": "^1.13.0",
1011
"reactotron-react-js": "^1.13.0",
1112
"reactotron-redux": "^1.13.0",
1213
"reactotron-redux-saga": "^1.13.0",
1314
"stacktrace-js": "^1.3.1",
14-
"standard": "^10.0.2"
15+
"standard": "^10.0.3"
1516
},
1617
"dependencies": {
1718
"apisauce": "^0.11.0",
@@ -29,6 +30,7 @@
2930
"start": "react-scripts start",
3031
"build-prod": "react-scripts build",
3132
"eject": "react-scripts eject",
33+
"format": "prettier --write {**,.}/*.js && standard --fix",
3234
"lint": "standard"
3335
},
3436
"standard": {

packages/demo-react-js/src/App.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ const Styles = {
2626
}
2727

2828
class App extends Component {
29-
static propTypes = {
30-
startup: PropTypes.func.isRequired,
31-
message: PropTypes.string,
32-
url: PropTypes.string,
33-
name: PropTypes.string,
34-
sha: PropTypes.string,
35-
error: PropTypes.string,
36-
fetching: PropTypes.bool
37-
}
38-
3929
renderError () {
4030
const { error } = this.props
4131
return (
@@ -132,6 +122,16 @@ class App extends Component {
132122
}
133123
}
134124

125+
App.propTypes = {
126+
startup: PropTypes.func.isRequired,
127+
message: PropTypes.string,
128+
url: PropTypes.string,
129+
name: PropTypes.string,
130+
sha: PropTypes.string,
131+
error: PropTypes.string,
132+
fetching: PropTypes.bool
133+
}
134+
135135
const mapStateToProps = state => ({ ...state.repo, ...state.logo })
136136

137137
const mapDispatchToProps = dispatch => ({

0 commit comments

Comments
 (0)