Skip to content

Commit 75f2fac

Browse files
authored
Merge pull request #837 from sheikhlimon/apply-eslint-format
chore: apply ESLint and Prettier formatting across codebase
2 parents 4f9ef25 + a5f4851 commit 75f2fac

File tree

164 files changed

+12825
-8354
lines changed

Some content is hidden

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

164 files changed

+12825
-8354
lines changed

.eslintignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build output
5+
build/
6+
dist/
7+
out/
8+
9+
# Caches / temp
10+
.cache/
11+
.tmp/
12+
.eslintcache
13+
14+
# Config files (optional)
15+
*.config.js
16+
babel.config.js
17+
18+
# Docs
19+
*.md
20+
*.mdx
21+
docs/**/*.md
22+
blog/**/*.md

.eslintrc.cjs

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
es2021: true,
6+
node: true,
7+
},
8+
extends: [
9+
"eslint:recommended",
10+
"plugin:react/recommended",
11+
"plugin:react/jsx-runtime",
12+
"plugin:@typescript-eslint/recommended",
13+
"prettier",
14+
],
15+
parser: "@typescript-eslint/parser",
16+
parserOptions: {
17+
ecmaFeatures: {
18+
jsx: true,
19+
},
20+
ecmaVersion: "latest",
21+
sourceType: "module",
22+
},
23+
plugins: ["react", "@typescript-eslint", "prettier"],
24+
settings: {
25+
react: {
26+
version: "detect",
27+
},
28+
},
29+
rules: {
30+
"prettier/prettier": "error",
31+
"react/react-in-jsx-scope": "off",
32+
"react/prop-types": "off",
33+
"react/no-unknown-property": "off",
34+
"react/display-name": "off",
35+
"@typescript-eslint/no-unused-vars": "off",
36+
"@typescript-eslint/no-explicit-any": "off",
37+
"@typescript-eslint/no-var-requires": "off",
38+
"@typescript-eslint/no-require-imports": "off",
39+
"@typescript-eslint/ban-ts-comment": "off",
40+
"@typescript-eslint/no-empty-object-type": "off",
41+
"no-console": "off",
42+
"no-undef": "off",
43+
"no-useless-escape": "off",
44+
"no-prototype-builtins": "off",
45+
"no-constant-condition": "off",
46+
"no-misleading-character-class": "off",
47+
"react/no-unescaped-entities": "off",
48+
},
49+
ignorePatterns: [
50+
"node_modules/",
51+
"build/",
52+
".docusaurus/",
53+
".cache-loader/",
54+
"tmp/",
55+
"static/",
56+
"*.config.js",
57+
"babel.config.js",
58+
],
59+
};

.prettierignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Documentation
2+
docs/**/*.md
3+
docs/**/*.mdx
4+
blog/**/*.md
5+
blog/**/*.mdx
6+
*.md
7+
*.mdx
8+
9+
# Build outputs
10+
node_modules/
11+
build/
12+
.docusaurus/
13+
.cache-loader/
14+
tmp/
15+
16+
# Package files
17+
package-lock.json

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": false,
3+
"semi": true,
4+
"tabWidth": 2,
5+
"printWidth": 80
6+
}

components.json

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
{
2-
"$schema": "https://ui.shadcn.com/schema.json",
3-
"style": "new-york",
4-
"rsc": false,
5-
"tsx": true,
6-
"tailwind": {
7-
"config": "",
8-
"css": "src/styles/globals.css",
9-
"baseColor": "neutral",
10-
"cssVariables": true,
11-
"prefix": ""
12-
},
13-
"aliases": {
14-
"components": "@site/src/components",
15-
"utils": "@site/src/lib/utils",
16-
"ui": "@site/src/components/ui",
17-
"lib": "@site/src/lib",
18-
"hooks": "@site/src/hooks"
19-
},
20-
"iconLibrary": "lucide"
21-
}
22-
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/styles/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@site/src/components",
15+
"utils": "@site/src/lib/utils",
16+
"ui": "@site/src/components/ui",
17+
"lib": "@site/src/lib",
18+
"hooks": "@site/src/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"label": "GitHub Basics",
3-
"position": 4,
4-
"link": {
5-
"type": "generated-index",
6-
"description": "In this section, you will learn the basics of HTML, including how to create a simple webpage and how to use HTML tags to structure your content."
7-
}
8-
}
2+
"label": "GitHub Basics",
3+
"position": 4,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "In this section, you will learn the basics of HTML, including how to create a simple webpage and how to use HTML tags to structure your content."
7+
}
8+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"label": "Maintainer Guide",
3-
"position": 4,
4-
"link": {
5-
"type": "generated-index",
6-
"description": "In this section, you will learn the basics of HTML, including how to create a simple webpage and how to use HTML tags to structure your content."
7-
}
8-
}
2+
"label": "Maintainer Guide",
3+
"position": 4,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "In this section, you will learn the basics of HTML, including how to create a simple webpage and how to use HTML tags to structure your content."
7+
}
8+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"label": "Setting up environment",
3-
"position": 2,
4-
"link": {
5-
"type": "generated-index",
6-
"description": "In this section, In this tutorial, you will learn how to set up your development environment for Git And GitHub.."
7-
}
8-
}
2+
"label": "Setting up environment",
3+
"position": 2,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "In this section, In this tutorial, you will learn how to set up your development environment for Git And GitHub.."
7+
}
8+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"label": "SQL Basics",
3-
"position": 4,
4-
"link": {
5-
"type": "generated-index",
6-
"description": "In this section, you will learn the basics of HTML, including how to create a simple webpage and how to use HTML tags to structure your content."
7-
}
8-
}
2+
"label": "SQL Basics",
3+
"position": 4,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "In this section, you will learn the basics of HTML, including how to create a simple webpage and how to use HTML tags to structure your content."
7+
}
8+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"label": "Table Transformation",
3-
"position": 4,
4-
"link": {
5-
"type": "generated-index",
6-
"description": "In this section, you will learn the basics of HTML, including how to create a simple webpage and how to use HTML tags to structure your content."
7-
}
8-
}
2+
"label": "Table Transformation",
3+
"position": 4,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "In this section, you will learn the basics of HTML, including how to create a simple webpage and how to use HTML tags to structure your content."
7+
}
8+
}

0 commit comments

Comments
 (0)