-
Notifications
You must be signed in to change notification settings - Fork 182
/
.eslintrc.js
35 lines (35 loc) · 1.24 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
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" },
};