Skip to content

Commit

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

* chore: fix build step in workflow

* fix: remove irrelevant changes
  • Loading branch information
saikumarrs authored Nov 6, 2024
1 parent 232b33c commit c4e472c
Show file tree
Hide file tree
Showing 18 changed files with 20,937 additions and 26,722 deletions.
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

0 comments on commit c4e472c

Please sign in to comment.