add eslint, transform-rest-spread

master
Vitaliy Filippov 2016-07-05 12:52:26 +03:00
parent 9d3473a9db
commit 86ef869502
3 changed files with 42 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{
"plugins": [ "transform-es2015-destructuring" ],
"plugins": [ "transform-es2015-destructuring", "transform-object-rest-spread" ],
"retainLines": true
}

36
.eslintrc.js Normal file
View File

@ -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"
]
}
};

View File

@ -15,8 +15,11 @@
"pg-bricks": "latest"
},
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-plugin-transform-es2015-destructuring": "^6.9.0"
"babel-cli": "latest",
"babel-plugin-transform-es2015-destructuring": "latest",
"babel-plugin-transform-object-rest-spread": "latest",
"eslint": "latest",
"eslint-plugin-react": "latest"
},
"scripts": {
"run": "babel operetta.js | nodejs"