Skip to content

Commit ecbdb5c

Browse files
committed
chore: fix eslint rules
1 parent 2e5f6d1 commit ecbdb5c

File tree

12 files changed

+220
-257
lines changed

12 files changed

+220
-257
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# directories
22
.docusaurus
3+
build
34
node_modules
45
repos
6+
static
57

68
# files
79
babel.config.js
810
docusaurus.config.ts
11+
sidebars.js

.eslintrc.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,29 @@ env:
33
extends:
44
- "eslint:recommended"
55
- "plugin:@docusaurus/recommended"
6-
- "plugin:@typescript-eslint/recommended"
7-
- "plugin:mdx/recommended"
8-
- "plugin:react/recommended"
96
overrides:
107
- files:
118
- "*.md"
129
- "*.mdx"
10+
extends:
11+
- "plugin:mdx/recommended"
12+
- "plugin:react/recommended"
1313
parser: "eslint-mdx"
1414
rules:
1515
no-unused-expressions: "off"
1616
- files:
1717
- "*.ts"
1818
- "*.tsx"
19+
extends:
20+
- "plugin:@typescript-eslint/recommended"
21+
- "plugin:react/recommended"
1922
parser: "@typescript-eslint/parser"
2023
parserOptions:
24+
ecmaFeatures:
25+
jsx: true
26+
ecmaVersion: "latest"
2127
project: "tsconfig.json"
28+
sourceType: "module"
2229
plugins:
2330
- "@typescript-eslint"
2431
rules:
@@ -30,13 +37,8 @@ overrides:
3037
- error
3138
- argsIgnorePattern: ^_
3239
varsIgnorePattern: ^_
33-
parserOptions:
34-
ecmaFeatures:
35-
jsx: true
36-
ecmaVersion: "latest"
40+
"react/react-in-jsx-scope": "off"
3741
root: true
38-
rules:
39-
"react/react-in-jsx-scope": "off"
4042
settings:
4143
react:
4244
version: "detect"

.lintstagedrc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
"*.{json,md,mdx,ts,tsx,yml}": "bun run fix"
1+
"*.{md,mdx,ts,tsx}": "bun run lint:fix"
2+
"*.{json,md,mdx,ts,tsx,yml}": "bun run prettier:write"

bun.lock

Lines changed: 92 additions & 42 deletions
Large diffs are not rendered by default.

docs/guides/airdrops/examples/02-create-campaign.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Now that we have the `baseParams` ready, it's time to setup rest of the input pa
169169
### Aggregate Amount
170170

171171
This is the total amount of tokens you want to airdrop to your users, denoted in units of the asset's decimals. Let say
172-
you want to airdrop 100M tokens of DAI. Then, the aggregate amount would be $100M*10^{18}$.
172+
you want to airdrop 100M tokens of DAI. Then, the aggregate amount would be $100Mm*10^{18}$.
173173

174174
```solidity
175175
uint256 aggregateAmount = 100000000e18;

docs/guides/flow/04-gas-benchmarks.md

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
id: "gas-benchmarks"
3+
sidebar_position: 4
4+
title: "Gas Benchmarks"
5+
---
6+
7+
import RemoteGFMContent from "@site/src/components/atoms/RemoteGFMContent";
8+
9+
The gas usage of the Flow protocol is not deterministic and varies by user. Calls to third-party contracts, such as
10+
ERC-20 tokens, may use an arbitrary amount of gas. The values in the table below are rough estimations on Ethereum
11+
mainnet - you shouldn't take them for granted. The gas usage may vary depending on the network.
12+
13+
:::note
14+
15+
The benchmarks were generated using the code in this [GitHub repository](https://github.com/sablier-labs/benchmarks).
16+
17+
:::
18+
19+
## SablierFlow
20+
21+
<RemoteGFMContent url="https://raw.githubusercontent.com/sablier-labs/benchmarks/cf6ab25/results/flow/flow.md" />

docs/guides/lockup/04-gas-benchmarks.md

Lines changed: 0 additions & 141 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
id: "gas-benchmarks"
3+
sidebar_position: 4
4+
title: "Gas Benchmarks"
5+
---
6+
7+
import RemoteGFMContent from "@site/src/components/atoms/RemoteGFMContent";
8+
9+
The gas usage of the Lockup protocol is not deterministic and varies by user. Calls to third-party contracts, such as
10+
ERC-20 tokens, may use an arbitrary amount of gas. The values in the table below are rough estimations on Ethereum
11+
mainnet - you shouldn't take them for granted. The gas usage may vary depending on the network.
12+
13+
:::note
14+
15+
The benchmarks were generated using the code in this [GitHub repository](https://github.com/sablier-labs/benchmarks).
16+
17+
:::
18+
19+
## BatchLockup
20+
21+
<RemoteGFMContent url="https://raw.githubusercontent.com/sablier-labs/benchmarks/cf6ab25/results/lockup/batch-lockup.md" />
22+
23+
## LockupLinear streams
24+
25+
<RemoteGFMContent url="https://raw.githubusercontent.com/sablier-labs/benchmarks/cf6ab25/results/lockup/lockup-linear.md" />
26+
27+
## LockupDynamic streams
28+
29+
<RemoteGFMContent url="https://raw.githubusercontent.com/sablier-labs/benchmarks/cf6ab25/results/lockup/lockup-dynamic.md" />
30+
31+
## LockupTranched streams
32+
33+
<RemoteGFMContent url="https://raw.githubusercontent.com/sablier-labs/benchmarks/cf6ab25/results/lockup/lockup-tranched.md" />

formatter.js

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

0 commit comments

Comments
 (0)