Skip to content

Commit

Permalink
fix: security vulnerabilities (#33)
Browse files Browse the repository at this point in the history
* fix: security vulnerabilities

* fix: commitlint config
  • Loading branch information
charIeszhao authored Dec 7, 2024
1 parent 6776880 commit 51622bc
Show file tree
Hide file tree
Showing 7 changed files with 1,073 additions and 886 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ yarn-error.*

# typescript
*.tsbuildinfo

# misc
.history
lefthook.yml
9 changes: 0 additions & 9 deletions commitlint.config.cjs

This file was deleted.

11 changes: 11 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import conventional from '@commitlint/config-conventional';
import { UserConfig } from '@commitlint/types';

const config: UserConfig = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', [...conventional.rules['type-enum'][2], 'release']],
},
};

export default config;
14 changes: 4 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.1",
"@commitlint/types": "^18.6.1",
"husky": "^9.0.11"
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@commitlint/types": "^19.5.0",
"husky": "^9.1.7"
},
"engines": {
"pnpm": "^9"
},
"pnpm": {
"overrides": {
"@expo/config>semver@^7": "^7.6.0",
"@expo/image-utils>semver@^7": "^7.6.0"
}
}
}
8 changes: 4 additions & 4 deletions packages/rn-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
"@expo/metro-runtime": "~3.2.1",
"@logto/rn": "workspace:^",
"@react-native-async-storage/async-storage": "^1.23.1",
"expo": "~51.0.8",
"expo": "~51.0.38",
"expo-crypto": "^13.0.2",
"expo-secure-store": "^13.0.1",
"expo-status-bar": "~1.12.1",
"expo-web-browser": "^13.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native": "0.74.1",
"react-native-web": "~0.19.6"
},
"devDependencies": {
"@babel/core": "^7.24.4",
"@silverhand/eslint-config": "^6.0.1",
"@silverhand/eslint-config-react": "^6.0.2",
"@types/react": "~18.2.79",
"@types/react": "~18.3.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"stylelint": "^15.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"prettier": "^3.2.5",
"stylelint": "^15.0.0",
"typescript": "^5.4.5",
"vitest": "^1.5.0"
"vitest": "^2.1.8"
},
"eslintConfig": {
"extends": "@silverhand/react"
Expand Down
Loading

0 comments on commit 51622bc

Please sign in to comment.