Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 99fbd7f

Browse files
Merge pull request #7 from bkrmadtya/refactor/project-setup-and-config
refactor: project setup and config
2 parents ad7c8db + adbdc3e commit 99fbd7f

Some content is hidden

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

54 files changed

+1875
-7719
lines changed

‎.babelrc‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎.eslintrc.json‎

Lines changed: 13 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,21 @@
11
{
2+
"root": true,
23
"parser": "@typescript-eslint/parser",
3-
"parserOptions": {
4-
"ecmaVersion": 2018,
5-
"sourceType": "module",
6-
"ecmaFeatures": {
7-
"jsx": true
8-
}
9-
},
10-
"plugins": ["@typescript-eslint", "react-hooks"],
4+
"plugins": ["@typescript-eslint"],
115
"extends": [
12-
"plugin:react/recommended",
13-
"plugin:@typescript-eslint/recommended"
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/recommended",
8+
"prettier"
149
],
15-
"rules": {
16-
"react-hooks/rules-of-hooks": "error",
17-
"react-hooks/exhaustive-deps": "warn",
18-
"react/prop-types": "off",
19-
"valid-typeof": "error",
20-
"semi": "off",
21-
"no-console": "warn",
22-
"no-var": "error",
23-
"prefer-const": "error",
24-
"eqeqeq": "error",
25-
"keyword-spacing": "warn",
26-
"space-before-function-paren": "off",
27-
"space-infix-ops": "warn",
28-
"comma-spacing": "warn",
29-
"brace-style": "warn",
30-
"curly": "error",
31-
"handle-callback-err": "error",
32-
"no-multi-spaces": "warn",
33-
"no-multiple-empty-lines": "warn",
34-
"operator-linebreak": "error",
35-
"block-spacing": "warn",
36-
"comma-dangle": "warn",
37-
"comma-style": "warn",
38-
"dot-location": ["error", "property"],
39-
"key-spacing": "warn",
40-
"no-const-assign": "error",
41-
"no-constant-condition": "error",
42-
"no-debugger": "error",
43-
"no-delete-var": "error",
44-
"no-dupe-args": "error",
45-
"no-dupe-class-members": "error",
46-
"no-duplicate-case": "error",
47-
"no-duplicate-imports": "error",
48-
"no-empty-pattern": "warn",
49-
"no-fallthrough": "warn",
50-
"no-lone-blocks": "warn",
51-
"no-redeclare": "error",
52-
"no-unmodified-loop-condition": "error",
53-
"no-unneeded-ternary": "error",
54-
"no-unreachable": "error",
55-
"no-useless-computed-key": "error",
56-
"no-useless-rename": "warn",
57-
"no-whitespace-before-property": "error",
58-
"semi-spacing": "warn",
59-
"space-before-blocks": "warn",
60-
"space-unary-ops": "warn",
61-
"spaced-comment": "warn",
62-
"use-isnan": "error",
63-
"yoda": "error",
64-
"no-tabs": "warn"
65-
},
6610
"settings": {
67-
"react": {
68-
"pragma": "React",
69-
"version": "detect"
11+
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
12+
"import/parsers": {
13+
"@typescript-eslint/parser": [".ts", ".tsx"]
14+
},
15+
"import/resolver": {
16+
"node": {
17+
"extensions": [".js", ".jsx", ".ts", ".tsx"]
18+
}
7019
}
7120
}
7221
}

‎.vscode/settings.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
}

‎README.md‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<h1 align="center">
32
Sorting Algorithm Visualizer
43
</h1>
@@ -7,40 +6,41 @@ This project was part of my thesis work. It is a visualizer application made wit
76
</p>
87
<p align="center">Application live on: https://algo-react-viz.netlify.app</p>
98

10-
119
---
10+
1211
<p align="center">
1312
<img align="center" src="./docs/visualization.gif"/>
1413
</p>
1514

1615
---
1716

1817
### Tech stack:
19-
- React
20-
- TypeScript
21-
- Redux
22-
- React-Router
23-
- SASS
24-
- Babel
25-
- Webpack
18+
19+
- React
20+
- TypeScript
21+
- Redux
22+
- React-Router
23+
- SASS
24+
- Vite
2625
- Eslint
2726

2827
### To run the project locally, clone the project and run:
2928

30-
````bash
29+
```bash
3130
npm install && npm start
32-
````
33-
Or
31+
```
3432

35-
````bash
33+
Or
34+
35+
```bash
3636
yarn install && yarn start
37-
````
38-
Or
37+
```
3938

40-
````bash
41-
pnpm install && pnpm start
42-
````
39+
Or
4340

41+
```bash
42+
pnpm install && pnpm start
43+
```
4444

4545
<p align="center">
4646
<em>@bkrmadtya 2021</em>

‎docs/BasicHTML.md‎

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,21 @@
77
<tr>
88
<td>
99

10-
```html
11-
<!DOCTYPE html>
12-
<html lang="en">
13-
<head>
14-
<title>Basic HTML web page</title>
15-
</head>
16-
<body>
17-
<h3>Hello world!</h3>
18-
</body>
19-
</html>
20-
```
10+
```html
11+
<!DOCTYPE html>
12+
<html lang="en">
13+
<head>
14+
<title>Basic HTML web page</title>
15+
</head>
16+
<body>
17+
<h3>Hello world!</h3>
18+
</body>
19+
</html>
20+
```
21+
2122
</td>
2223
<td align="center">
2324
<h3>Hello world!</h3>
2425
</td>
2526
</tr>
26-
</table>
27+
</table>

‎docs/BasicHTMLwithStyle.md‎

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,26 @@
2222
<tr>
2323
<td>
2424

25-
```html
26-
<!DOCTYPE html>
27-
<html lang="en">
28-
<head>
29-
<title>Basic HTML web page</title>
30-
<style>
31-
h3 {
32-
color: red;
33-
}
34-
</style>
35-
</head>
36-
<body>
37-
<h3>Hello world!</h3>
38-
</body>
39-
</html>
40-
```
25+
```html
26+
<!DOCTYPE html>
27+
<html lang="en">
28+
<head>
29+
<title>Basic HTML web page</title>
30+
<style>
31+
h3 {
32+
color: red;
33+
}
34+
</style>
35+
</head>
36+
<body>
37+
<h3>Hello world!</h3>
38+
</body>
39+
</html>
40+
```
41+
4142
</td>
4243
<td align="center">
4344
<h3>Hello world!</h3>
4445
</td>
4546
</tr>
46-
</table>
47+
</table>

‎docs/BasicReactComponent.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
<td>
77

88
```js
9-
import React from 'react';
9+
import React from 'react'
1010

1111
const App = () => {
1212
return <h1>Hello World!</h1> // HTML like JSX syntax
1313
}
1414

15-
export default App;
15+
export default App
1616
```
17+
1718
</td>
1819
</tr>
19-
</table>
20+
</table>

‎docs/JSvsTS.md‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<td>
1313

1414
```js
15-
const squareOfNumber = (num) => {
16-
console.log(num * num);
15+
const squareOfNumber = num => {
16+
console.log(num * num)
1717
}
1818

1919
/**
@@ -22,19 +22,18 @@ const squareOfNumber = (num) => {
2222
* Valid JavaScript syntax
2323
*/
2424

25-
squareOfNumber("incorrect data type");
26-
squareOfNumber(true);
27-
squareOfNumber([]);
28-
squareOfNumber(1);
29-
30-
25+
squareOfNumber('incorrect data type')
26+
squareOfNumber(true)
27+
squareOfNumber([])
28+
squareOfNumber(1)
3129
```
30+
3231
</td>
3332
<td>
3433

3534
```ts
3635
const squareOfNumber = (num: number): void => {
37-
console.log(num * num);
36+
console.log(num * num)
3837
}
3938

4039
/**
@@ -43,13 +42,14 @@ const squareOfNumber = (num: number): void => {
4342
* Invalid TypeScript syntax
4443
*/
4544

46-
squareOfNumber("incorrect data type");
47-
squareOfNumber(true);
48-
squareOfNumber([]);
45+
squareOfNumber('incorrect data type')
46+
squareOfNumber(true)
47+
squareOfNumber([])
4948

5049
// Only valid TypeScript syntax
51-
squareOfNumber(1);
50+
squareOfNumber(1)
5251
```
52+
5353
</td>
5454
</tr>
55-
</table>
55+
</table>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /