Skip to content

Commit

Permalink
fix: added husky
Browse files Browse the repository at this point in the history
  • Loading branch information
vucinatim committed May 29, 2024
1 parent f3c2367 commit 10421f7
Show file tree
Hide file tree
Showing 7 changed files with 775 additions and 674 deletions.
20 changes: 18 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
module.exports = {
root: true,
extends: ['universe/native'],
plugins: ['react-hooks', '@typescript-eslint', 'sonarjs'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:sonarjs/recommended-legacy',
],
parser: '@typescript-eslint/parser',
rules: {
// Ensures props and state inside functions are always up-to-date
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'import/order': 'off',
},
ignorePatterns: [
'.eslintrc.js',
'babel.config.js',
'metro.config.js',
'tailwind.config.js',
'theme.js',
'commitlint.config.js',
],
};
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit $1
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.10.0
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
26 changes: 26 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"cli": {
"version": ">= 3.13.3",
"promptToConfigurePushNotifications": false
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
"android": {
"image": "latest"
},
"ios": {
"image": "latest"
}
}
},
"submit": {
"production": {}
}
}
19 changes: 13 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"@zodios/react": "^10.4.5",
"axios": "^1.6.8",
"clsx": "^2.1.0",
"expo": "~51.0.6",
"expo-constants": "~16.0.1",
"expo-font": "~12.0.5",
"expo": "~51.0.9",
"expo-constants": "~16.0.2",
"expo-font": "~12.0.6",
"expo-linear-gradient": "~13.0.2",
"expo-linking": "~6.3.1",
"expo-localization": "~15.0.3",
Expand Down Expand Up @@ -53,15 +53,22 @@
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@eslint/js": "^9.2.0",
"@types/aes-js": "^3.1.4",
"@types/react": "~18.2.79",
"@types/react-dom": "^18.2.25",
"@types/react-dom": "~18.2.25",
"eslint": "8",
"eslint-config-universe": "^12.0.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-sonarjs": "^1.0.3",
"husky": "^9.0.11",
"openapi-zod-client": "^1.18.1",
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-tailwindcss": "^0.5.13",
"typescript": "~5.3.3"
"typescript": "~5.3.3",
"typescript-eslint": "^7.9.0"
},
"private": true
}
Loading

0 comments on commit 10421f7

Please sign in to comment.