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:
@@ -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})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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/"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user