Skip to content

Commit 10b730a

Browse files
committed
Merge branch 'dev' into pr/12960
2 parents 7ce3742 + e80543d commit 10b730a

File tree

188 files changed

+2825
-1151
lines changed

Some content is hidden

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

188 files changed

+2825
-1151
lines changed

.all-contributorsrc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12168,6 +12168,51 @@
1216812168
"contributions": [
1216912169
"tool"
1217012170
]
12171+
},
12172+
{
12173+
"login": "SnehalSrivastava27",
12174+
"name": "SnehalSrivastava27",
12175+
"avatar_url": "https://avatars.githubusercontent.com/u/118104081?v=4",
12176+
"profile": "https://github.com/SnehalSrivastava27",
12177+
"contributions": [
12178+
"maintenance"
12179+
]
12180+
},
12181+
{
12182+
"login": "wrexgem",
12183+
"name": "wrexgem",
12184+
"avatar_url": "https://avatars.githubusercontent.com/u/134736543?v=4",
12185+
"profile": "https://github.com/wrexgem",
12186+
"contributions": [
12187+
"tool"
12188+
]
12189+
},
12190+
{
12191+
"login": "cd-sigma",
12192+
"name": "ciphernova",
12193+
"avatar_url": "https://avatars.githubusercontent.com/u/119534349?v=4",
12194+
"profile": "https://github.com/cd-sigma",
12195+
"contributions": [
12196+
"content"
12197+
]
12198+
},
12199+
{
12200+
"login": "CodeMongerrr",
12201+
"name": "Aditya Joshi",
12202+
"avatar_url": "https://avatars.githubusercontent.com/u/99281767?v=4",
12203+
"profile": "https://github.com/CodeMongerrr",
12204+
"contributions": [
12205+
"ideas"
12206+
]
12207+
},
12208+
{
12209+
"login": "Khemmie-Ray",
12210+
"name": "Atoyebi Oluwakemi",
12211+
"avatar_url": "https://avatars.githubusercontent.com/u/89976006?v=4",
12212+
"profile": "https://github.com/Khemmie-Ray",
12213+
"contributions": [
12214+
"maintenance"
12215+
]
1217112216
}
1217212217
],
1217312218
"contributorsPerLine": 7,

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.next
22
dist
33
node_modules/
4+
5+
!.storybook

.eslintrc.json

Lines changed: 66 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
{
22
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
35
"next/core-web-vitals",
46
"prettier",
57
"plugin:storybook/recommended"
68
],
7-
"env": { "es6": true },
8-
"plugins": ["simple-import-sort"],
9+
"env": {
10+
"es6": true
11+
},
12+
"plugins": [
13+
"simple-import-sort",
14+
"@typescript-eslint",
15+
"unused-imports"
16+
],
17+
"parser": "@typescript-eslint/parser",
918
"rules": {
1019
"simple-import-sort/imports": [
1120
"error",
@@ -17,32 +26,76 @@
1726
],
1827
// Packages. `react` related packages come first.
1928
// Also, put `react-icons` in sorting order not with `react`
20-
["^react(?!-.)$", "^\\w", "^@\\w"],
29+
[
30+
"^react(?!-.)$",
31+
"^\\w",
32+
"^@\\w"
33+
],
2134
// The Chakra theme directory if imported to story file or other places
22-
["^@/@chakra-ui"],
35+
[
36+
"^@/@chakra-ui"
37+
],
2338
// From the `types` directory.
24-
["^@/lib/types", "^@/lib/interfaces"],
39+
[
40+
"^@/lib/types",
41+
"^@/lib/interfaces"
42+
],
2543
// From the `components` directory.
26-
["^@/components"],
44+
[
45+
"^@/components"
46+
],
2747
// From the `utils` directory.
28-
["^@/lib/utils"],
48+
[
49+
"^@/lib/utils"
50+
],
2951
// From the `data` directory.
30-
["^@/data"],
52+
[
53+
"^@/data"
54+
],
3155
// From the `constants` directory.
3256
["^@/lib/constants"],
3357
// From the `.storybook/utils` file
3458
["^@/storybook-utils"],
3559
// Parent imports. Put `..` last.
36-
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
60+
[
61+
"^\\.\\.(?!/?$)",
62+
"^\\.\\./?$"
63+
],
3764
// Other relative imports. Put same-folder imports and `.` last.
38-
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
65+
[
66+
"^\\./(?=.*/)(?!/?$)",
67+
"^\\.(?!/?$)",
68+
"^\\./?$"
69+
],
3970
// Style imports.
40-
["^.+\\.s?css$"],
71+
[
72+
"^.+\\.s?css$"
73+
],
4174
// Side effect imports.
42-
["^\\u0000"]
75+
[
76+
"^\\u0000"
77+
]
4378
]
4479
}
4580
],
46-
"simple-import-sort/exports": "error"
81+
"simple-import-sort/exports": "error",
82+
"no-unused-vars": "off",
83+
"@typescript-eslint/no-unused-vars": "off",
84+
"@typescript-eslint/no-explicit-any": [
85+
"error",
86+
{
87+
"fixToUnknown": true
88+
}
89+
],
90+
"unused-imports/no-unused-vars": [
91+
"error",
92+
{
93+
"args": "all",
94+
"argsIgnorePattern": "^_$",
95+
"varsIgnorePattern": "^_$"
96+
}
97+
],
98+
"unused-imports/no-unused-imports-ts": "warn"
4799
}
48100
}
101+

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.lintstagedrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const path = require("path")
2+
3+
const buildEslintCommand = (filenames) =>
4+
`next lint --fix --file ${filenames
5+
.map((f) => path.relative(process.cwd(), f))
6+
.join(" --file ")}`
7+
8+
module.exports = {
9+
"*.{js,jsx,ts,tsx}": [buildEslintCommand],
10+
}

.storybook/i18next.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const ns = [
1919
"page-learn",
2020
"page-upgrades",
2121
"page-developers-index",
22+
"page-what-is-ethereum",
2223
] as const
2324
const supportedLngs = Object.keys(baseLocales)
2425

.storybook/main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import type { StorybookConfig } from "@storybook/nextjs"
2-
import { propNames } from "@chakra-ui/react"
3-
41
import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin"
2+
import { propNames } from "@chakra-ui/react"
3+
import type { StorybookConfig } from "@storybook/nextjs"
54

65
/**
76
* Note regarding package.json settings related to Storybook:

.storybook/manager-head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<link rel="icon" type="image/png" href="/favicon.png" sizes="192x192" />

.storybook/manager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { addons } from "@storybook/manager-api"
2-
import theme from "./theme"
2+
33
import favicon from "../public/images/favicon.png"
44

5+
import theme from "./theme"
6+
57
addons.setConfig({
68
theme,
79
})

.storybook/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { getI18n } from "react-i18next"
2+
23
import { ns as exposedNs } from "./i18next"
34

45
/**

0 commit comments

Comments
 (0)