Skip to content

Commit 13e794f

Browse files
authored
v1.14 (#331)
1 parent be1da15 commit 13e794f

File tree

746 files changed

+24297
-22794
lines changed

Some content is hidden

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

746 files changed

+24297
-22794
lines changed

.env

Lines changed: 0 additions & 4 deletions
This file was deleted.

.env.development

Lines changed: 0 additions & 13 deletions
This file was deleted.

.env.goerli

Lines changed: 0 additions & 12 deletions
This file was deleted.

.env.mainnet

Lines changed: 0 additions & 12 deletions
This file was deleted.

.eslintrc.js

Lines changed: 1 addition & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,4 @@
11
module.exports = {
22
root: true,
3-
env: {
4-
browser: true,
5-
node: true,
6-
amd: true,
7-
es6: true,
8-
es2020: true,
9-
jquery: false
10-
},
11-
extends: [
12-
'eslint:recommended',
13-
'react-app',
14-
'plugin:react/recommended',
15-
'plugin:react-hooks/recommended',
16-
'plugin:jsx-a11y/recommended'
17-
],
18-
parser: '@babel/eslint-parser',
19-
parserOptions: {
20-
babelOptions: {
21-
presets: ['@babel/preset-react']
22-
},
23-
requireConfigFile: false,
24-
sourceType: 'module'
25-
},
26-
plugins: ['@babel', 'import', 'react', 'react-hooks', 'jest', 'jsx-a11y', 'prettier'],
27-
settings: {
28-
'import/core-modules': [],
29-
'import/ignore': ['node_modules', '\\.(coffee|scss|css|less|hbs|svg|json)$'],
30-
react: {
31-
pragma: 'React', // Pragma to use, default to "React"
32-
version: 'detect' // React version. "detect" automatically picks the version you have installed.
33-
},
34-
jest: {
35-
// version: require('jest/package.json').version,
36-
}
37-
},
38-
rules: {
39-
'no-confusing-arrow': ['error', {allowParens: true}],
40-
'no-console': 'warn',
41-
'no-var': 'warn',
42-
'no-unused-vars': 'error',
43-
'object-shorthand': 'error',
44-
'prefer-const': 'warn',
45-
'prefer-template': 'warn',
46-
'import/no-anonymous-default-export': 'off',
47-
'prettier/prettier': 'error',
48-
'react/react-in-jsx-scope': 'off',
49-
'react-hooks/rules-of-hooks': 'error',
50-
'react-hooks/exhaustive-deps': 'off',
51-
quotes: ['error', 'single', {avoidEscape: true}],
52-
'comma-dangle': [
53-
'off',
54-
{
55-
arrays: 'always-multiline',
56-
objects: 'always-multiline',
57-
imports: 'always-multiline',
58-
exports: 'always-multiline',
59-
functions: 'ignore'
60-
}
61-
],
62-
'react/jsx-sort-props': [
63-
2,
64-
{
65-
callbacksLast: true,
66-
shorthandFirst: true,
67-
reservedFirst: true
68-
}
69-
],
70-
'prefer-destructuring': [
71-
'warn',
72-
{
73-
object: true,
74-
array: false
75-
}
76-
],
77-
'jsx-a11y/click-events-have-key-events': 'off',
78-
'jsx-a11y/no-static-element-interactions': 'off'
79-
}
3+
extends: ['base']
804
};

.gitignore

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,39 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
# dependencies
4-
/node_modules
5-
/.pnp
4+
node_modules
5+
dist
6+
.pnp
67
.pnp.js
78

89
# testing
9-
/coverage
10+
coverage
1011

11-
# production
12-
/build
12+
# next.js
13+
.next/
14+
out/
15+
build
1316

1417
# misc
1518
.DS_Store
19+
*.pem
20+
21+
# debug
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
.pnpm-debug.log*
26+
27+
# local env files
1628
.env.local
1729
.env.development.local
1830
.env.test.local
1931
.env.production.local
2032

21-
npm-debug.log*
22-
yarn-debug.log*
23-
yarn-error.log*
33+
# turbo
34+
.turbo
35+
36+
# WebStorm
2437
.idea
38+
39+
.history

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
build
2-
node_modules
3-
CHANGELOG.md
1+
pnpm-lock.yaml

.prettierrc.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"arrowParens": "avoid",
33
"bracketSpacing": false,
44
"embeddedLanguageFormatting": "auto",
5-
"htmlWhitespaceSensitivity": "css",
65
"insertPragma": false,
7-
"jsxSingleQuote": false,
86
"printWidth": 100,
97
"proseWrap": "preserve",
108
"quoteProps": "as-needed",
@@ -14,7 +12,10 @@
1412
"tabWidth": 2,
1513
"trailingComma": "none",
1614
"useTabs": false,
17-
"importOrder": ["^[./]"],
18-
"experimentalBabelParserPluginsList": ["jsx"],
19-
"importOrderSeparation": true
15+
"importOrder": ["^@(.*)$", "^[./]"],
16+
"importOrderSeparation": true,
17+
"importOrderSortSpecifiers": true,
18+
"htmlWhitespaceSensitivity": "css",
19+
"jsxSingleQuote": false,
20+
"plugins": ["@trivago/prettier-plugin-sort-imports"]
2021
}

.stylelintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

generate-react-cli.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 36 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,44 @@
11
{
2-
"name": "starkgate-frontend",
3-
"version": "1.11.0",
4-
"homepage": "./",
2+
"private": true,
3+
"workspaces": [
4+
"workspace/apps/**/*",
5+
"workspace/packages/*",
6+
"workspace/tools/*",
7+
"workspace/pipeline/*"
8+
],
59
"scripts": {
6-
"prebuild": "yarn run clean",
7-
"build": "react-scripts build",
8-
"build:goerli": "GENERATE_SOURCEMAP=false env-cmd -f .env.goerli yarn run build",
9-
"build:mainnet": "GENERATE_SOURCEMAP=false env-cmd -f .env.mainnet yarn run build",
10-
"clean": "rm -rf ./dist",
11-
"eject": "react-scripts eject",
12-
"format": "yarn run -s format:scripts & yarn run -s format:styles & yarn run -s format:prettier",
13-
"format:prettier": "prettier --write **/*.{js,jsx,css,scss,yaml,yml,md}",
14-
"format:scripts": "eslint --fix **/*.{js,jsx}",
15-
"format:styles": "stylelint --fix **/*.{css,scss}",
16-
"lint": "yarn run -s lint:scripts & yarn run -s lint:styles & yarn run -s lint:prettier",
17-
"lint:prettier": "prettier --check **/*.{js,jsx,css,scss}",
18-
"lint:scripts": "eslint **/*.{js,jsx}",
19-
"lint:styles": "stylelint **/*.{css,scss}",
20-
"start": "ESLINT_NO_DEV_ERRORS=true react-scripts start",
21-
"test": "react-scripts test --env=jsdom"
22-
},
23-
"husky": {
24-
"hooks": {
25-
"pre-commit": "lint-staged"
26-
}
27-
},
28-
"lint-staged": {
29-
"**/*.{js,jsx}": [
30-
"prettier --write",
31-
"eslint --fix",
32-
"git add"
33-
],
34-
"**/*.{css,scss}": [
35-
"prettier --write",
36-
"stylelint --fix",
37-
"git add"
38-
]
39-
},
40-
"browserslist": {
41-
"production": [
42-
"chrome >= 67",
43-
"edge >= 79",
44-
"firefox >= 68",
45-
"opera >= 54",
46-
"safari >= 14"
47-
],
48-
"development": [
49-
"last 1 chrome version",
50-
"last 1 firefox version",
51-
"last 1 safari version"
52-
]
53-
},
54-
"dependencies": {
55-
"@emotion/react": "^11.8.2",
56-
"@emotion/styled": "^11.8.1",
57-
"@headlessui/react": "^1.5.0",
58-
"@metamask/onboarding": "^1.0.1",
59-
"@mui/material": "^5.5.3",
60-
"@mui/styles": "^5.5.0",
61-
"@splitbee/web": "^0.3.0",
62-
"@starkware-industries/commons-js-enums": "^1.2.0",
63-
"@starkware-industries/commons-js-hooks": "^1.0.0",
64-
"@starkware-industries/commons-js-utils": "^1.2.0",
65-
"get-starknet": "1.5.0",
66-
"react": "^17.0.2",
67-
"react-dom": "^17.0.2",
68-
"react-hot-toast": "^2.2.0",
69-
"react-router": "^6.3.0",
70-
"react-router-dom": "6",
71-
"react-scripts": "4.0.3",
72-
"starknet": "4.9.0",
73-
"use-breakpoint": "^3.0.1",
74-
"use-deep-compare-effect": "^1.8.1",
75-
"use-wallet": "^0.13.6",
76-
"web3": "^1.8.1"
10+
"prebuild": "turbo run prebuild",
11+
"build": "turbo run build",
12+
"clean": "turbo run clean",
13+
"dev": "turbo run dev --parallel",
14+
"dev:apps": "node ./scripts/dev-apps.js",
15+
"dev:apps:starkgate/web": "pnpm run dev:apps starkgate/web",
16+
"format": "sort-package-json && prettier --write \"**.+(js|json|md|yaml)\" && turbo run format --parallel",
17+
"lint": "turbo run lint",
18+
"npkill": "npkill",
19+
"pack": "turbo run pack",
20+
"pipeline": "pipeline"
7721
},
7822
"devDependencies": {
79-
"@babel/cli": "^7.16.0",
80-
"@babel/core": "^7.16.0",
81-
"@babel/eslint-parser": "^7.16.3",
82-
"@babel/eslint-plugin": "^7.14.5",
83-
"@babel/plugin-proposal-class-properties": "^7.16.0",
84-
"@babel/plugin-syntax-flow": "^7.16.0",
85-
"@babel/plugin-transform-react-jsx": "^7.16.0",
86-
"@babel/preset-flow": "^7.16.0",
87-
"@babel/preset-react": "^7.16.0",
88-
"@testing-library/jest-dom": "^5.16.1",
89-
"@testing-library/react": "^11.2.7",
90-
"@testing-library/user-event": "^12.8.3",
91-
"@trivago/prettier-plugin-sort-imports": "^2.0.4",
92-
"env-cmd": "^10.1.0",
93-
"eslint-config-prettier": "^8.3.0",
94-
"eslint-config-react-app": "^6.0.0",
95-
"eslint-plugin-flowtype": "^8.0.3",
96-
"eslint-plugin-import": "^2.22.1",
97-
"eslint-plugin-jest": "^25.3.0",
98-
"eslint-plugin-jsx-a11y": "^6.5.1",
99-
"eslint-plugin-prettier": "^3.4.0",
100-
"eslint-plugin-react": "^7.23.2",
101-
"eslint-plugin-react-hooks": "^4.3.0",
102-
"eslint-plugin-testing-library": "^5.0.1",
103-
"husky": "^7.0.4",
104-
"lint-staged": "^12.1.2",
105-
"node-sass": "^6.0.1",
106-
"postcss": "^8.4.4",
107-
"prettier": "^2.5.1",
108-
"prettier-stylelint": "^0.4.2",
109-
"prop-types": "^15.7.2",
110-
"sass-loader": "^12.1.0",
111-
"stylelint": "^14.1.0",
112-
"stylelint-config-css-modules": "^4.1.0",
113-
"stylelint-config-prettier": "^9.0.3",
114-
"stylelint-config-standard": "^24.0.0",
115-
"stylelint-config-standard-scss": "^3.0.0",
116-
"stylelint-prettier": "^2.0.0",
117-
"stylelint-scss": "^4.0.0"
23+
"@changesets/cli": "^2.26.0",
24+
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
25+
"eslint-config-base": "workspace:*",
26+
"npkill": "^0.10.0",
27+
"prettier": "^2.8.4",
28+
"sort-package-json": "^2.4.1",
29+
"turbo": "1.9.3"
11830
},
31+
"packageManager": "pnpm@8.3.1",
11932
"engines": {
120-
"node": ">=16.0.0",
121-
"npm": ">=8.0.0"
33+
"node": ">=16.0.0"
34+
},
35+
"pnpm": {
36+
"neverBuiltDependencies": [
37+
"node-hid",
38+
"usb"
39+
],
40+
"overrides": {
41+
"ethereumjs-abi": "0.6.8"
42+
}
12243
}
12344
}

0 commit comments

Comments
 (0)