Skip to content

Commit 2461056

Browse files
authored
Audit Fix (actions#1480)
* fixing audit failures * replacing lerna bootstrap with npm command * audit fix for cache and tool-cache * updating tunnel * upgrading core packages * re-adding tunnel as prod dep * updating dependencies * updating exec deps * updating exec io package * . * Revert * updating packages * adding core as dep * updating learna config * updating lerna commands * Removing audit failing packages in cache + tool-cache * updating contribution bootstrap description * updating libraries * prettier lint * hiding stricter rules * updating prettier command * Removing unknown flag * Adding eslint prettier * ignoring sym links * updating ignore path * updating prettier rules * changing prettier + github ver * updating ts and ignores * Revert ts * Adding unknown ignores * downgrading lerna * . * adding nx * Adding lint auto lint rules * updating eslint ignore for glob packages * Adding subdirs to ignore * adding flag for ignore pattern in linter * Expanding ignore regex * Adding ignore rules * adding another ignore pattern to tsconfig eslint * adding ignore pattern to eslintrc * syncing package-json * updating traverse * . * test adding core and http client to base package * running npm ci * adding tsconfig paths * adding base URL * Adding explicit path to core and http-client * editing tsc call * updating artifact packages * force build * updating lock file version * updating lock file version * upgrading node version * Adding babel traverse back * fixing build issue * fixing typescript ver * updating package json * Adding ignore for artifact test * adding ignore to flags * unlink after test completes * cleanup * merge + package edit
1 parent c4f5ce2 commit 2461056

37 files changed

+9129
-25888
lines changed

.eslintrc.json

+44-8
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,63 @@
11
{
2-
"plugins": ["jest", "@typescript-eslint"],
3-
"extends": ["plugin:github/recommended"],
2+
"plugins": [
3+
"jest",
4+
"@typescript-eslint",
5+
"prettier"
6+
],
7+
"extends": [
8+
"plugin:github/recommended",
9+
"plugin:prettier/recommended"
10+
],
411
"parser": "@typescript-eslint/parser",
512
"parserOptions": {
613
"ecmaVersion": 9,
714
"sourceType": "module",
815
"project": "./tsconfig.eslint.json"
916
},
1017
"rules": {
18+
"prettier/prettier": [
19+
"error",
20+
{
21+
"endOfLine": "auto"
22+
}
23+
],
1124
"eslint-comments/no-use": "off",
1225
"github/no-then": "off",
1326
"import/no-namespace": "off",
1427
"no-shadow": "off",
1528
"no-unused-vars": "off",
29+
"i18n-text/no-en": "off",
30+
"filenames/match-regex": "off",
31+
"import/no-commonjs": "off",
32+
"import/named": "off",
33+
"no-sequences": "off",
34+
"import/no-unresolved": "off",
1635
"no-undef": "off",
36+
"no-only-tests/no-only-tests": "off",
1737
"@typescript-eslint/no-unused-vars": "error",
18-
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
38+
"@typescript-eslint/explicit-member-accessibility": [
39+
"error",
40+
{
41+
"accessibility": "no-public"
42+
}
43+
],
1944
"@typescript-eslint/no-require-imports": "error",
2045
"@typescript-eslint/array-type": "error",
2146
"@typescript-eslint/await-thenable": "error",
2247
"@typescript-eslint/ban-ts-comment": "error",
2348
"camelcase": "off",
2449
"@typescript-eslint/camelcase": "off",
2550
"@typescript-eslint/consistent-type-assertions": "off",
26-
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
27-
"@typescript-eslint/func-call-spacing": ["error", "never"],
51+
"@typescript-eslint/explicit-function-return-type": [
52+
"error",
53+
{
54+
"allowExpressions": true
55+
}
56+
],
57+
"@typescript-eslint/func-call-spacing": [
58+
"error",
59+
"never"
60+
],
2861
"@typescript-eslint/naming-convention": [
2962
"error",
3063
{
@@ -56,15 +89,18 @@
5689
"@typescript-eslint/prefer-string-starts-ends-with": "error",
5790
"@typescript-eslint/promise-function-async": "error",
5891
"@typescript-eslint/require-array-sort-compare": "error",
59-
"@typescript-eslint/restrict-plus-operands": "error",
6092
"semi": "off",
61-
"@typescript-eslint/semi": ["error", "never"],
93+
"@typescript-eslint/semi": [
94+
"error",
95+
"never"
96+
],
6297
"@typescript-eslint/type-annotation-spacing": "error",
6398
"@typescript-eslint/unbound-method": "error"
6499
},
100+
"ignorePatterns": "packages/glob/__tests__/_temp/**/",
65101
"env": {
66102
"node": true,
67103
"es6": true,
68104
"jest/globals": true
69105
}
70-
}
106+
}

.github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Note that before a PR will be accepted, you must ensure:
2828

2929
### Useful Scripts
3030

31-
- `npm run bootstrap` This runs `lerna bootstrap` which will install dependencies in this repository's packages and cross-link packages where necessary.
31+
- `npm run bootstrap` This runs `lerna exec -- npm install` which will install dependencies in this repository's packages and cross-link packages where necessary.
3232
- `npm run build` This compiles TypeScript code in each package (this is especially important if one package relies on changes in another when you're running tests). This is just an alias for `lerna run tsc`.
3333
- `npm run format` This checks that formatting has been applied with Prettier.
3434
- `npm test` This runs all Jest tests in all packages in this repository.

.github/workflows/cache-windows-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
run: |
2424
rm "C:\Program Files\Git\usr\bin\tar.exe"
2525
26-
- name: Set Node.js 12.x
26+
- name: Set Node.js 16.x
2727
uses: actions/setup-node@v1
2828
with:
29-
node-version: 12.x
29+
node-version: 16.x
3030

3131
# In order to save & restore cache from a shell script, certain env variables need to be set that are only available in the
3232
# node context. This runs a local action that gets and sets the necessary env variables that are needed

.prettierignore

+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/**/

.prettierrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"trailingComma": "none",
88
"bracketSpacing": false,
99
"arrowParens": "avoid",
10-
"parser": "typescript"
10+
"parser": "typescript",
11+
"endOfLine": "auto"
1112
}

lerna.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": [
3-
"packages/*"
3+
"packages/**/*"
44
],
55
"version": "independent"
6-
}
6+
}

nx.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"tasksRunnerOptions": {
3+
"default": {
4+
"runner": "nx/tasks-runners/default",
5+
"options": {
6+
"cacheableOperations": []
7+
}
8+
}
9+
},
10+
"affected": {
11+
"defaultBase": "master"
12+
},
13+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
14+
"namedInputs": {
15+
"default": [
16+
"{projectRoot}/**/*",
17+
"sharedGlobals"
18+
],
19+
"sharedGlobals": [],
20+
"production": [
21+
"default"
22+
]
23+
}
24+
}

0 commit comments

Comments
 (0)