mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-18 09:00:30 -05:00
Parse with babel-eslint
Allows us to use the now-available es6 features without lint errors.
This commit is contained in:
parent
5b6a1fe8b9
commit
2065bc91a4
2 changed files with 3 additions and 5 deletions
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"parser": "babel-eslint",
|
||||||
"rules": {
|
"rules": {
|
||||||
"curly": [2, "multi-line"],
|
"curly": [2, "multi-line"],
|
||||||
"eol-last": [2],
|
"eol-last": [2],
|
||||||
|
@ -14,16 +15,12 @@
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
|
"es6": true,
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
"formatMessage": true
|
"formatMessage": true
|
||||||
},
|
},
|
||||||
"ecmaFeatures": {
|
|
||||||
"arrowFunctions": true,
|
|
||||||
"blockBindings": true,
|
|
||||||
"jsx": true
|
|
||||||
},
|
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"react",
|
"react",
|
||||||
"json"
|
"json"
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
"async": "1.5.2",
|
"async": "1.5.2",
|
||||||
"autoprefixer": "6.3.6",
|
"autoprefixer": "6.3.6",
|
||||||
"babel-core": "6.10.4",
|
"babel-core": "6.10.4",
|
||||||
|
"babel-eslint": "5.0.4",
|
||||||
"babel-loader": "6.2.4",
|
"babel-loader": "6.2.4",
|
||||||
"babel-preset-es2015": "6.9.0",
|
"babel-preset-es2015": "6.9.0",
|
||||||
"babel-preset-react": "6.11.1",
|
"babel-preset-react": "6.11.1",
|
||||||
|
|
Loading…
Reference in a new issue