forked from ampleforth/token-geyser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
68 lines (65 loc) · 2.22 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
"extends": ["google", "standard", "plugin:prettier/recommended", "mocha"],
"env": {
"mocha": true,
"node": true,
"es6": true,
},
"parserOptions": {
"ecmaVersion": 8,
},
"globals": {
"artifacts": true,
"assert": true,
"contract": true,
"expect": true,
"Promise": true,
"web3": true,
},
"plugins": ["prettier", "spellcheck", "chai-friendly"],
"rules": {
"prettier/prettier": 0,
"require-jsdoc": 0,
"semi": [2, "always"],
"prefer-const": 2,
"no-unused-expressions": 0,
"chai-friendly/no-unused-expressions": 2,
"spellcheck/spell-checker": [
2,
{
"comments": true,
"strings": true,
"identifiers": true,
"lang": "en_US",
"skipWords": [
// misc
"deployer", "http", "https", "github", "chai", "argv", "evm",
"jsonrpc", "timestamp", "uint256", "erc20", "bignumber", "lodash",
"arg", "npm", "seedrandom", "eql", "sinon", "yaml", "posix", "promisify",
"passcode", "geth", "rpc", "rpcmsg","stdev", "stochasm", "aggregator",
"whitelist", "ethereum", "npx", "testrpc", "solc", "whitelisted",
"unlockable", "openzeppelin", "checksum", "unstakes", "txfee",
"relayer", "gsn", 'struct',
// shorthand
"eth", "args", "util", "utils", "msg", "prev", "bal",
"init", "params", "mul", "async", "vals", "fns", "addrs",
"fns", "num", "dev", "pre","abi", "gte","rnd", "chk", "bals", "lte",
"addr", "perc", "opcode", "aprox", "str",
// project-specific
"rebase", "gons", "frg", "rng", "blockchain", "minlot",
"redemptions", "rebased", "ganache", "ethclient",
"bytecode", "Binance", "ampl", "unstake", "unstaked", "unstaking",
"ampls", "staker", "ownable",
// names
"nithin", "naguib"
],
"skipIfMatch": [
"http(s)?://[^s]*",
"Sha3",
"0x*",
],
"minLength": 3
}
],
},
};