Skip to content

Commit

Permalink
fix(example): 🔥 remove high vulnerability dependencies
Browse files Browse the repository at this point in the history
TaffyDB can allow access to any data

TaffyDB can allow access to any data items in the DB #2
  • Loading branch information
AndrewDongminYoo committed Apr 7, 2023
1 parent cbe50f3 commit 1cfdc7e
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 216 deletions.
15 changes: 1 addition & 14 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
'plugin:react/recommended',
'plugin:react-hooks/recommended',
],
plugins: ['@typescript-eslint', 'jsdoc'],
plugins: ['@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
Expand All @@ -30,19 +30,6 @@ module.exports = {
ignoreComments: true,
},
],
// JsDoc
'jsdoc/check-param-names': 'error',
'jsdoc/check-tag-names': 'warn', // test
'jsdoc/check-types': 'warn', // test
'jsdoc/newline-after-description': 'error',
'jsdoc/require-description-complete-sentence': 'warn', // test
'jsdoc/require-example': 'warn', // test
'jsdoc/require-hyphen-before-param-description': 'warn', // test
'jsdoc/require-param': 'error',
'jsdoc/require-param-description': 'error',
'jsdoc/require-param-type': 'error',
'jsdoc/require-returns-description': 'warn', // test
'jsdoc/require-returns-type': 'error',
'comma-dangle': [
'error',
{
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.19.0
18.14.1
57 changes: 35 additions & 22 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
pre-push:
commands:
packages-audit:
tags: check vulnerability
run: yarn audit

pre-commit:
parallel: true
commands:
lint:
files: git diff --name-only @{push}
glob: '*.{js,ts,jsx,tsx}'
run: npx eslint {files}
types:
files: git diff --name-only @{push}
glob: '*.{js,ts, jsx, tsx}'
run: npx tsc --noEmit
commit-msg:
parallel: true
commands:
commitlint:
run: npx commitlint --edit
# EXAMPLE USAGE:
#
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
#
# pre-push:
# commands:
# packages-audit:
# tags: frontend security
# run: yarn audit
# gems-audit:
# tags: backend security
# run: bundle audit
#
# pre-commit:
# parallel: true
# commands:
# eslint:
# glob: "*.{js,ts,jsx,tsx}"
# run: yarn eslint {staged_files}
# rubocop:
# tags: backend style
# glob: "*.rb"
# exclude: "application.rb|routes.rb"
# run: bundle exec rubocop --force-exclusion {all_files}
# govet:
# tags: backend style
# files: git ls-files -m
# glob: "*.go"
# run: go vet {files}
# scripts:
# "hello.js":
# runner: node
# "any.go":
# runner: go run
27 changes: 3 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@
"android": "yarn example run-android",
"ios": "yarn example run-ios",
"example": "yarn --cwd example",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"format": "prettier --write \"**/*.{js,ts,tsx}\"",
"prepack": "bob build && yarn build-docs",
"build-docs": "./node_modules/.bin/jsdoc -c .jsdoc-config.json",
"lint": "eslint . --fix --no-error-on-unmatched-pattern",
"format": "prettier \"**/*.{ts,js,jsx,tsx}\" --check --write",
"prepack": "bob build",
"release:beta": "yarn release --preRelease=beta --no-npm",
"release:dry": "yarn release --dry-run --no-npm",
"release:info": "yarn release --release-version",
Expand Down Expand Up @@ -98,34 +97,14 @@
"eslint-plugin-jsdoc": "^40.1.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"jsdoc": "^3.6.3",
"pod-install": "^0.1.38",
"postman-jsdoc-theme": "^0.0.3",
"prettier": "^2.8.7",
"react": "18.2.0",
"react-native": "0.71.4",
"react-native-builder-bob": "^0.20.4",
"release-it": "^15.9.3",
"tsd-jsdoc": "^2.5.0",
"typescript": "^5.0.2"
},
"peerDependenciesMeta": {
"@babel/core": {
"optional": true
},
"react": {
"optional": false
},
"react-native": {
"optional": false
}
},
"peerDependencies": {
"@babel/core": "*",
"@babel/preset-env": "^7.1.6",
"react": "^18.2.0",
"react-native": "^0.71.4"
},
"engines": {
"node": ">= 16.0.0"
},
Expand Down
Loading

0 comments on commit 1cfdc7e

Please sign in to comment.