Skip to content

Commit 94409ea

Browse files
committed
build: relint the project
1 parent 392fa79 commit 94409ea

Some content is hidden

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

86 files changed

+6302
-6357
lines changed

Diff for: .editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# https://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 2
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
max_line_length = 80
13+
indent_brace_style = 1TBS
14+
spaces_around_operators = true
15+
quote_type = auto
16+
17+
[package.json]
18+
indent_style = space
19+
indent_size = 2
20+
a

Diff for: .eslintrc.json

-20
This file was deleted.

Diff for: .github/workflows/main.yml

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
name: test
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
1010

1111
jobs:
12-
test:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v2
17-
- name: Setup Node.js
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version: lts/*
21-
- name: Install
22-
run: npm install --no-package-lock --force
23-
- name: Test
24-
run: npm test
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: lts/*
21+
- name: Install
22+
run: npm install --no-package-lock --force
23+
- name: Test
24+
run: npm test

Diff for: .prettierrc.json

-15
This file was deleted.

Diff for: CHANGELOG.md

+7-11
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,30 @@ All notable changes to this project will be documented in this file. See [standa
44

55
### [1.23.3](https://github.com/microlinkhq/react-json-view/compare/v1.23.2...v1.23.3) (2024-09-27)
66

7-
87
### Bug Fixes
98

10-
* function call ([86bbd60](https://github.com/microlinkhq/react-json-view/commit/86bbd60caef8d80b812a45c8ea9326df62fcb02f))
9+
- function call ([86bbd60](https://github.com/microlinkhq/react-json-view/commit/86bbd60caef8d80b812a45c8ea9326df62fcb02f))
1110

1211
### [1.23.2](https://github.com/microlinkhq/react-json-view/compare/v1.23.1...v1.23.2) (2024-09-22)
1312

14-
1513
### Bug Fixes
1614

17-
* add legacy ssl flag ([4005834](https://github.com/microlinkhq/react-json-view/commit/4005834bb4234ddfdef66f2173a53a686641cb21))
15+
- add legacy ssl flag ([4005834](https://github.com/microlinkhq/react-json-view/commit/4005834bb4234ddfdef66f2173a53a686641cb21))
1816

1917
### [1.23.1](https://github.com/microlinkhq/react-json-view/compare/v1.23.0...v1.23.1) (2024-07-02)
2018

2119
## [1.23.0](https://github.com/microlinkhq/react-json-view/compare/v1.22.2...v1.23.0) (2023-10-26)
2220

23-
2421
### Features
2522

26-
* **dev server:** add example of name as jsx element ([84ada17](https://github.com/microlinkhq/react-json-view/commit/84ada17617ad1df0e748e5cf6383f9cdcefa6e02))
27-
* **json viewer:** add handling namespace when is an react object ([e11b60a](https://github.com/microlinkhq/react-json-view/commit/e11b60af87fa1755554cb5c846d1d49ea12d131e))
28-
* **types:** add JSX.Element as name prop type ([ebd8aed](https://github.com/microlinkhq/react-json-view/commit/ebd8aed8246742ebc41776a8a0bb489b8e711138))
29-
23+
- **dev server:** add example of name as jsx element ([84ada17](https://github.com/microlinkhq/react-json-view/commit/84ada17617ad1df0e748e5cf6383f9cdcefa6e02))
24+
- **json viewer:** add handling namespace when is an react object ([e11b60a](https://github.com/microlinkhq/react-json-view/commit/e11b60af87fa1755554cb5c846d1d49ea12d131e))
25+
- **types:** add JSX.Element as name prop type ([ebd8aed](https://github.com/microlinkhq/react-json-view/commit/ebd8aed8246742ebc41776a8a0bb489b8e711138))
3026

3127
### Bug Fixes
3228

33-
* add missed devDeps in new create-react-app ([5275cd4](https://github.com/microlinkhq/react-json-view/commit/5275cd446f7d4202b06f4a0d048092066a6b5f5b))
34-
* **json viewer:** add support for functional components ([f478f55](https://github.com/microlinkhq/react-json-view/commit/f478f55aa2b9dbe730f9638485d9c584ccbbcc45))
29+
- add missed devDeps in new create-react-app ([5275cd4](https://github.com/microlinkhq/react-json-view/commit/5275cd446f7d4202b06f4a0d048092066a6b5f5b))
30+
- **json viewer:** add support for functional components ([f478f55](https://github.com/microlinkhq/react-json-view/commit/f478f55aa2b9dbe730f9638485d9c584ccbbcc45))
3531

3632
### [1.22.2](https://github.com/microlinkhq/react-json-view/compare/v1.22.1...v1.22.2) (2022-06-27)
3733

Diff for: CONTRIBUTING.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ npm install --save-dev
88
# run the dev server with hot reloading
99
npm run dev
1010
```
11-
Webpack Dev Server should automatically open up http://localhost:2000 in your web browser. If it does not, open a browser and navigate to port 2000. The hot reloader will automatically reload when files are modified in the `/src/` directory.
11+
12+
Webpack Dev Server should automatically open up http://localhost:2000 in your web browser. If it does not, open a browser and navigate to port 2000. The hot reloader will automatically reload when files are modified in the `/src/` directory.
1213

1314
## Run the Production Build
1415

1516
```bash
1617
# run the build (note: you may need to use `sudo` priveledges to run the build successfully)
1718
npm run build
1819
```
20+
1921
Please add tests for your code before posting a pull request.
2022

2123
You can run the test suite with `npm run test` or `npm run test:watch` to automatically reload when files are modified.
@@ -24,4 +26,4 @@ You can run the test suite with `npm run test` or `npm run test:watch` to automa
2426

2527
I recommend using docker for development because it enforces environmental consistency.
2628

27-
For information about contributing with Docker, see the [README in ./docker](https://github.com/microlinkhq/react-json-view/blob/master/docker/README.md#contributing-to-this-project-using-docker).
29+
For information about contributing with Docker, see the [README in ./docker](https://github.com/microlinkhq/react-json-view/blob/master/docker/README.md#contributing-to-this-project-using-docker).

0 commit comments

Comments
 (0)