Skip to content

Commit c9055d4

Browse files
Merge pull request #9 from upayanmazumder-DevLabs/dev
Prettify, consolidate and deepwiki
2 parents aa010a7 + 76491eb commit c9055d4

File tree

116 files changed

+4387
-4694
lines changed

Some content is hidden

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

116 files changed

+4387
-4694
lines changed

.editorconfig

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
13+
# Matches multiple files with brace expansion notation
14+
[*.{js,ts,jsx,tsx,json,yml,yaml}]
15+
indent_style = space
16+
indent_size = 2
17+
18+
# Python files
19+
[*.py]
20+
indent_style = space
21+
indent_size = 4
22+
23+
# Markdown files
24+
[*.md]
25+
trim_trailing_whitespace = false
26+
27+
# Package files
28+
[{package.json,package-lock.json}]
29+
indent_style = space
30+
indent_size = 2

.github/issue_label_bot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
label-alias:
22
bug: 'bug'
33
feature_request: 'enhancement'
4-
question: 'help-wanted'
4+
question: 'help-wanted'

.github/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ markComment: >
1919
for your contributions.
2020
2121
# Comment to post when closing a stale issue. Set to `false` to disable
22-
closeComment: true
22+
closeComment: true

.github/workflows/commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ jobs:
88
- uses: actions/checkout@v2
99
with:
1010
fetch-depth: 0
11-
- uses: wagoid/commitlint-github-action@v2
11+
- uses: wagoid/commitlint-github-action@v2
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
name: Create issue on dependabot pr
22
on:
3-
- pull_request
3+
- pull_request
44
jobs:
55
create_commit:
66
runs-on: ubuntu-latest
77
steps:
8-
- name: Create issue using REST API
9-
if: contains(github.actor, 'dependabot')
10-
run: |
11-
curl --request POST \
12-
--url https://api.github.com/repos/${{ github.repository }}/issues \
13-
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
14-
--header 'content-type: application/json' \
15-
--data '{
16-
"title": "Verify for any breaking changes in PR made by ${{ github.actor }}",
17-
"body": "- Kindly check if new dependencies are not introducing any breaking changes.\n- Ref: ${{ github.ref }}",
18-
"labels": ["dependencies", "good first issue"],
19-
"assignees": [""]
20-
}'
8+
- name: Create issue using REST API
9+
if: contains(github.actor, 'dependabot')
10+
run: |
11+
curl --request POST \
12+
--url https://api.github.com/repos/${{ github.repository }}/issues \
13+
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
14+
--header 'content-type: application/json' \
15+
--data '{
16+
"title": "Verify for any breaking changes in PR made by ${{ github.actor }}",
17+
"body": "- Kindly check if new dependencies are not introducing any breaking changes.\n- Ref: ${{ github.ref }}",
18+
"labels": ["dependencies", "good first issue"],
19+
"assignees": [""]
20+
}'

.github/workflows/linter.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,27 @@ jobs:
4848
# list of changed files within `super-linter`
4949
fetch-depth: 0
5050

51+
################################
52+
# Setup Node.js for Prettier #
53+
################################
54+
- name: Setup Node.js
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: "20"
58+
cache: "npm"
59+
60+
################################
61+
# Install dependencies #
62+
################################
63+
- name: Install dependencies
64+
run: npm ci
65+
66+
################################
67+
# Run Prettier check #
68+
################################
69+
- name: Check code formatting with Prettier
70+
run: npm run format:check
71+
5172
################################
5273
# Run Linter against code base #
5374
################################
@@ -62,5 +83,9 @@ jobs:
6283
VALIDATE_BASH: false
6384
VALIDATE_JSCPD: false
6485
VALIDATE_RUST_2015: false
86+
VALIDATE_JAVASCRIPT_STANDARD: false
87+
VALIDATE_TYPESCRIPT_STANDARD: false
88+
JAVASCRIPT_DEFAULT_STYLE: prettier
89+
TYPESCRIPT_DEFAULT_STYLE: prettier
6590
DEFAULT_BRANCH: main
66-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.lintstagedrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*.{js,ts,json,yml,yaml,md}": ["prettier --write"],
3+
"*.ts": ["prettier --write"]
4+
}

.prettierignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Dependencies
2+
node_modules
3+
4+
# Build outputs
5+
dist
6+
build
7+
coverage
8+
9+
# Lock files
10+
package-lock.json
11+
yarn.lock
12+
pnpm-lock.yaml
13+
14+
# Logs
15+
*.log
16+
logs
17+
18+
# Environment files
19+
.env
20+
.env.*
21+
22+
# Git
23+
.git
24+
.github
25+
26+
# IDE
27+
.vscode
28+
.idea
29+
30+
# OS
31+
.DS_Store
32+
Thumbs.db
33+
34+
# Other
35+
*.min.js
36+
*.min.css
37+
*.bundle.js

.prettierrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "es5",
6+
"printWidth": 100,
7+
"arrowParens": "always",
8+
"endOfLine": "lf",
9+
"bracketSpacing": true,
10+
"proseWrap": "preserve",
11+
"quoteProps": "as-needed",
12+
"useTabs": false
13+
}

.superlinterignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules/
2+
dist/
3+
build/
4+
*.js.map
5+
logs/
6+
*.log
7+
.env
8+
.env.*
9+
package-lock.json
10+
yarn.lock
11+
pnpm-lock.yaml

0 commit comments

Comments
 (0)