Skip to content

Commit 096e46e

Browse files
authored
fix: address high security vulns reported by Dependabot (#74)
1 parent 7ad6afd commit 096e46e

5 files changed

Lines changed: 1609 additions & 1354 deletions

File tree

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc

Lines changed: 0 additions & 29 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import oclif from 'eslint-config-oclif'
2+
3+
export default [
4+
...oclif,
5+
{
6+
ignores: [
7+
'./dist',
8+
'./lib',
9+
'**/*.js',
10+
],
11+
},
12+
{
13+
files: [
14+
'**/*.ts',
15+
],
16+
languageOptions: {
17+
parserOptions: {
18+
ecmaFeatures: {
19+
modules: true,
20+
},
21+
ecmaVersion: 6,
22+
sourceType: 'module',
23+
},
24+
},
25+
rules: {
26+
'@stylistic/indent': 'warn',
27+
'@stylistic/lines-between-class-members': 'warn',
28+
'@stylistic/object-curly-spacing': 'warn',
29+
'@stylistic/quotes': 'warn',
30+
'@typescript-eslint/no-explicit-any': 'off',
31+
'@typescript-eslint/no-require-imports': 'warn',
32+
camelcase: 'off',
33+
'import/namespace': 'warn',
34+
'mocha/no-mocha-arrows': 'warn',
35+
'n/shebang': 'warn',
36+
'node/no-missing-import': 'off',
37+
'perfectionist/sort-imports': 'warn',
38+
'perfectionist/sort-intersection-types': 'warn',
39+
'perfectionist/sort-objects': 'warn',
40+
'prefer-arrow-callback': 'warn',
41+
'unicorn/import-style': 'warn',
42+
'unicorn/no-array-for-each': 'off',
43+
'unicorn/no-useless-undefined': 'warn',
44+
'unicorn/prefer-node-protocol': 'warn',
45+
'unicorn/prefer-number-properties': 'warn',
46+
'unicorn/prefer-string-replace-all': 'warn',
47+
},
48+
},
49+
]

package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@
2626
"@types/sinon": "^17.0.4",
2727
"@types/supports-color": "^8.1.3",
2828
"chai": "^4.4.1",
29-
"eslint": "^8.57.0",
30-
"eslint-config-oclif": "^5.2.2",
31-
"eslint-config-oclif-typescript": "^3.1.14",
32-
"eslint-plugin-mocha": "^10.5.0",
33-
"mocha": "^11.1.0",
29+
"eslint": "^9",
30+
"eslint-config-oclif": "^6.0.144",
31+
"eslint-plugin-mocha": "^11.2.0",
32+
"mocha": "^11",
3433
"nock": "^14.0.0",
3534
"nyc": "^17.1.0",
36-
"oclif": "4.22.73",
35+
"oclif": "4.22.81",
3736
"sinon": "^19.0.2",
3837
"stdout-stderr": "0.1.13",
3938
"strip-ansi": "^6.0.1",
@@ -77,10 +76,14 @@
7776
"repository": "heroku/heroku-slugs",
7877
"scripts": {
7978
"build": "rm -rf dist && tsc -b",
80-
"lint": "eslint . --ext .ts --config .eslintrc",
79+
"lint": "eslint .",
8180
"postpack": "rm -f oclif.manifest.json",
81+
"posttest": "yarn lint",
8282
"prepack": "yarn build && oclif manifest && oclif readme",
8383
"test": "nyc mocha --forbid-only \"test/**/*.test.ts\"",
8484
"version": "oclif readme && git add README.md"
85+
},
86+
"resolutions": {
87+
"serialize-javascript": "^7.0.3"
8588
}
8689
}

0 commit comments

Comments
 (0)