mirror of
https://github.com/luxfi/uma.git
synced 2026-07-26 21:09:10 +00:00
* fix: Address Discord transport rate limiting issues Signed-off-by: chrismaree <christopher.maree@gmail.com> * nit Signed-off-by: chrismaree <christopher.maree@gmail.com> * nit Signed-off-by: chrismaree <christopher.maree@gmail.com> * nit Signed-off-by: chrismaree <christopher.maree@gmail.com> * nit Signed-off-by: chrismaree <christopher.maree@gmail.com> * nit Signed-off-by: chrismaree <christopher.maree@gmail.com>
36 lines
1.2 KiB
JavaScript
36 lines
1.2 KiB
JavaScript
module.exports = {
|
|
env: { node: true, mocha: true, es2021: true },
|
|
extends: ["plugin:prettier/recommended", "eslint:recommended"],
|
|
plugins: ["prettier", "mocha"],
|
|
rules: {
|
|
"prettier/prettier": ["warn"],
|
|
indent: 0, // avoid conflict with prettier's indent system
|
|
"linebreak-style": ["error", "unix"],
|
|
quotes: ["error", "double", { avoidEscape: true }],
|
|
semi: ["error", "always"],
|
|
"spaced-comment": ["error", "always", { exceptions: ["-", "+"] }],
|
|
"mocha/no-exclusive-tests": "error",
|
|
"no-console": 0,
|
|
"object-curly-newline": ["warn", "never"],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: "*.ts",
|
|
parser: "@typescript-eslint/parser",
|
|
extends: [
|
|
"plugin:prettier/recommended",
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
],
|
|
rules: {
|
|
"@typescript-eslint/no-var-requires": 0,
|
|
"@typescript-eslint/no-unused-vars": ["error", { ignoreRestSiblings: true }],
|
|
"@typescript-eslint/ban-ts-comment": 0,
|
|
},
|
|
},
|
|
],
|
|
settings: { "mocha/additionalTestFunctions": ["describeModule"] },
|
|
globals: { web3: "readonly", artifacts: "readonly", assert: "readonly", contract: "readonly" },
|
|
};
|