Skip to content

Commit b2f895f

Browse files
committed
linting
1 parent cd77998 commit b2f895f

File tree

14 files changed

+199
-264
lines changed

14 files changed

+199
-264
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
name: Deploy to GitHub Pages
2-
3-
on:
4-
# Trigger the workflow every time you push to the `main` branch
5-
# Using a different branch name? Replace `main` with your branch’s name
6-
push:
7-
branches: [ main ]
8-
# Allows you to run this workflow manually from the Actions tab on GitHub.
9-
workflow_dispatch:
10-
11-
# Allow this job to clone the repo and create a page deployment
12-
permissions:
13-
contents: read
14-
pages: write
15-
id-token: write
16-
17-
jobs:
18-
build:
19-
runs-on: ubuntu-latest
20-
steps:
21-
- name: Checkout your repository using git
22-
uses: actions/checkout@v4
23-
- name: Install, build, and upload your site
24-
uses: withastro/action@v3
25-
with:
26-
path: . # The root location of your Astro project inside the repository. (optional)
27-
node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
28-
package-manager: npm # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
29-
30-
deploy:
31-
needs: build
32-
runs-on: ubuntu-latest
33-
environment:
34-
name: github-pages
35-
url: ${{ steps.deployment.outputs.page_url }}
36-
steps:
37-
- name: Deploy to GitHub Pages
38-
id: deployment
39-
uses: actions/deploy-pages@v4
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Trigger the workflow every time you push to the `main` branch
5+
# Using a different branch name? Replace `main` with your branch’s name
6+
push:
7+
branches: [main]
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
9+
workflow_dispatch:
10+
11+
# Allow this job to clone the repo and create a page deployment
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v4
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v3
25+
with:
26+
path: . # The root location of your Astro project inside the repository. (optional)
27+
node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
28+
package-manager: npm # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
29+
30+
deploy:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
environment:
34+
name: github-pages
35+
url: ${{ steps.deployment.outputs.page_url }}
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

.github/workflows/issue-template-number.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [opened]
66
permissions:
77
issues: write
8-
8+
99
jobs:
1010
update_issue_title:
1111
runs-on: ubuntu-latest

.vscode/cspell.json

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,17 @@
1313
"path": "./dictionaries/india.txt"
1414
}
1515
],
16-
"dictionaries": [
17-
"projectTerms",
18-
"teamMember",
19-
"india"
20-
],
21-
"ignorePaths": [
22-
"**/*.svg",
23-
"src/assets/json/*.json"
24-
],
16+
"dictionaries": ["projectTerms", "teamMember", "india"],
17+
"ignorePaths": ["**/*.svg", "src/assets/json/*.json"],
2518
"languageSettings": [
2619
{
2720
"languageId": "*",
28-
"dictionaries": [
29-
"projectTerms"
30-
]
21+
"dictionaries": ["projectTerms"]
3122
},
3223
{
3324
"languageId": "json, md",
34-
"dictionaries": [
35-
"teamMember",
36-
"geo"
37-
]
25+
"dictionaries": ["teamMember", "geo"]
3826
}
3927
],
40-
"enableFiletypes": [
41-
"astro",
42-
"jsx",
43-
"tsx"
44-
]
28+
"enableFiletypes": ["astro", "jsx", "tsx"]
4529
}

.vscode/settings.json

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,18 @@
3030
"git.openRepositoryInParentFolders": "always",
3131
"typescript.updateImportsOnFileMove.enabled": "always",
3232
"editor.linkedEditing": true,
33-
"cSpell.userWords": [
34-
"nojekyll",
35-
"testid"
36-
],
33+
"cSpell.userWords": ["nojekyll", "testid"],
3734
"editor.tabSize": 2,
3835
"git.enableSmartCommit": true,
3936
"files.watcherExclude": {
4037
"**/node_modules/*/**": true
4138
},
4239
"files.autoSave": "afterDelay",
43-
"git.branchProtection": [
44-
"main",
45-
"develop"
46-
],
40+
"git.branchProtection": ["main", "develop"],
4741
"[CODEOWNERS]": {
4842
"editor.formatOnSave": false
4943
},
50-
"cSpell.words": [
51-
"behaviour",
52-
"DUMMYUSER"
53-
],
44+
"cSpell.words": ["behaviour", "DUMMYUSER"],
5445
"workbench.colorCustomizations": {
5546
"activityBar.activeBackground": "#e98cf9",
5647
"activityBar.background": "#e98cf9",
@@ -73,4 +64,4 @@
7364
"peacock.color": "#e05bf7",
7465
"css.format.enable": true,
7566
"css.lint.unknownAtRules": "ignore"
76-
}
67+
}

abcd.code-workspace

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,9 @@
7373
"javascript": "javascriptreact"
7474
},
7575
"eslint.options": {
76-
"extensions": [
77-
".js",
78-
".jsx",
79-
".md",
80-
".mdx",
81-
".ts",
82-
".tsx",
83-
".astro"
84-
]
85-
},
86-
"eslint.validate": [
87-
"mdx",
88-
"markdown",
89-
"javascript",
90-
"javascriptreact",
91-
"typescript",
92-
"typescriptreact",
93-
"astro"
94-
],
76+
"extensions": [".js", ".jsx", ".md", ".mdx", ".ts", ".tsx", ".astro"]
77+
},
78+
"eslint.validate": ["mdx", "markdown", "javascript", "javascriptreact", "typescript", "typescriptreact", "astro"],
9579
"explorer.compactFolders": false,
9680
"explorer.confirmDelete": false,
9781
"explorer.confirmDragAndDrop": false,
@@ -119,10 +103,7 @@
119103
},
120104
"git.autofetch": true,
121105
"git.branchPrefix": "feature/",
122-
"git.branchProtection": [
123-
"develop",
124-
"main"
125-
],
106+
"git.branchProtection": ["develop", "main"],
126107
"git.branchRandomName.enable": true,
127108
"git.confirmSync": false,
128109
"git.enableCommitSigning": false,
@@ -133,9 +114,7 @@
133114
"js/ts.implicitProjectConfig.checkJs": true,
134115
"peacock.affectSideBarBorder": true,
135116
"peacock.color": "#abcd00",
136-
"prettier.documentSelectors": [
137-
"**/*.astro"
138-
],
117+
"prettier.documentSelectors": ["**/*.astro"],
139118
"prettier.printWidth": 120,
140119
"prettier.quoteProps": "consistent",
141120
"prettier.singleQuote": false,
@@ -192,4 +171,4 @@
192171
".githooks/**": true
193172
}
194173
}
195-
}
174+
}
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
1+
{
2+
"name": "",
3+
"short_name": "",
4+
"icons": [
5+
{ "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
6+
{ "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
7+
],
8+
"theme_color": "#ffffff",
9+
"background_color": "#ffffff",
10+
"display": "standalone"
11+
}

src/assets/json/state.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,4 +477,4 @@
477477
"official_website": "https://www.py.gov.in",
478478
"isActive": true
479479
}
480-
]
480+
]

0 commit comments

Comments
 (0)