1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

add ignore config for standard & standardize

This commit is contained in:
Rokt33r
2015-07-09 02:40:35 +09:00
parent 472d79cbf2
commit 6b03ea2fe5
2 changed files with 9 additions and 1 deletions

View File

@@ -100,9 +100,12 @@ var SnippetContainer = React.createClass({
componentDidMount: function () { componentDidMount: function () {
Snippet.getByPlanet(this.props.params.planetName) Snippet.getByPlanet(this.props.params.planetName)
.then(function (snippets) { .then(function (snippets) {
this.setState({snippets: snippets, currentSnippet: snippets.length > 0 ? snippets[0] : null}) this.setSnippets(snippets, snippets.length > 0 ? snippets[0] : null)
}.bind(this)) }.bind(this))
}, },
setSnippets: function (snippets, currentSnippet) {
this.setState({snippets: snippets, currentSnippet: currentSnippet})
},
selectSnippet: function (snippet) { selectSnippet: function (snippet) {
this.setState({currentSnippet: snippet}) this.setState({currentSnippet: snippet})
}, },

View File

@@ -51,5 +51,10 @@
"stylus-loader": "^1.2.1", "stylus-loader": "^1.2.1",
"webpack": "^1.10.0", "webpack": "^1.10.0",
"webpack-dev-server": "^1.10.1" "webpack-dev-server": "^1.10.1"
},
"standard": {
"ignore": [
"/browser/ace/"
]
} }
} }