Skip to content

Commit 6988189

Browse files
author
Adithya Krishna
authored
[Feat] - Updated Docusaurus to v2.4.1, Added New Workflows and Migrated to TS (#74)
* Updated Docusaurus to 2.4.1 Signed-off-by: Adithya Krishna <[email protected]> * Updated Workflows Signed-off-by: Adithya Krishna <[email protected]> * Added Build Test Workflow Signed-off-by: Adithya Krishna <[email protected]> * Added Deps Review Workflow Signed-off-by: Adithya Krishna <[email protected]> * Added Lint Workflow Signed-off-by: Adithya Krishna <[email protected]> * Updated Name Signed-off-by: Adithya Krishna <[email protected]> * Updated Lint Workflow Signed-off-by: Adithya Krishna <[email protected]> * Updated Build Check Workflow Signed-off-by: Adithya Krishna <[email protected]> * Formatted Files - v1 Signed-off-by: Adithya Krishna <[email protected]> * Formatted Files - v2 Signed-off-by: Adithya Krishna <[email protected]> * Formatted Files - v3 Signed-off-by: Adithya Krishna <[email protected]> * Formatted Files - v4 Signed-off-by: Adithya Krishna <[email protected]> * Formatted Files - v5 Signed-off-by: Adithya Krishna <[email protected]> * Formatted All Files for Prettier Signed-off-by: Adithya Krishna <[email protected]> * Reverted Changes to v2.4.1 Signed-off-by: Adithya Krishna <[email protected]> * Re-Reverted Changes to v2.4.1 Signed-off-by: Adithya Krishna <[email protected]> * Updated Workflow Signed-off-by: Adithya Krishna <[email protected]> * Lint Workflow File Signed-off-by: Adithya Krishna <[email protected]> * Remove Paths Constraint Signed-off-by: Adithya Krishna <[email protected]> * Fixed and Linted Files Signed-off-by: Adithya Krishna <[email protected]> * Updated Lock Files Signed-off-by: Adithya Krishna <[email protected]> * Updated CodeQL Analysis File Signed-off-by: Adithya Krishna <[email protected]> * Fixed Linting Issues Signed-off-by: Adithya Krishna <[email protected]> * Migrated to TS Signed-off-by: Adithya Krishna <[email protected]> * Formatted tsconfig file Signed-off-by: Adithya Krishna <[email protected]> * Updated Lock File Signed-off-by: Adithya Krishna <[email protected]> * Reformatted Workflow Files Signed-off-by: Adithya Krishna <[email protected]> * Added EOLs Signed-off-by: Adithya Krishna <[email protected]> * Made Requested Changes Signed-off-by: Adithya Krishna <[email protected]> * Fixed Linting Issues Signed-off-by: Adithya Krishna <[email protected]> --------- Signed-off-by: Adithya Krishna <[email protected]>
1 parent 36a6e07 commit 6988189

File tree

384 files changed

+38220
-33969
lines changed

Some content is hidden

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

384 files changed

+38220
-33969
lines changed

.eslintrc.js

Lines changed: 50 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,55 @@
11
module.exports = {
2-
parser: '@babel/eslint-parser',
3-
env: {
4-
browser: true,
5-
es6: true,
6-
},
7-
extends: [
8-
'airbnb',
9-
'plugin:prettier/recommended',
10-
'plugin:jsx-a11y/recommended',
11-
'plugin:import/errors',
12-
'plugin:import/warnings',
13-
],
14-
plugins: ['react', 'jsx-a11y', 'import', 'prettier', 'react-hooks', 'regexp'],
15-
parserOptions: {
16-
ecmaFeatures: {
17-
jsx: true,
2+
parser: '@typescript-eslint/parser',
3+
env: {
4+
browser: true,
5+
es6: true,
186
},
19-
ecmaVersion: 2021,
20-
sourceType: 'module',
21-
},
22-
rules: {
23-
'prettier/prettier': ['error', {}, {usePrettierrc: true}],
24-
'react/prop-types': 'off',
25-
'react/jsx-filename-extension': [1, {extensions: ['.js', '.jsx']}],
26-
'react/jsx-props-no-spreading': 'off',
27-
'import/no-unresolved': 'off',
28-
'import/extensions': [
29-
'error',
30-
'ignorePackages',
31-
{
32-
js: 'never',
33-
jsx: 'never',
34-
},
7+
plugins: [
8+
'react',
9+
'jsx-a11y',
10+
'import',
11+
'prettier',
12+
'react-hooks',
13+
'regexp',
14+
'@typescript-eslint',
3515
],
36-
'react-hooks/rules-of-hooks': 'error',
37-
'react-hooks/exhaustive-deps': 'warn',
38-
'regexp/no-unused-capturing-group': 'error',
39-
'regexp/no-useless-backreference': 'error',
40-
},
41-
settings: {
42-
'import/resolver': {
43-
node: {
44-
extensions: ['.js', '.jsx', '.json'],
45-
},
16+
extends: [
17+
'airbnb',
18+
'plugin:prettier/recommended',
19+
'plugin:jsx-a11y/recommended',
20+
'plugin:import/errors',
21+
'plugin:import/warnings',
22+
'plugin:@typescript-eslint/eslint-recommended',
23+
'plugin:@typescript-eslint/recommended',
24+
],
25+
parserOptions: {
26+
ecmaFeatures: {
27+
jsx: true,
28+
},
29+
ecmaVersion: 2021,
30+
sourceType: 'module',
31+
},
32+
rules: {
33+
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
34+
'react/prop-types': 'off',
35+
'react/jsx-filename-extension': [
36+
1,
37+
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] },
38+
],
39+
'react/jsx-props-no-spreading': 'off',
40+
'react/destructuring-assignment': ['warn'],
41+
'import/no-unresolved': 'off',
42+
'import/extensions': 'off',
43+
'react-hooks/rules-of-hooks': 'warn',
44+
'react-hooks/exhaustive-deps': 'warn',
45+
'regexp/no-unused-capturing-group': 'error',
46+
'regexp/no-useless-backreference': 'error',
47+
},
48+
settings: {
49+
'import/resolver': {
50+
node: {
51+
extensions: ['.js', '.jsx', '.json'],
52+
},
53+
},
4654
},
47-
},
4855
};

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bug Report
22
description: Create a report to help us improve
3-
title: "Bug: "
3+
title: 'Bug: '
44
labels: [bug]
55

66
body:

.github/ISSUE_TEMPLATE/doc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Documentation issue
22
description: Found an issue in the documentation? You can use this one!
3-
title: "[DOCS] <description>"
3+
title: '[DOCS] <description>'
44
body:
55
- type: textarea
66
id: description
@@ -22,4 +22,4 @@ body:
2222
label: Additional information
2323
description: Is there anything else we should know about this issue?
2424
validations:
25-
required: false
25+
required: false

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Feature Request
22
description: Suggest an idea for this project
3-
title: "Feature Request: "
3+
title: 'Feature Request: '
44
labels: [enhancement]
55

66
body:

.github/ISSUE_TEMPLATE/user-feedback.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: User Feedback
22
description: Describe how we can improve your experience
3-
title: "User Feedback: "
3+
title: 'User Feedback: '
44
labels: [user-feedback]
55

66
body:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ Please link the GitHub issue this pull request resolves in the format of `Closes
2424
<!--
2525
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
2626
-->
27-

.github/workflows/build-test.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build Check
2+
on:
3+
workflow_dispatch:
4+
push:
5+
paths-ignore:
6+
- 'README.md'
7+
- 'LICENSE'
8+
- 'CODE_OF_CONDUCT.md'
9+
- 'CONTRIBUTING.md'
10+
- '.vscode/**'
11+
- '.husky/**'
12+
- '.env'
13+
- '.gitignore'
14+
pull_request:
15+
paths-ignore:
16+
- 'README.md'
17+
- 'LICENSE'
18+
- 'CODE_OF_CONDUCT.md'
19+
- 'CONTRIBUTING.md'
20+
- '.vscode/**'
21+
- '.husky/**'
22+
- '.env'
23+
- '.gitignore'
24+
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
27+
cancel-in-progress: true
28+
29+
jobs:
30+
Build:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@master
34+
- name: Install Node.js
35+
uses: actions/setup-node@v3
36+
with:
37+
node-version: 16.18.0
38+
cache: 'npm'
39+
40+
- name: Cache NPM Dependencies
41+
id: cache-npm
42+
uses: actions/cache@v3
43+
env:
44+
cache-name: cache-node-modules
45+
with:
46+
path: node_modules
47+
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
48+
49+
- name: Check Cache
50+
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
51+
run: npm i
52+
53+
- name: Build
54+
run: |
55+
npm install
56+
npm run build

.github/workflows/codeql-analysis.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: CodeQL Analysis
23

34
on:
@@ -22,19 +23,18 @@ jobs:
2223
contents: read
2324
security-events: write
2425

25-
strategy:
26-
fail-fast: false
27-
matrix:
28-
language: ['javascript']
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
language: ['javascript']
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v3
2933

30-
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v3
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/[email protected]
36+
with:
37+
languages: ${{ matrix.language }}
3338

34-
- name: Initialize CodeQL
35-
uses: github/codeql-action/[email protected]
36-
with:
37-
languages: ${{ matrix.language }}
38-
39-
- name: Perform CodeQL Analysis
40-
uses: github/codeql-action/[email protected]
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/[email protected]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Dependency Review
2+
on: [pull_request]
3+
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
6+
cancel-in-progress: true
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
dependency-review:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Dependency Review
18+
uses: actions/dependency-review-action@v2

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ jobs:
5252
destination-repository-name: 'www'
5353
target-directory: 'docs'
5454
user-email: [email protected]
55-
target-branch: main
55+
target-branch: main

0 commit comments

Comments
 (0)