Skip to content

Commit 3d7987a

Browse files
committed
chore: add eslint and prettier
1 parent 2f7ae68 commit 3d7987a

File tree

4 files changed

+971
-10
lines changed

4 files changed

+971
-10
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ["@react-native-community"] };

.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
bracketSpacing: false,
3+
jsxBracketSameLine: true,
4+
singleQuote: true,
5+
trailingComma: "all"
6+
};

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"build": "yarn tsc",
88
"release": "release-it",
9-
"test": "echo \"Error: no test specified\" && exit 1"
9+
"test": "echo \"Error: no test specified\" && exit 1",
10+
"lint": "eslint ."
1011
},
1112
"author": "Nader Dabit",
1213
"license": "ISC",
@@ -15,8 +16,12 @@
1516
"react-native": ">=0.59"
1617
},
1718
"devDependencies": {
19+
"@react-native-community/eslint-config": "^0.0.5",
1820
"@types/react": "^16.9.10",
1921
"@types/react-native": "^0.60.21",
22+
"eslint": "^6.8.0",
23+
"eslint-plugin-prettier": "^3.1.2",
24+
"prettier": "^1.19.1",
2025
"release-it": "^12.3.5",
2126
"typescript": "^3.6.4"
2227
},

0 commit comments

Comments
 (0)