Skip to content

Commit

Permalink
style: prettier tab width 120
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed Feb 11, 2025
1 parent dd286c4 commit 6a618c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
7 changes: 1 addition & 6 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
bracketSpacing: true
jsonRecursiveSort: true #https://github.com/Gudahtt/prettier-plugin-sort-json#json-recursive-sort
printWidth: 80
printWidth: 120
proseWrap: "always"
trailingComma: "all"

overrides:
- files: ["*.md", "*.yml"]
options:
printWidth: 120
25 changes: 4 additions & 21 deletions test/list.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,7 @@ describe("buildList", function () {

it("contains no duplicate symbols", function () {
// manual override to approve certain tokens with duplicate symbols
const approvedDuplicateSymbols = [
"amp",
"bank",
"flx",
"ichi",
"rdnt",
"slp",
"usdc",
"usds",
];
const approvedDuplicateSymbols = ["amp", "bank", "flx", "ichi", "rdnt", "slp", "usdc", "usds"];

const map = {};
for (let token of defaultTokenList.tokens) {
Expand All @@ -51,10 +42,7 @@ describe("buildList", function () {
continue;
} else {
const key = `${token.chainId}-${symbol}`;
expect(typeof map[key]).to.equal(
"undefined",
`duplicate symbol: ${symbol} ${key} ${token.address}`,
);
expect(typeof map[key]).to.equal("undefined", `duplicate symbol: ${symbol} ${key} ${token.address}`);
map[key] = true;
}
}
Expand All @@ -71,20 +59,15 @@ describe("buildList", function () {
continue;
} else {
const key = `${token.chainId}-${token.name.toLowerCase()}`;
expect(typeof map[key]).to.equal(
"undefined",
`duplicate name: ${token.name}`,
);
expect(typeof map[key]).to.equal("undefined", `duplicate name: ${token.name}`);
map[key] = true;
}
}
});

it("all addresses are valid and checksummed", function () {
for (let token of defaultTokenList.tokens) {
expect(getAddress(token.address).toLowerCase()).to.eq(
token.address.toLowerCase(),
);
expect(getAddress(token.address).toLowerCase()).to.eq(token.address.toLowerCase());
}
});

Expand Down

0 comments on commit 6a618c0

Please sign in to comment.