Skip to content

Commit 0e77a3f

Browse files
author
Gage Moore
committed
fix: vulnerability with @babel/traverse
1 parent d4154f5 commit 0e77a3f

File tree

3 files changed

+1972
-2482
lines changed

3 files changed

+1972
-2482
lines changed

.eslintrc.json

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"plugins": ["jest", "@typescript-eslint"],
3-
"extends": ["plugin:github/es6"],
3+
"extends": ["plugin:github/typescript"],
44
"parser": "@typescript-eslint/parser",
55
"parserOptions": {
66
"ecmaVersion": 9,
@@ -16,13 +16,30 @@
1616
"@typescript-eslint/no-require-imports": "error",
1717
"@typescript-eslint/array-type": "error",
1818
"@typescript-eslint/await-thenable": "error",
19-
"@typescript-eslint/ban-ts-ignore": "error",
19+
"@typescript-eslint/ban-ts-comment": ["error", {
20+
"ts-ignore": true,
21+
"ts-check": "allow-with-description",
22+
"ts-expect-error": "allow-with-description",
23+
"ts-nocheck": "allow-with-description"
24+
}],
2025
"camelcase": "off",
21-
"@typescript-eslint/camelcase": "warn",
22-
"@typescript-eslint/class-name-casing": "error",
26+
"@typescript-eslint/naming-convention": [
27+
"warn",
28+
{
29+
"selector": ["variable", "function", "parameter", "class"],
30+
"format": ["camelCase"]
31+
},
32+
{
33+
"selector": "typeParameter",
34+
"format": ["PascalCase"],
35+
"custom": {
36+
"regex": "^[A-Z][A-Za-z]*$",
37+
"match": true
38+
}
39+
}
40+
],
2341
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
2442
"@typescript-eslint/func-call-spacing": ["error", "never"],
25-
"@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"],
2643
"@typescript-eslint/no-array-constructor": "error",
2744
"@typescript-eslint/no-empty-interface": "error",
2845
"@typescript-eslint/no-explicit-any": "error",
@@ -32,15 +49,15 @@
3249
"@typescript-eslint/no-misused-new": "error",
3350
"@typescript-eslint/no-namespace": "error",
3451
"@typescript-eslint/no-non-null-assertion": "warn",
35-
"@typescript-eslint/no-object-literal-type-assertion": "error",
52+
"@typescript-eslint/consistent-type-assertions": "error",
3653
"@typescript-eslint/no-unnecessary-qualifier": "error",
3754
"@typescript-eslint/no-unnecessary-type-assertion": "error",
3855
"@typescript-eslint/no-useless-constructor": "error",
3956
"@typescript-eslint/no-var-requires": "error",
4057
"@typescript-eslint/prefer-for-of": "warn",
4158
"@typescript-eslint/prefer-function-type": "warn",
4259
"@typescript-eslint/prefer-includes": "error",
43-
"@typescript-eslint/prefer-interface": "error",
60+
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
4461
"@typescript-eslint/prefer-string-starts-ends-with": "error",
4562
"@typescript-eslint/promise-function-async": "error",
4663
"@typescript-eslint/require-array-sort-compare": "error",

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"@tsconfig/node16": "^1.0.3",
2323
"@types/jest": "^29.2.1",
2424
"@types/node": "^16.18.3",
25-
"@typescript-eslint/parser": "^2.8.0",
25+
"@typescript-eslint/parser": "^7.0.2",
2626
"@vercel/ncc": "^0.34.0",
27-
"eslint": "^5.16.0",
28-
"eslint-plugin-github": "^2.0.0",
27+
"eslint": "^8.56.0",
28+
"eslint-plugin-github": "^4.10.1",
2929
"eslint-plugin-jest": "^22.21.0",
3030
"eslint-plugin-prettier": "^3.4.1",
3131
"jest": "^29.2.2",

0 commit comments

Comments
 (0)