Skip to content

Commit

Permalink
adding a rule to add newline at the bottom of each file (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Sep 10, 2018
1 parent 7bbf187 commit f385774
Show file tree
Hide file tree
Showing 27 changed files with 29 additions and 26 deletions.
3 changes: 3 additions & 0 deletions unlock-app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@ module.exports = {
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"react/forbid-prop-types": 2,
"comma-dangle": [2, "always-multiline"],
"eol-last": [
"error"
]
}
};
2 changes: 1 addition & 1 deletion unlock-app/src/__tests__/components/Account.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ describe('Account Component', () => {
expect(showAccountPicker).toBeCalledWith()
})

})
})
2 changes: 1 addition & 1 deletion unlock-app/src/__tests__/components/Authenticate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ describe('Authenticate Component', () => {
expect(loadAccount).toBeCalledWith(privateKey)
})

})
})
2 changes: 1 addition & 1 deletion unlock-app/src/__tests__/components/Unlock.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ describe('Unlock Component', () => {
})
})

})
})
2 changes: 1 addition & 1 deletion unlock-app/src/__tests__/components/consumer/Key.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ describe('Key Component', () => {
closeButton.simulate('click')
expect(setTransaction).toHaveBeenCalledWith(null)
})
})
})
2 changes: 1 addition & 1 deletion unlock-app/src/__tests__/components/consumer/Lock.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ describe('Lock Component', () => {

})

})
})
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ describe('NonValidKey Component', () => {
})
})

})
})
2 changes: 1 addition & 1 deletion unlock-app/src/__tests__/components/creator/Lock.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ describe('KeyReleaseMechanism', () => {
const wrapper = shallow(<KeyReleaseMechanism mechanism={'2'} />)
expect(wrapper.text()).toEqual('Private')
})
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ describe('Balance Component', () => {
expect(wrapper.text()).toEqual('Ξ 100')
})

})
})
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ describe('Duration Component', () => {
expect(wrapper.text()).toEqual('115 days, 17 hours, 46 minutes and 40 seconds')
})

})
})
2 changes: 1 addition & 1 deletion unlock-app/src/__tests__/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ describe('config', () => {
})
})

})
})
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,4 @@ describe('Lock middleware', () => {
expect(mockWeb3Service.withdrawFromLock).toHaveBeenCalledWith(lock, store.getState().network.account)
expect(next).toHaveBeenCalledWith(action)
})
})
})
2 changes: 1 addition & 1 deletion unlock-app/src/__tests__/utils/duration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ describe('durations', () => {
expect(durationsAsTextFromSeconds(60*60)).toEqual('1 hour')
expect(durationsAsTextFromSeconds(60 * 60 * 24 * 265 + 60 * 60 * 27 + 60 * 58 + 8797)).toEqual('266 days, 6 hours, 24 minutes and 37 seconds')
})
})
})
2 changes: 1 addition & 1 deletion unlock-app/src/components/consumer/NonValidKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ NonValidKey.propTypes = {
purchaseKey: PropTypes.func,
}

export default NonValidKey
export default NonValidKey
2 changes: 1 addition & 1 deletion unlock-app/src/components/helpers/Balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Balance.propTypes = {
unit: PropTypes.string,
}

export default Balance
export default Balance
2 changes: 1 addition & 1 deletion unlock-app/src/components/interface/icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ export default {
Unlock,
Upload,
Withdraw,
}
}
2 changes: 1 addition & 1 deletion unlock-app/src/createUnlockStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ export default function createUnlockStore(config, browserHistory) {
initialState,
composeEnhancers(applyMiddleware(...middlewares)),
)
}
}
2 changes: 1 addition & 1 deletion unlock-app/src/propTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ export default {
mechanism,
provider,
transaction,
}
}
2 changes: 1 addition & 1 deletion unlock-app/src/services/localStorageService.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export const saveState = (state) => {
} catch (err) {
// TODO log/warn user
}
}
}
2 changes: 1 addition & 1 deletion unlock-app/src/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import { configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import 'jest-enzyme'

configure({ adapter: new Adapter() })
configure({ adapter: new Adapter() })
2 changes: 1 addition & 1 deletion unlock-app/src/stories/Account.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ storiesOf('Account')
return (
<Account showAccountPicker={accountPicker} account={account} />
)
})
})
2 changes: 1 addition & 1 deletion unlock-app/src/stories/Authenticate.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ storiesOf('Authenticate')
return (
<Authenticate hideAccountPicker={dummyFunction} loadAccount={dummyFunction} />
)
})
})
2 changes: 1 addition & 1 deletion unlock-app/src/stories/interface/Icons.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ storiesOf('Icons')
return (
<Icons.Withdraw />
)
})
})
2 changes: 1 addition & 1 deletion unlock-app/src/stories/interface/NetworkBadge.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ storiesOf('NetworkBadge')
return (
<NetworkBadge network={network} />
)
})
})
2 changes: 1 addition & 1 deletion unlock-app/src/stories/lock/Icon.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ storiesOf('Icon')
return (
<Icon address={address} size={3} />
)
})
})
2 changes: 1 addition & 1 deletion unlock-app/src/utils/withConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export function withConfig(Component) {
</ConfigContext.Consumer>
)
}
}
}
2 changes: 1 addition & 1 deletion unlock-app/webpack-unlockjs.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ module.exports = {
UNLOCK_URL: JSON.stringify(url),
}),
],
}
}

0 comments on commit f385774

Please sign in to comment.