Skip to content

Commit f0762b4

Browse files
committed
chore: mass reformat/cleanup
1 parent c3377b3 commit f0762b4

File tree

110 files changed

+32474
-33162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+32474
-33162
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ root = true
22

33
[*]
44
indent_style = space
5-
indent_size = 4
5+
indent_size = 2
66
charset = utf-8
77
trim_trailing_whitespace = true
8-
insert_final_newline = true
8+
insert_final_newline = true

.eslintrc.js

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
module.exports = {
2-
env: {
3-
browser: true,
4-
node: true,
5-
jest: true,
6-
es6: true,
2+
env: {
3+
browser: true,
4+
node: true,
5+
jest: true,
6+
es6: true,
7+
},
8+
extends: [
9+
'@djthoms/eslint-config',
10+
'@djthoms/eslint-config/jest',
11+
'@djthoms/eslint-config/react',
12+
'@djthoms/eslint-config/react-typescript',
13+
'@djthoms/eslint-config/typescript',
14+
'plugin:react/jsx-runtime',
15+
],
16+
rules: {
17+
'@typescript-eslint/explicit-function-return-type': 'off',
18+
'@typescript-eslint/explicit-module-boundary-types': 'off',
19+
},
20+
overrides: [
21+
{
22+
files: ['*.js'],
23+
rules: {
24+
'@typescript-eslint/no-var-requires': 'off',
25+
},
726
},
8-
extends: [
9-
'@djthoms/eslint-config',
10-
'@djthoms/eslint-config/jest',
11-
'@djthoms/eslint-config/react',
12-
'@djthoms/eslint-config/react-typescript',
13-
'@djthoms/eslint-config/typescript',
14-
],
27+
],
1528
};

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ labels: 'bug, needs triage'
4545

4646
<!-- Include as many relevant details about the environment you experienced the bug in -->
4747

48-
- Docusaurus version used:
49-
- Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0):
50-
- Operating system and version (desktop or mobile):
48+
- Docusaurus version used:
49+
- Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0):
50+
- Operating system and version (desktop or mobile):
5151

5252
## Reproducible Demo
5353

54-
(Paste the link to an example repo (e.g. csb, etc.) along with exact instructions to reproduce the issue.)
54+
(Paste the link to an example repo (e.g. csb, etc.) along with exact
55+
instructions to reproduce the issue.)
5556

5657
<!--
5758
What happens if you skip this step?

.github/dependabot.yml

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
time: "13:00"
8-
open-pull-requests-limit: 10
9-
ignore:
10-
- dependency-name: "@types/node"
11-
versions:
12-
- 14.14.28
13-
- 14.14.30
14-
- 14.14.31
15-
- 14.14.32
16-
- 14.14.33
17-
- 14.14.34
18-
- 14.14.35
19-
- 14.14.36
20-
- 14.14.37
21-
- 14.14.39
22-
- 14.14.41
23-
- 15.0.0
24-
- dependency-name: eslint
25-
versions:
26-
- 7.21.0
27-
- 7.22.0
28-
- 7.23.0
29-
- 7.24.0
30-
- dependency-name: "@testing-library/react-hooks"
31-
versions:
32-
- 5.0.3
33-
- 5.1.0
34-
- 5.1.1
35-
- dependency-name: husky
36-
versions:
37-
- 5.0.9
38-
- 5.1.0
39-
- 5.1.1
40-
- 5.1.2
41-
- 5.1.3
42-
- 5.2.0
43-
- dependency-name: ts-jest
44-
versions:
45-
- 26.5.2
46-
- 26.5.3
47-
- 26.5.4
48-
- dependency-name: nanoid
49-
versions:
50-
- 3.1.21
51-
- dependency-name: "@types/react"
52-
versions:
53-
- 17.0.3
54-
- dependency-name: typescript
55-
versions:
56-
- 4.2.2
57-
- 4.2.3
58-
- dependency-name: jest-image-snapshot
59-
versions:
60-
- 4.4.0
61-
- dependency-name: "@djthoms/prettier-config"
62-
versions:
63-
- 3.1.0
64-
- dependency-name: "@djthoms/eslint-config"
65-
versions:
66-
- 4.0.0
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
time: '13:00'
8+
open-pull-requests-limit: 10
9+
ignore:
10+
- dependency-name: '@types/node'
11+
versions:
12+
- 14.14.28
13+
- 14.14.30
14+
- 14.14.31
15+
- 14.14.32
16+
- 14.14.33
17+
- 14.14.34
18+
- 14.14.35
19+
- 14.14.36
20+
- 14.14.37
21+
- 14.14.39
22+
- 14.14.41
23+
- 15.0.0
24+
- dependency-name: eslint
25+
versions:
26+
- 7.21.0
27+
- 7.22.0
28+
- 7.23.0
29+
- 7.24.0
30+
- dependency-name: '@testing-library/react-hooks'
31+
versions:
32+
- 5.0.3
33+
- 5.1.0
34+
- 5.1.1
35+
- dependency-name: husky
36+
versions:
37+
- 5.0.9
38+
- 5.1.0
39+
- 5.1.1
40+
- 5.1.2
41+
- 5.1.3
42+
- 5.2.0
43+
- dependency-name: ts-jest
44+
versions:
45+
- 26.5.2
46+
- 26.5.3
47+
- 26.5.4
48+
- dependency-name: nanoid
49+
versions:
50+
- 3.1.21
51+
- dependency-name: '@types/react'
52+
versions:
53+
- 17.0.3
54+
- dependency-name: typescript
55+
versions:
56+
- 4.2.2
57+
- 4.2.3
58+
- dependency-name: jest-image-snapshot
59+
versions:
60+
- 4.4.0
61+
- dependency-name: '@djthoms/prettier-config'
62+
versions:
63+
- 3.1.0
64+
- dependency-name: '@djthoms/eslint-config'
65+
versions:
66+
- 4.0.0

.github/workflows/greetings.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ jobs:
66
greeting:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/first-interaction@v1
10-
with:
11-
repo-token: ${{ secrets.GITHUB_TOKEN }}
12-
issue-message: 'Message that will be displayed on users'' first issue'
13-
pr-message: 'Message that will be displayed on users'' first pr'
9+
- uses: actions/first-interaction@v1
10+
with:
11+
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
issue-message: "Message that will be displayed on users' first issue"
13+
pr-message: "Message that will be displayed on users' first pr"
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
name: Pre Release
22

33
on:
4-
release:
5-
types: [prereleased]
4+
release:
5+
types: [prereleased]
66

77
jobs:
8-
publish:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v2
13-
with:
14-
node-version: 16
15-
registry-url: https://registry.npmjs.org/
16-
- name: npm install
17-
run: npm i
18-
- name: build
19-
run: npm run build
20-
- name: publish
21-
working-directory: ./pkg
22-
run: npm publish --tag next
23-
env:
24-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: 16
15+
registry-url: https://registry.npmjs.org/
16+
- name: npm install
17+
run: npm i
18+
- name: build
19+
run: npm run build
20+
- name: publish
21+
working-directory: ./pkg
22+
run: npm publish --tag next
23+
env:
24+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/on_push.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
on: push
22
name: Build & Publish Docs
33
jobs:
4-
build:
5-
runs-on: ubuntu-latest
6-
strategy:
7-
matrix:
8-
node-version: [16.x]
9-
steps:
10-
- uses: actions/checkout@v2
11-
- name: Use Node.js ${{ matrix.node-version }}
12-
uses: actions/setup-node@v2
13-
with:
14-
node-version: ${{ matrix.node-version }}
15-
- name: npm install, build, and test
16-
run: |
17-
npm i
18-
npm t
19-
npm run build
20-
env:
21-
CI: true
22-
HUSKY_SKIP_INSTALL: 1
23-
- name: Coveralls
24-
uses: coverallsapp/github-action@master
25-
with:
26-
github-token: ${{ secrets.GITHUB_TOKEN }}
27-
checkChangesInDocs:
28-
name: Check changes in docs
29-
runs-on: ubuntu-latest
30-
steps:
31-
- uses: actions/checkout@master
32-
- name: Check changes in stories
33-
uses: netlify/actions/diff-includes@master
34-
with:
35-
args: docs
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node-version: [16.x]
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Use Node.js ${{ matrix.node-version }}
12+
uses: actions/setup-node@v2
13+
with:
14+
node-version: ${{ matrix.node-version }}
15+
- name: npm install, build, and test
16+
run: |
17+
npm i
18+
npm t
19+
npm run build
20+
env:
21+
CI: true
22+
HUSKY_SKIP_INSTALL: 1
23+
- name: Coveralls
24+
uses: coverallsapp/github-action@master
25+
with:
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
checkChangesInDocs:
28+
name: Check changes in docs
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@master
32+
- name: Check changes in stories
33+
uses: netlify/actions/diff-includes@master
34+
with:
35+
args: docs

.github/workflows/on_release.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
name: Release
22
on:
3-
release:
4-
types: [released]
3+
release:
4+
types: [released]
55
jobs:
6-
publish:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v2
11-
with:
12-
node-version: 16
13-
registry-url: https://registry.npmjs.org/
14-
- name: npm install
15-
run: npm i
16-
- name: build
17-
run: npm run build
18-
- name: publish
19-
working-directory: ./pkg
20-
run: npm publish
21-
env:
22-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: 16
13+
registry-url: https://registry.npmjs.org/
14+
- name: npm install
15+
run: npm i
16+
- name: build
17+
run: npm run build
18+
- name: publish
19+
working-directory: ./pkg
20+
run: npm publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/stale.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@ name: Mark stale issues and pull requests
22

33
on:
44
schedule:
5-
- cron: "0 0 * * *"
5+
- cron: '0 0 * * *'
66

77
jobs:
88
stale:
9-
109
runs-on: ubuntu-latest
1110

1211
steps:
13-
- uses: actions/stale@v1
14-
with:
15-
repo-token: ${{ secrets.GITHUB_TOKEN }}
16-
stale-issue-message: 'Stale issue message'
17-
stale-pr-message: 'Stale pull request message'
18-
stale-issue-label: 'no-issue-activity'
19-
stale-pr-label: 'no-pr-activity'
12+
- uses: actions/stale@v1
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
stale-issue-message: 'Stale issue message'
16+
stale-pr-message: 'Stale pull request message'
17+
stale-issue-label: 'no-issue-activity'
18+
stale-pr-label: 'no-pr-activity'

0 commit comments

Comments
 (0)