chore: setup eslint and prettier

This commit is contained in:
Vinicius Souza 2024-10-25 13:42:00 -03:00
parent 965c0c157a
commit 4115e20b66
4 changed files with 1152 additions and 1 deletions

8
.eslintrc.js Normal file
View file

@ -0,0 +1,8 @@
module.exports = {
extends: ['expo', 'prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'error',
},
};

6
.prettierrc.json Normal file
View file

@ -0,0 +1,6 @@
{
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"bracketSameLine": true
}

View file

@ -6,7 +6,8 @@
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
"web": "expo start --web",
"lint": "eslint ."
},
"dependencies": {
"@expo-google-fonts/roboto": "^0.2.3",
@ -29,6 +30,11 @@
"devDependencies": {
"@babel/core": "^7.20.0",
"@types/react": "~18.2.45",
"eslint": "^8.57.0",
"eslint-config-expo": "~7.1.2",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.3.3",
"react-native-svg-transformer": "^1.5.0",
"typescript": "^5.1.3"
},

File diff suppressed because it is too large Load diff