Skip to content

Commit 0d74e90

Browse files
authored
Re-enable the audit tools step and update dependencies (#815)
* update package versions * run audit * fix eslint config * linter updates * re-enable audit * update timeouts test * pass done into callback * fix format
1 parent 8dc2d6e commit 0d74e90

File tree

19 files changed

+10849
-13537
lines changed

19 files changed

+10849
-13537
lines changed

.eslintignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
packages/*/node_modules/
3-
packages/*/lib/
3+
packages/*/lib/
4+
packages/glob/__tests__/_temp

.eslintrc.json

+18-6
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/recommended"],
44
"parser": "@typescript-eslint/parser",
55
"parserOptions": {
66
"ecmaVersion": 9,
@@ -9,20 +9,34 @@
99
},
1010
"rules": {
1111
"eslint-comments/no-use": "off",
12+
"github/no-then": "off",
1213
"import/no-namespace": "off",
14+
"no-shadow": "off",
1315
"no-unused-vars": "off",
16+
"no-undef": "off",
1417
"@typescript-eslint/no-unused-vars": "error",
1518
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
1619
"@typescript-eslint/no-require-imports": "error",
1720
"@typescript-eslint/array-type": "error",
1821
"@typescript-eslint/await-thenable": "error",
19-
"@typescript-eslint/ban-ts-ignore": "error",
22+
"@typescript-eslint/ban-ts-comment": "error",
2023
"camelcase": "off",
2124
"@typescript-eslint/camelcase": "off",
22-
"@typescript-eslint/class-name-casing": "error",
25+
"@typescript-eslint/consistent-type-assertions": "off",
2326
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
2427
"@typescript-eslint/func-call-spacing": ["error", "never"],
25-
"@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"],
28+
"@typescript-eslint/naming-convention": [
29+
"error",
30+
{
31+
"format": null,
32+
"filter": {
33+
// you can expand this regex as you find more cases that require quoting that you want to allow
34+
"regex": "^[A-Z][A-Za-z]*$",
35+
"match": true
36+
},
37+
"selector": "memberLike"
38+
}
39+
],
2640
"@typescript-eslint/no-array-constructor": "error",
2741
"@typescript-eslint/no-empty-interface": "error",
2842
"@typescript-eslint/no-explicit-any": "error",
@@ -32,15 +46,13 @@
3246
"@typescript-eslint/no-misused-new": "error",
3347
"@typescript-eslint/no-namespace": "error",
3448
"@typescript-eslint/no-non-null-assertion": "warn",
35-
"@typescript-eslint/no-object-literal-type-assertion": "error",
3649
"@typescript-eslint/no-unnecessary-qualifier": "error",
3750
"@typescript-eslint/no-unnecessary-type-assertion": "error",
3851
"@typescript-eslint/no-useless-constructor": "error",
3952
"@typescript-eslint/no-var-requires": "error",
4053
"@typescript-eslint/prefer-for-of": "warn",
4154
"@typescript-eslint/prefer-function-type": "warn",
4255
"@typescript-eslint/prefer-includes": "error",
43-
"@typescript-eslint/prefer-interface": "error",
4456
"@typescript-eslint/prefer-string-starts-ends-with": "error",
4557
"@typescript-eslint/promise-function-async": "error",
4658
"@typescript-eslint/require-array-sort-compare": "error",

.github/workflows/audit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
- name: Bootstrap
3232
run: npm run bootstrap
3333

34-
# - name: audit tools #disabled while we wait for https://github.com/actions/toolkit/issues/539
35-
# run: npm audit --audit-level=moderate
34+
- name: audit tools #disabled while we wait for https://github.com/actions/toolkit/issues/539
35+
run: npm audit --audit-level=moderate
3636

3737
- name: audit packages
3838
run: npm run audit-all

0 commit comments

Comments
 (0)