Skip to content

Commit

Permalink
Add prettier config to detox folder
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanFoster committed Sep 18, 2017
1 parent d882d0e commit fd304ec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
36 changes: 13 additions & 23 deletions detox/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@
"react-native",
"babel",
"promise",
"prettier",
"jest"
],
"extends": [
"prettier",
"prettier/react"
],
"rules": {
/*
* possible errors
Expand Down Expand Up @@ -205,13 +210,6 @@
"id-blacklist": 0,
"id-length": 0,
"id-match": 0,
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"jsx-quotes": "error",
"key-spacing": [
"error",
Expand Down Expand Up @@ -295,17 +293,9 @@
"no-underscore-dangle": 0,
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": [
"error",
"never"
],
"one-var": 0,
"one-var-declaration-per-line": 0,
"operator-assignment": 0,
"operator-linebreak": [
"error",
"before"
],
"padded-blocks": [
"error",
"never"
Expand Down Expand Up @@ -350,10 +340,6 @@
* ECMAScript 6
*/
"arrow-body-style": 0,
"arrow-parens": [
"error",
"always"
],
"arrow-spacing": [
"error",
{
Expand Down Expand Up @@ -394,12 +380,16 @@
/*
* babel plugin
*/
"babel/object-curly-spacing": [
"error",
"never"
],
"babel/object-shorthand": 0,
"babel/no-await-in-loop": 0,
/*
* prettier plugin
*/
"prettier/prettier": [
"error", {
"useTabs": true
}
],
/*
* promise
*/
Expand Down
3 changes: 3 additions & 0 deletions detox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,17 @@
"babel-register": "^6.8.0",
"colors": "^1.1.2",
"eslint": "^4.1.1",
"eslint-config-prettier": "2.5.0",
"eslint-plugin-babel": "4.x.x",
"eslint-plugin-jest": "^20.0.3",
"eslint-plugin-prettier": "2.2.0",
"eslint-plugin-promise": "^3.4.2",
"eslint-plugin-react": "^7.1.0",
"eslint-plugin-react-native": "^2.3.2",
"jest": "^20.0.4",
"minimist": "^1.2.0",
"mockdate": "^2.0.1",
"prettier": "1.7.0",
"shelljs": "^0.7.3",
"ttab": "^0.3.1"
},
Expand Down

0 comments on commit fd304ec

Please sign in to comment.