mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-20 18:11:03 -04:00
Enforce consistent function style
This commit is contained in:
parent
c4d7cdbdb2
commit
a2ffa76b1d
5 changed files with 10 additions and 9 deletions
|
@ -2,14 +2,15 @@
|
|||
"rules": {
|
||||
"curly": [2, "multi-line"],
|
||||
"eol-last": [2],
|
||||
"no-trailing-spaces": [2, { "skipBlankLines": true }],
|
||||
"indent": [2, 4],
|
||||
"quotes": [2, "single"],
|
||||
"linebreak-style": [2, "unix"],
|
||||
"max-len": [2, 120, 4],
|
||||
"no-trailing-spaces": [2, { "skipBlankLines": true }],
|
||||
"no-unused-vars": [2, {"args": "after-used", "varsIgnorePattern": "^_"}],
|
||||
"quotes": [2, "single"],
|
||||
"semi": [2, "always"],
|
||||
"strict": [2, "never"],
|
||||
"no-unused-vars": [2, {"args": "after-used", "varsIgnorePattern": "^_"}]
|
||||
"space-before-function-paren": [2, "always"],
|
||||
"strict": [2, "never"]
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
|
|
|
@ -27,7 +27,7 @@ module.exports = React.createClass({
|
|||
render: function () {
|
||||
return (
|
||||
<Slider className={'carousel ' + this.props.className} {... this.props.settings}>
|
||||
{this.props.items.map(function(item) {
|
||||
{this.props.items.map(function (item) {
|
||||
return (
|
||||
<Thumbnail key={item.id}
|
||||
href={item.href}
|
||||
|
|
|
@ -9,7 +9,7 @@ module.exports = React.createClass({
|
|||
propTypes: {
|
||||
projectCount: React.PropTypes.number
|
||||
},
|
||||
getDefaultProps: function() {
|
||||
getDefaultProps: function () {
|
||||
return {
|
||||
projectCount: 10569070
|
||||
};
|
||||
|
|
|
@ -8,10 +8,10 @@ module.exports = React.createClass({
|
|||
statics: {
|
||||
setAppElement: Modal.setAppElement
|
||||
},
|
||||
requestClose: function() {
|
||||
requestClose: function () {
|
||||
return this.refs.modal.portal.requestClose();
|
||||
},
|
||||
render: function() {
|
||||
render: function () {
|
||||
return (
|
||||
<Modal ref='modal' {... this.props}>
|
||||
<div className='modal-close' onClick={this.requestClose}></div>
|
||||
|
|
|
@ -34,7 +34,7 @@ var View = React.createClass({
|
|||
<Intro projectCount={this.state.projectCount} />
|
||||
<div className="activity"></div>
|
||||
<News />
|
||||
{this.state.featured.map(function(set){
|
||||
{this.state.featured.map(function (set) {
|
||||
return (
|
||||
<Box
|
||||
className="featured"
|
||||
|
|
Loading…
Reference in a new issue