Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hoverinc/hover-javascript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.4.0
Choose a base ref
...
head repository: hoverinc/hover-javascript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 17,995 additions and 11,186 deletions.
  1. +11 −0 .babelrc.json
  2. +13 −0 .depcheckrc.json
  3. +4 −0 .eslintignore
  4. +66 −0 .github/workflows/build.yml
  5. +10 −0 .gitignore
  6. +4 −0 .husky/commit-msg
  7. +4 −0 .husky/pre-commit
  8. +8 −0 .husky/prepare-commit-msg
  9. +15 −0 .kodiak.toml
  10. +1 −1 .node-version
  11. +0 −23 .travis.yml
  12. +363 −0 .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
  13. +9 −0 .yarn/plugins/@yarnpkg/plugin-typescript.cjs
  14. +28 −0 .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
  15. +875 −0 .yarn/releases/yarn-3.8.7.cjs
  16. +16 −0 .yarnrc.yml
  17. +0 −76 CONTRIBUTING.md
  18. +0 −3 Dockerfile
  19. +249 −61 README.md
  20. +1 −0 api/commit.d.ts
  21. +1 −0 api/commit.js
  22. +1 −0 api/depcheck.d.ts
  23. +1 −0 api/depcheck.js
  24. +1 −0 api/index.d.ts
  25. +1 −0 api/index.js
  26. +1 −0 api/test.d.ts
  27. +1 −0 api/test.js
  28. +0 −1 babel.js
  29. +0 −44 codefresh.yml
  30. +10 −14 commitlint.config.js
  31. +0 −1 eslint.js
  32. +1 −0 eslint/index.js
  33. +1 −0 eslint/react-strict.js
  34. +1 −0 eslint/react.js
  35. +1 −0 eslint/strict.js
  36. +10 −3 jest.config.js
  37. +0 −1 lint-staged.js
  38. +1 −0 lint-staged/index.js
  39. +1 −0 lint-staged/no-toc.js
  40. +0 −90 other/CODE_OF_CONDUCT.md
  41. +0 −84 other/MAINTAINING.md
  42. +0 −18 other/USERS.md
  43. +0 −50 other/manual-releases.md
  44. +92 −87 package.json
  45. +2 −0 release.js
  46. +19 −0 renovate.json5
  47. +1 −9 src/__tests__/__snapshots__/index.js.snap
  48. +1 −5 src/__tests__/index.js
  49. +28 −12 src/__tests__/utils.js
  50. +3 −0 src/api/__mocks__/prettier.js
  51. 0 src/api/__tests__/__fixtures__/ls/configs/.foorc.json
  52. 0 src/api/__tests__/__fixtures__/ls/configs/foo.config.js
  53. 0 src/api/__tests__/__fixtures__/ls/configs/foo.js
  54. 0 src/api/__tests__/__fixtures__/ls/configs/foo.setup.ts
  55. 0 src/api/__tests__/__fixtures__/ls/dirs/.baz/.gitkeep
  56. +1 −0 src/api/__tests__/__fixtures__/ls/dirs/.gitignore
  57. 0 src/api/__tests__/__fixtures__/ls/dirs/bar/.gitkeep
  58. 0 src/api/__tests__/__fixtures__/ls/dirs/foo/.gitkeep
  59. 0 src/api/__tests__/__fixtures__/ls/dirs/node_modules/.gitkeep
  60. +44 −0 src/api/__tests__/__snapshots__/api.js.snap
  61. +34 −0 src/api/__tests__/api.js
  62. +54 −0 src/api/__tests__/commit.js
  63. +83 −0 src/api/commit.js
  64. +111 −0 src/api/depcheck/depcheck.js
  65. +4 −0 src/api/depcheck/index.js
  66. +71 −0 src/api/depcheck/specials/babel.js
  67. +3 −0 src/api/depcheck/specials/index.js
  68. +16 −0 src/api/format.js
  69. +3 −0 src/api/index.js
  70. +342 −0 src/config/__tests__/__snapshots__/eslintrc.js.snap
  71. +28 −0 src/config/__tests__/eslintrc.js
  72. +0 −4 src/config/__tests__/umbrella.js
  73. +0 −5 src/config/babel-transform.js
  74. +0 −97 src/config/babelrc.js
  75. +4 −2 src/config/commitlint.config.js
  76. +12 −0 src/config/eslintrc-react-strict.js
  77. +11 −2 src/config/eslintrc-react.js
  78. +27 −0 src/config/eslintrc-strict.js
  79. +1 −1 src/config/eslintrc.js
  80. +104 −0 src/config/helpers/build-eslint.js
  81. +28 −0 src/config/helpers/build-lint-staged.js
  82. +0 −74 src/config/helpers/eslint.js
  83. +22 −0 src/config/helpers/test-match.js
  84. +0 −2 src/config/index.js
  85. +48 −41 src/config/jest.config.js
  86. +3 −0 src/config/lintstagedrc-no-toc.js
  87. +2 −12 src/config/lintstagedrc.js
  88. +2 −1 src/config/prettierrc.js
  89. +11 −0 src/config/release.config.js
  90. +0 −180 src/config/rollup.config.js
  91. +1 −22 src/config/tsconfig.json
  92. +3 −6 src/index.js
  93. +12 −11 src/run-script.js
  94. +1 −0 src/scripts/__mocks__/@hover/javascript/eslint.js
  95. +102 −6 src/scripts/__tests__/__snapshots__/ci-after-success.js.snap
  96. +7 −5 src/scripts/__tests__/__snapshots__/commit-msg.js.snap
  97. +23 −0 src/scripts/__tests__/__snapshots__/commit.js.snap
  98. +3 −3 src/scripts/__tests__/__snapshots__/format.js.snap
  99. +9 −11 src/scripts/__tests__/__snapshots__/lint.js.snap
  100. +123 −0 src/scripts/__tests__/__snapshots__/pre-commit.js.snap
  101. +0 −49 src/scripts/__tests__/__snapshots__/precommit.js.snap
  102. +2 −0 src/scripts/__tests__/__snapshots__/test.js.snap
  103. +49 −14 src/scripts/__tests__/ci-after-success.js
  104. +9 −2 src/scripts/__tests__/commit-msg.js
  105. +56 −0 src/scripts/__tests__/commit.js
  106. +4 −1 src/scripts/__tests__/format.js
  107. +1 −11 src/scripts/__tests__/lint.js
  108. +173 −0 src/scripts/__tests__/pre-commit.js
  109. +0 −67 src/scripts/__tests__/precommit.js
  110. +22 −11 src/scripts/__tests__/test.js
  111. +1 −1 src/scripts/__tests__/validate.js
  112. +0 −58 src/scripts/build/babel.js
  113. +0 −9 src/scripts/build/index.js
  114. +0 −114 src/scripts/build/rollup.js
  115. +27 −9 src/scripts/ci-after-success.js
  116. +7 −3 src/scripts/commit-msg.js
  117. +10 −14 src/scripts/commit.js
  118. +144 −0 src/scripts/depcheck.js
  119. +1 −1 src/scripts/format.js
  120. +25 −9 src/scripts/lint.js
  121. +74 −9 src/scripts/pre-commit.js
  122. +8 −1 src/scripts/test.js
  123. +1 −0 src/{scripts/__tests__ → test}/helpers/serializers.js
  124. +13 −0 src/tsconfig.json
  125. +140 −30 src/utils.js
  126. +23 −1 tsconfig.json
  127. +13,996 −9,704 yarn.lock
11 changes: 11 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {"node": "12"},
"modules": "commonjs"
}
]
]
}
13 changes: 13 additions & 0 deletions .depcheckrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"specials": ["babel", "bin", "eslint", "jest", "lint-staged", "tslint"],
"ignoreMatches": [
"@types/*",
"concurrently",
"doctoc",
"eslint-config-*",
"eslint-plugin-*",
"jest-github-actions-reporter",
"lint-staged",
"tslib"
]
}
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
coverage/
dist/
/*.d.ts
66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: Build

on:
pull_request:
push:
branches:
- main
- next
- alpha
- beta

jobs:
deduplicate:
name: Deduplicate Jobs
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
concurrent_skipping: same_content_newer

build:
name: Build + Test + Release / Node ${{ matrix.node }}
runs-on: ubuntu-latest
if: ${{ needs.deduplicate.outputs.should_skip != 'true' }}
strategy:
matrix:
node: ['14', '16', '18']

steps:
- name: Get Yarn cache path
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Checkout
uses: actions/checkout@master

- name: Setup node
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node }}

- name: Load Yarn cache
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run lint + tests
run: yarn validate

- name: Upload Coverage / Release
run: yarn ci-after-success
if: ${{ matrix.node == '16' }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_CODECOV: true
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -5,3 +5,13 @@ dist
.opt-out
.DS_Store
.eslintcache
.idea

# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

node src commit-msg
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

node src pre-commit
8 changes: 8 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# Automates pair commits with git-duet
# See: https://github.com/git-duet/git-duet/#co-authored-by-trailer-support

if [ $(git help -a | grep duet-prepare-commit-msg) ]; then
exec git duet-prepare-commit-msg "$@"
fi
15 changes: 15 additions & 0 deletions .kodiak.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version = 1

[merge]
method = "rebase"

[merge.automerge_dependencies]
versions = ["patch"]
usernames = ["dependabot"]

[approve]
auto_approve_usernames = ["renovate"]

[update]
ignored_usernames = ["dependabot"]
autoupdate_label = "autoupdate"
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.16.3
18.20.8
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

Loading