Skip to content

Commit 740a11a

Browse files
victorferreiralucianomlima
authored andcommitted
Add support to prettier
closes #1
1 parent 145a8a4 commit 740a11a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.eslintrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"parser": "babel-eslint",
1212
"plugins": [
1313
"react",
14-
"react-native"
14+
"react-native",
15+
"prettier"
1516
],
1617
"rules": {
1718
"arrow-parens": ["error", "as-needed"],
@@ -60,6 +61,8 @@
6061
"ignorePureComponents": true
6162
}],
6263

63-
"react-native/no-inline-styles": "error"
64+
"react-native/no-inline-styles": "error",
65+
66+
"prettier/prettier": "error"
6467
}
6568
}

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ To inject custom scripts and remove unnecessary files.
4545

4646
### Roadmap
4747

48-
- [ ] Add Prettier
4948
- [ ] Add Flow
5049
- [ ] Add Enzyme
5150
- [ ] Add Husky

devDependencies.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
"eslint-plugin-jsx-a11y": "^6.0.3",
1111
"eslint-plugin-react": "^7.9.1",
1212
"eslint-plugin-react-native": "^3.2.1",
13-
"lint-staged": "^7.3.0"
13+
"lint-staged": "^7.3.0",
14+
"prettier": "1.14.3"
1415
}

0 commit comments

Comments
 (0)