Skip to content

Commit 9a4d865

Browse files
committed
Add ESLint configuration and ignore files for improved code quality
- Introduced .eslintrc.json to set up ESLint with recommended rules and React support. - Added .eslintignore to exclude specific directories and files from linting, such as node_modules, build artifacts, and lock files. - Updated package-lock.json to reflect dependency changes and ensure consistency. - Minor adjustments to external link components for better accessibility by adding rel="noreferrer".
1 parent e95e818 commit 9a4d865

13 files changed

Lines changed: 12148 additions & 12060 deletions

File tree

.eslintignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
.next
3+
S3
4+
*.lock
5+
package-lock.json
6+
build
7+
dist
8+
coverage
9+
.dev
10+

.eslintrc.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": ["eslint:recommended", "plugin:react/recommended"],
8+
"parserOptions": {
9+
"ecmaVersion": "latest",
10+
"sourceType": "module",
11+
"ecmaFeatures": {
12+
"jsx": true
13+
}
14+
},
15+
"settings": {
16+
"react": {
17+
"version": "detect"
18+
}
19+
},
20+
"rules": {
21+
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
22+
"no-console": "off",
23+
"react/react-in-jsx-scope": "off",
24+
"react/prop-types": "off"
25+
}
26+
}

app/approach/data-governance/page.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ We will not operate in those regimes. As Hellō is a global web service, anyone
5353
As noted in the previous question, we will not adjust our data governance. We do not see this as a missed commercial opportunity as China already has alternative digital identity mechanisms.
5454

5555
</details>
56-

app/page.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ export default function Home() {
254254
href="https://blog.hello.coop/"
255255
target="_blank"
256256
className="inline-block text-base md:text-lg xl:text-2xl opacity-50 hover:opacity-100 transition-all ext-link-icon"
257+
rel="noreferrer"
257258
>
258259
Read more at blog.hello.coop
259260
</a>

components/animations/interchange-anim.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function InterchangeAnimation() {
1919
// Set opacity to 0 and position at start of path for #one through #seven
2020
numbers.forEach(num => {
2121
const elementSelector = `#interchange-animation #${num}`
22-
const pathSelector = `#interchange-animation #${num}-path`
22+
// const pathSelector = `#interchange-animation #${num}-path`
2323
gsap.set(elementSelector, {
2424
opacity: 0,
2525
})

components/blog-feed.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export default function BlogFeed() {
7171
href={p.url}
7272
target="_blank"
7373
className="no-global-hover flex flex-col md:flex-row items-center gap-5 md:gap-10 hover:bg-charcoal/10 dark:hover:bg-gray/10 rounded-md p-4 -m-4 transition-all"
74+
rel="noreferrer"
7475
>
7576
<img
7677
src={p.image}

components/products/coding-platforms.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ export default function CodingPlatforms({ showTitle = true, compact = false }) {
4343
href="https://www.hello.dev/docs/admin-mcp/"
4444
target="_blank"
4545
className="card-link-primary no-global-hover"
46+
rel="noreferrer"
4647
>
4748
Try out the Admin MCP Server
48-
<svg width={10} height={10} fil="currentColor" className="ml-2">
49+
<svg width={10} height={10} fill="currentColor" className="ml-2">
4950
<g>
5051
<path className="line" d="M 0 5 H 7" />
5152
<path className="tip" d="M 5 10 L 10 5 L 5 0" />
@@ -56,9 +57,10 @@ export default function CodingPlatforms({ showTitle = true, compact = false }) {
5657
href="https://www.hello.dev/docs/apis/admin/"
5758
target="_blank"
5859
className="card-link-secondary no-global-hover"
60+
rel="noreferrer"
5961
>
6062
Explore Admin API documentation
61-
<svg width={10} height={10} fil="currentColor" className="ml-2">
63+
<svg width={10} height={10} fill="currentColor" className="ml-2">
6264
<g>
6365
<path className="line" d="M 0 5 H 7" />
6466
<path className="tip" d="M 5 10 L 10 5 L 5 0" />

components/products/github-offboarding.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function GitHubOffboarding({ showTitle = true, compact = false })
6363
className="card-link-primary no-global-hover cursor-pointer"
6464
>
6565
Join the waitlist
66-
<svg width={10} height={10} fil="currentColor" className="ml-2">
66+
<svg width={10} height={10} fill="currentColor" className="ml-2">
6767
<g>
6868
<path className="line" d="M 0 5 H 7" />
6969
<path className="tip" d="M 5 10 L 10 5 L 5 0" />

components/products/hello-b2b-sso.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ export default function HelloB2BSSO({ showTitle = true, compact = false }) {
4141
href="https://www.hello.dev/docs/getting-started/"
4242
target="_blank"
4343
className="card-link-primary no-global-hover"
44+
rel="noreferrer"
4445
>
4546
Get started
46-
<svg width={10} height={10} fil="currentColor" className="ml-2">
47+
<svg width={10} height={10} fill="currentColor" className="ml-2">
4748
<g>
4849
<path className="line" d="M 0 5 H 7" />
4950
<path className="tip" d="M 5 10 L 10 5 L 5 0" />
@@ -54,9 +55,10 @@ export default function HelloB2BSSO({ showTitle = true, compact = false }) {
5455
href="https://www.b2bsaasdemo.com/"
5556
target="_blank"
5657
className="card-link-secondary no-global-hover"
58+
rel="noreferrer"
5759
>
5860
Try out the B2B demo
59-
<svg width={10} height={10} fil="currentColor" className="ml-2">
61+
<svg width={10} height={10} fill="currentColor" className="ml-2">
6062
<g>
6163
<path className="line" d="M 0 5 H 7" />
6264
<path className="tip" d="M 5 10 L 10 5 L 5 0" />

components/products/hello-b2c-sso.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ export default function HelloB2BSSO({ showTitle = true, compact = false }) {
3838
href="https://www.hello.dev/docs/getting-started/"
3939
target="_blank"
4040
className="card-link-primary no-global-hover"
41+
rel="noreferrer"
4142
>
4243
Get started
43-
<svg width={10} height={10} fil="currentColor" className="ml-2">
44+
<svg width={10} height={10} fill="currentColor" className="ml-2">
4445
<g>
4546
<path className="line" d="M 0 5 H 7" />
4647
<path className="tip" d="M 5 10 L 10 5 L 5 0" />
@@ -51,9 +52,10 @@ export default function HelloB2BSSO({ showTitle = true, compact = false }) {
5152
href="https://www.greenfielddemo.com/"
5253
target="_blank"
5354
className="card-link-secondary no-global-hover"
55+
rel="noreferrer"
5456
>
5557
Try out the B2C demo
56-
<svg width={10} height={10} fil="currentColor" className="ml-2">
58+
<svg width={10} height={10} fill="currentColor" className="ml-2">
5759
<g>
5860
<path className="line" d="M 0 5 H 7" />
5961
<path className="tip" d="M 5 10 L 10 5 L 5 0" />

0 commit comments

Comments
 (0)