Files
uma/.eslintrc.js
Chris MareeandGitHub 7c8634559f fix: Address Discord transport rate limiting issues (#3858)
* 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>
2022-03-24 17:33:34 +02:00

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" },
};