-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: migrate to ts #1
Changes from 22 commits
cf34a32
e076414
46a91ef
551fd14
5aeb433
a1b2dd1
e4f01c4
119482e
540b442
479a66f
ba5bacf
57a8f8b
034974e
905a40d
623253d
5b9c309
4871454
2b31219
bb20d2e
6a087ca
332c69e
c5ae421
fdb1974
9c88394
536f361
4741d6d
5c5737b
e766ea7
ee24e3d
f84cb55
c8b5593
61122cb
5dea8cb
7adc547
fc769ec
0c93f41
40640b0
f1ea4e2
20388df
3f59501
50109c9
01f6d55
c930d56
e23589b
c4593c2
286bc45
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
ignorePatterns: | ||
- '*.d.ts' | ||
- 'dist' | ||
- "rollup.config.ts" | ||
|
||
env: | ||
browser: true | ||
|
||
extends: | ||
- plugin:prettier/recommended | ||
|
||
parser: '@typescript-eslint/parser' | ||
|
||
parserOptions: | ||
project: './tsconfig.json' | ||
sourceType: module | ||
|
||
settings: | ||
import/internal-regex: ^@ramp-instant/ | ||
|
||
plugins: | ||
- eslint-plugin-import | ||
- simple-import-sort | ||
- eslint-plugin-prettier | ||
|
||
rules: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As I fan of single quotes I would recommend you to use single quotes for imports, strings etc :D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also ramp-instant uses single quotes mostly |
||
arrow-parens: | ||
- off | ||
- always | ||
comma-dangle: 0 | ||
no-empty: error | ||
import/no-extraneous-dependencies: error | ||
no-restricted-imports: | ||
- error | ||
- patterns: | ||
- '../*' # forbid parent-relative imports | ||
|
||
simple-import-sort/imports: | ||
- error | ||
- groups: # see https://github.com/lydell/eslint-plugin-simple-import-sort#custom-grouping | ||
- ["^@?\\w"] # regular npm packages | ||
- ["^\\."] # sibling files |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,6 @@ typings/ | |
|
||
# .idea | ||
.idea | ||
|
||
# dist | ||
dist |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,251 @@ | ||
{ | ||
"cSpell.words": [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also I would suggest to sort these words alphabetically ;D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorted |
||
"bitcoincash" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing comma There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is for the VSC extension so linting rules doesn't apply here |
||
"0x", | ||
"zrx", | ||
"Aave", | ||
"lend", | ||
"AdEx", | ||
"adx", | ||
"aelf", | ||
"ELF", | ||
"Aeternity", | ||
"ae", | ||
"Algorand", | ||
"algo", | ||
"Aragon", | ||
"ant", | ||
"Ardor", | ||
"ardr", | ||
"Augur", | ||
"rep", | ||
"AuroraCoin", | ||
"aur", | ||
"Australian Dollars", | ||
"aud", | ||
"Bancor", | ||
"bnt", | ||
"Bankex", | ||
"bkx", | ||
"BasicAttentionToken", | ||
"bat", | ||
"BeaverCoin", | ||
"bvc", | ||
"BinanceCoin", | ||
"bnb", | ||
"BioCoin", | ||
"bio", | ||
"Bitcoin", | ||
"btc", | ||
"Bitcoin Diamond", | ||
"bcd", | ||
"BitcoinCash", | ||
"bcc", | ||
"bch", | ||
"BitcoinGold", | ||
"btg", | ||
"BitcoinPrivate", | ||
"btcp", | ||
"BitcoinZ", | ||
"btcz", | ||
"Bitquence", | ||
"bqx", | ||
"Bitshares", | ||
"bts", | ||
"BitTorrent", | ||
"btt", | ||
"Blockstack", | ||
"stx", | ||
"Callisto", | ||
"clo", | ||
"Cardano", | ||
"ada", | ||
"Chainlink", | ||
"link", | ||
"Civic", | ||
"cvc", | ||
"Cosmos", | ||
"atom", | ||
"dash", | ||
"Decentraland", | ||
"MANA", | ||
"Decred", | ||
"dcr", | ||
"dent", | ||
"DigiByte", | ||
"dgb", | ||
"District0x", | ||
"dnt", | ||
"DogeCoin", | ||
"doge", | ||
"Enigma", | ||
"eng", | ||
"Enjin Coin", | ||
"enj", | ||
"eos", | ||
"Ethereum", | ||
"eth", | ||
"EthereumClassic", | ||
"etc", | ||
"EtherZero", | ||
"etz", | ||
"ethos", | ||
"Expanse", | ||
"exp", | ||
"FreiCoin", | ||
"frc", | ||
"FunFair", | ||
"fun", | ||
"GameCredits", | ||
"game", | ||
"GarliCoin", | ||
"grlc", | ||
"Gnosis", | ||
"gno", | ||
"Golem", | ||
"gnt", | ||
"Hedera Hashgraph", | ||
"hbar", | ||
"Holo", | ||
"HOT", | ||
"Horizen", | ||
"zen", | ||
"hush", | ||
"ICON", | ||
"icx", | ||
"iExec RLC", | ||
"rlc", | ||
"Internet of Services", | ||
"IOST", | ||
"iota", | ||
"Komodo", | ||
"kmd", | ||
"Lisk", | ||
"lsk", | ||
"LiteCoin", | ||
"ltc", | ||
"Matchpool", | ||
"gup", | ||
"MegaCoin", | ||
"mec", | ||
"Melon", | ||
"mln", | ||
"Metal", | ||
"mtl", | ||
"Monacao", | ||
"mco", | ||
"MonaCoin", | ||
"mona", | ||
"Monero", | ||
"xmr", | ||
"NameCoin", | ||
"nmc", | ||
"nano", | ||
"NEM", | ||
"xem", | ||
"neo", | ||
"NeoGas", | ||
"gas", | ||
"Nexus", | ||
"nxs", | ||
"Numeraire", | ||
"nmr", | ||
"Odyssey", | ||
"ocn", | ||
"OmiseGO", | ||
"omg", | ||
"Ontology", | ||
"ont", | ||
"Ontology Gas", | ||
"ong", | ||
"Paxos Standard Token", | ||
"pax", | ||
"PeerCoin", | ||
"ppc", | ||
"pivx", | ||
"Polymath", | ||
"poly", | ||
"Populous", | ||
"ppt", | ||
"PowerLedger", | ||
"powr", | ||
"PrimeCoin", | ||
"xpm", | ||
"ProtoShares", | ||
"pts", | ||
"Pundi X", | ||
"npxs", | ||
"qtum", | ||
"RaiBlocks", | ||
"xrb", | ||
"Ravencoin", | ||
"rvn", | ||
"RipioCreditNetwork", | ||
"rcn", | ||
"Ripple", | ||
"xrp", | ||
"salt", | ||
"Siacoin", | ||
"sc", | ||
"SnowGem", | ||
"sng", | ||
"SolarCoin", | ||
"slr", | ||
"Status", | ||
"snt", | ||
"steem", | ||
"Stellar Lumens", | ||
"xlm", | ||
"storj", | ||
"storm", | ||
"Stratis", | ||
"strat", | ||
"Substratum", | ||
"sub", | ||
"Swarm City", | ||
"swt", | ||
"Syscoin", | ||
"sys", | ||
"TenX", | ||
"pay", | ||
"Tether", | ||
"usdt", | ||
"Tezos", | ||
"XTZ", | ||
"theta", | ||
"Tron", | ||
"trx", | ||
"TrueUSD", | ||
"tusd", | ||
"USD Coin", | ||
"usdc", | ||
"VeChain", | ||
"vet", | ||
"Verge", | ||
"xvg", | ||
"VertCoin", | ||
"vtc", | ||
"Viberate", | ||
"vib", | ||
"VoteCoin", | ||
"vot", | ||
"WaltonChain", | ||
"wtc", | ||
"waves", | ||
"wings", | ||
"ZCash", | ||
"zec", | ||
"ZClassic", | ||
"zcl", | ||
"ZenCash", | ||
"Zilliqa", | ||
"zil", | ||
"segwit", | ||
"altcoin", | ||
"javascript", | ||
"browser", | ||
"nodejs", | ||
"wallet", | ||
"address" | ||
] | ||
} |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.