Skip to content

Commit

Permalink
Merge branch 'main' into fix-postUpdateOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Aug 28, 2021
2 parents 17f1702 + 90a50d6 commit de38a32
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 176 deletions.
28 changes: 27 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,39 @@ module.exports = {
},
},
{
files: ['**/*.mjs'],
files: ['**/*.{js,mjs}'],

rules: {
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/restrict-template-expressions': 0,
},
},
{
files: ['tools/**/*.{ts,js,mjs}'],
env: {
node: true,
},
rules: {
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: true },
],
},
},
{
files: ['tools/**/*.js'],
rules: {
// need commonjs
'@typescript-eslint/no-var-requires': 'off',
},
},
{
files: ['*.mjs'],
rules: {
// esm always requires extensions
'import/extensions': 0,
},
},
],
};
2 changes: 1 addition & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Lint
run: |
yarn ls-lint
yarn eslint
yarn eslint -f gha
yarn prettier
yarn markdown-lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
- name: Lint
run: |
yarn ls-lint
yarn eslint -f ./tmp/tools/eslint-gh-reporter.js
yarn eslint -f gha
yarn prettier
yarn markdown-lint
Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const config: InitialOptionsTsJest = {
},
},
modulePathIgnorePatterns: ['<rootDir>/dist/', '/__fixtures__/'],
reporters: ['default', './tmp/tools/jest-gh-reporter.js'],
reporters: ci ? ['default', 'jest-github-actions-reporter'] : ['default'],
setupFilesAfterEnv: ['jest-extended', '<rootDir>/test/setup.ts'],
snapshotSerializers: ['<rootDir>/test/newline-snapshot-serializer.ts'],
testEnvironment: 'node',
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"prepare:husky": "husky install",
"prepare:generate": "run-s generate:*",
"prepare:re2": "node tools/check-re2.mjs",
"prepare:tools": "tsc -p tools",
"prestart": "run-s generate:* ",
"pretest": "run-s generate:* ",
"prettier": "prettier --check \"**/*.{ts,js,mjs,json,md}\"",
Expand Down Expand Up @@ -144,10 +143,10 @@
"dequal": "2.0.2",
"detect-indent": "6.1.0",
"email-addresses": "4.0.0",
"extract-zip": "2.0.1",
"emoji-regex": "9.2.2",
"emojibase": "5.2.0",
"emojibase-regex": "5.1.3",
"extract-zip": "2.0.1",
"fast-safe-stringify": "2.0.8",
"find-up": "5.0.0",
"fs-extra": "10.0.0",
Expand Down Expand Up @@ -225,7 +224,7 @@
"@types/markdown-table": "2.0.0",
"@types/moo": "0.5.5",
"@types/nock": "10.0.3",
"@types/node": "14.17.10",
"@types/node": "14.17.11",
"@types/node-emoji": "1.8.1",
"@types/parse-link-header": "1.0.0",
"@types/registry-auth-token": "4.2.1",
Expand All @@ -244,6 +243,7 @@
"eslint": "7.32.0",
"eslint-config-airbnb-typescript": "12.3.1",
"eslint-config-prettier": "8.3.0",
"eslint-formatter-gha": "1.2.0",
"eslint-plugin-import": "2.24.1",
"eslint-plugin-jest": "24.4.0",
"eslint-plugin-promise": "5.1.0",
Expand All @@ -252,12 +252,13 @@
"husky": "7.0.1",
"jest": "27.0.6",
"jest-extended": "0.11.5",
"jest-github-actions-reporter": "1.0.3",
"jest-junit": "12.2.0",
"jest-mock-extended": "1.0.18",
"jest-silent-reporter": "0.5.0",
"markdownlint-cli2": "0.2.0",
"mockdate": "3.0.5",
"nock": "13.1.1",
"nock": "13.1.2",
"npm-run-all": "4.1.5",
"prettier": "2.3.2",
"pretty-quick": "3.1.1",
Expand Down
46 changes: 0 additions & 46 deletions tools/eslint-gh-reporter.ts

This file was deleted.

78 changes: 0 additions & 78 deletions tools/jest-gh-reporter.ts

This file was deleted.

20 changes: 0 additions & 20 deletions tools/package.json

This file was deleted.

15 changes: 0 additions & 15 deletions tools/tsconfig.json

This file was deleted.

32 changes: 23 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# yarn lockfile v1


"@actions/core@1.5.0":
"@actions/core@1.5.0", "@actions/core@^1.2.0", "@actions/core@^1.2.6":
version "1.5.0"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.5.0.tgz#885b864700001a1b9a6fba247833a036e75ad9d3"
integrity sha512-eDOLH1Nq9zh+PJlYLqEMkS/jLQxhksPNmUGNBHfa4G+tQmnIhzpctxmchETtVGyBOvXgOVVpYuE40+eS4cUnwQ==
Expand Down Expand Up @@ -1897,10 +1897,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.6.1.tgz#aee62c7b966f55fc66c7b6dfa1d58db2a616da61"
integrity sha512-Sr7BhXEAer9xyGuCN3Ek9eg9xPviCF2gfu9kTfuU2HkTVAMYSDeX40fvpmo72n5nansg3nsBjuQBrsS28r+NUw==

"@types/node@14.17.10":
version "14.17.10"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.10.tgz#93f4b095af275a0427114579c10ec7aa696729d7"
integrity sha512-09x2d6kNBwjHgyh3jOUE2GE4DFoxDriDvWdu6mFhMP1ysynGYazt4ecZmJlL6/fe4Zi2vtYvTvtL7epjQQrBhA==
"@types/node@14.17.11":
version "14.17.11"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.11.tgz#82d266d657aec5ff01ca59f2ffaff1bb43f7bf0f"
integrity sha512-n2OQ+0Bz6WEsUjrvcHD1xZ8K+Kgo4cn9/w94s1bJS690QMUWfJPW/m7CCb7gPkA1fcYwL2UpjXP/rq/Eo41m6w==

"@types/node@^13.7.0":
version "13.13.52"
Expand Down Expand Up @@ -3937,6 +3937,13 @@ eslint-config-prettier@8.3.0:
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz#f7471b20b6fe8a9a9254cc684454202886a2dd7a"
integrity sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==

eslint-formatter-gha@1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/eslint-formatter-gha/-/eslint-formatter-gha-1.2.0.tgz#ce52de9f9b17c65dc138482c0990fd2a158548be"
integrity sha512-teAorPqDzHzzYNCQCptdoYsnc+CZFXYcdB4v3dTi4Yqe8V64aShsbvtvPtYuJnKBoN6AwPzZ9P4D7R0hdQ5bcA==
dependencies:
"@actions/core" "^1.2.6"

eslint-import-resolver-node@^0.3.6:
version "0.3.6"
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz#4048b958395da89668252001dbd9eca6b83bacbd"
Expand Down Expand Up @@ -5619,6 +5626,13 @@ jest-get-type@^27.0.6:
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.0.6.tgz#0eb5c7f755854279ce9b68a9f1a4122f69047cfe"
integrity sha512-XTkK5exIeUbbveehcSR8w0bhH+c0yloW/Wpl+9vZrjzztCPWrxhHwkIFpZzCt71oRBsgxmuUfxEqOYoZI2macg==

jest-github-actions-reporter@1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/jest-github-actions-reporter/-/jest-github-actions-reporter-1.0.3.tgz#6aa2b3a6599352e1043bbe42628a7f73a1ce48c2"
integrity sha512-IwLAKLSWLN8ZVfcfEEv6rfeWb78wKDeOhvOmH9KKXayKsKLSCwceopBcB+KUtwxfB5wYnT8Y9s2eZ+WdhA5yng==
dependencies:
"@actions/core" "^1.2.0"

jest-haste-map@^27.0.6:
version "27.0.6"
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.0.6.tgz#4683a4e68f6ecaa74231679dca237279562c8dc7"
Expand Down Expand Up @@ -6990,10 +7004,10 @@ nice-try@^1.0.4:
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==

nock@13.1.1:
version "13.1.1"
resolved "https://registry.yarnpkg.com/nock/-/nock-13.1.1.tgz#3c830129d4560957f59b6f480a41ddbaf9cf57af"
integrity sha512-YKTR9MjfK3kS9/l4nuTxyYm30cgOExRHzkLNhL8nhEUyU4f8Za/dRxOqjhVT1vGs0svWo3dDnJTUX1qxYeWy5w==
nock@13.1.2:
version "13.1.2"
resolved "https://registry.yarnpkg.com/nock/-/nock-13.1.2.tgz#eedcef89e1c1e8db4e1b3cdcfef91f453f6d32b5"
integrity sha512-BDjokoeGZnBghmvwCcDJ1yM5TDRMRAJfGi1xIzX5rKTlifbyx1oRpAVl3aNhEA3kGbUSEPD7gBLmwVdnQibrIA==
dependencies:
debug "^4.1.0"
json-stringify-safe "^5.0.1"
Expand Down

0 comments on commit de38a32

Please sign in to comment.