Skip to content

Commit

Permalink
chore: add eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Naturalclar committed Jan 1, 2020
1 parent 2f7ae68 commit 3d7987a
Show file tree
Hide file tree
Showing 4 changed files with 971 additions and 10 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ["@react-native-community"] };
6 changes: 6 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: "all"
};
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"build": "yarn tsc",
"release": "release-it",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint ."
},
"author": "Nader Dabit",
"license": "ISC",
Expand All @@ -15,8 +16,12 @@
"react-native": ">=0.59"
},
"devDependencies": {
"@react-native-community/eslint-config": "^0.0.5",
"@types/react": "^16.9.10",
"@types/react-native": "^0.60.21",
"eslint": "^6.8.0",
"eslint-plugin-prettier": "^3.1.2",
"prettier": "^1.19.1",
"release-it": "^12.3.5",
"typescript": "^3.6.4"
},
Expand Down
Loading

0 comments on commit 3d7987a

Please sign in to comment.