add eslint, transform-rest-spread
parent
9d3473a9db
commit
86ef869502
2
.babelrc
2
.babelrc
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"plugins": [ "transform-es2015-destructuring" ],
|
"plugins": [ "transform-es2015-destructuring", "transform-object-rest-spread" ],
|
||||||
"retainLines": true
|
"retainLines": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
module.exports = {
|
||||||
|
"env": {
|
||||||
|
"commonjs": true,
|
||||||
|
"es6": true
|
||||||
|
},
|
||||||
|
"extends": "eslint:recommended",
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"experimentalObjectRestSpread": true,
|
||||||
|
"jsx": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"plugins": [
|
||||||
|
"react"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"indent": [
|
||||||
|
"error",
|
||||||
|
4
|
||||||
|
],
|
||||||
|
"linebreak-style": [
|
||||||
|
"error",
|
||||||
|
"unix"
|
||||||
|
],
|
||||||
|
"semi": [
|
||||||
|
"error",
|
||||||
|
"always"
|
||||||
|
],
|
||||||
|
"no-control-regex": [
|
||||||
|
"off"
|
||||||
|
],
|
||||||
|
"no-empty": [
|
||||||
|
"off"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
|
@ -15,8 +15,11 @@
|
||||||
"pg-bricks": "latest"
|
"pg-bricks": "latest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-cli": "^6.10.1",
|
"babel-cli": "latest",
|
||||||
"babel-plugin-transform-es2015-destructuring": "^6.9.0"
|
"babel-plugin-transform-es2015-destructuring": "latest",
|
||||||
|
"babel-plugin-transform-object-rest-spread": "latest",
|
||||||
|
"eslint": "latest",
|
||||||
|
"eslint-plugin-react": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"run": "babel operetta.js | nodejs"
|
"run": "babel operetta.js | nodejs"
|
||||||
|
|
Loading…
Reference in New Issue