Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: vulnerabilities in dependencies #157

Merged
merged 3 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"presets": ["env"],
"plugins": ["transform-es2015-spread", "transform-object-rest-spread"]
}
"presets": ["@babel/env"]
}
6 changes: 3 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.husky/
lib/
node_modules/
reports/
stats/
*.json
*.md
*.d.ts
.nyc_output
examples/
examples/
dist/
coverage/
76 changes: 41 additions & 35 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,47 @@
{
"env": {
"browser": true,
"node": true,
"es2020": true,
"jest": true
},
"extends": ["airbnb-base", "plugin:sonarjs/recommended", "prettier", "plugin:compat/recommended"],
"plugins": ["unicorn", "compat"],
"parser": "@babel/eslint-parser",
"globals": {},
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"rules": {
"import/prefer-default-export": "off",
"unicorn/filename-case": [
"error",
{ "cases": { "camelCase": true, "pascalCase": true, "kebabCase": true } }
],
"unicorn/no-instanceof-array": "error",
"unicorn/no-static-only-class": "error",
"unicorn/consistent-destructuring": "error",
"unicorn/better-regex": "error",
"unicorn/no-for-loop": "error",
"unicorn/prefer-array-some": "error",
"unicorn/explicit-length-check": "error",
"unicorn/prefer-array-find": "error",
"unicorn/no-lonely-if": "error",
"unicorn/prefer-includes": "error",
"unicorn/prefer-array-flat-map": "error",
"unicorn/no-useless-spread": "error",
"unicorn/no-useless-length-check": "error",
"unicorn/prefer-export-from": "error",
"sonarjs/prefer-immediate-return": "off",
"sonarjs/no-nested-template-literals": "off",
"sonarjs/max-switch-cases": "off",
"sonarjs/cognitive-complexity": ["error", 40],
"compat/compat": "warn"
}
"overrides": [
{
"files": ["*.js", "*.ts"],
"extends": [
"airbnb-base",
"plugin:sonarjs/recommended-legacy",
"prettier",
"plugin:compat/recommended"
],
"plugins": ["unicorn", "compat"],
"parser": "@babel/eslint-parser",
"globals": {},
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"rules": {
"import/prefer-default-export": "off",
"unicorn/filename-case": [
"error",
{ "cases": { "camelCase": true, "pascalCase": true, "kebabCase": true } }
],
"unicorn/no-instanceof-array": "error",
"unicorn/no-static-only-class": "error",
"unicorn/consistent-destructuring": "error",
"unicorn/better-regex": "error",
"unicorn/no-for-loop": "error",
"unicorn/prefer-array-some": "error",
"unicorn/explicit-length-check": "error",
"unicorn/prefer-array-find": "error",
"unicorn/no-lonely-if": "error",
"unicorn/prefer-includes": "error",
"unicorn/prefer-array-flat-map": "error",
"unicorn/no-useless-spread": "error",
"unicorn/no-useless-length-check": "error",
"unicorn/prefer-export-from": "error",
"compat/compat": "warn"
}
}
]
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Bug report
about: Create a report to help us improve
title: "BUG : <Title>"
title: 'BUG : <Title>'
labels: bug, open source
assignees: MoumitaM
---
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-and-quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ jobs:

- name: Generate build
run: |
npm run build
npm run build:cjs
npm run build:esm
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run commit-msg
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run pre-commit
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.15.1
22.11.0
Loading
Loading