Adding eslinrc

This commit is contained in:
Belen Curcio
2017-03-31 14:31:44 -03:00
parent 0a77fe92bd
commit c4decbd844
2 changed files with 25 additions and 13 deletions
+2 -13
View File
@@ -4,18 +4,9 @@
"node": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
"ecmaVersion": 2017
},
"plugins": [
"react"
],
"rules": {
"indent": ["error",
2
@@ -62,8 +53,6 @@
}],
"newline-per-chained-call": ["error", {
"ignoreChainWithDepth": 2
}],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error"
}]
}
}
@@ -0,0 +1,23 @@
{
"env": {
"browser": true,
"es6": true,
"mocha": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"parser": "babel-eslint",
"plugins": [
"react"
],
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }]
}
}