forked from Snipa22/xmr-node-proxy
-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy patheslint.config.js
More file actions
35 lines (35 loc) · 983 Bytes
/
Copy patheslint.config.js
File metadata and controls
35 lines (35 loc) · 983 Bytes
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
"use strict";
const js = require("@eslint/js");
const globals = require("globals");
module.exports = [
{ ignores: ["node_modules/**"] },
js.configs.recommended,
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: 2023,
sourceType: "commonjs",
globals: { ...globals.node }
},
rules: {
"no-unused-vars": ["error", { args: "after-used", argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrors: "all", caughtErrorsIgnorePattern: "^_" }]
}
},
{
files: ["**/*.js"],
rules: {
"no-throw-literal": "error",
"default-case-last": "error",
"no-unused-expressions": "error",
"no-var": "error",
"no-else-return": "error",
"prefer-const": "error",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"no-implicit-coercion": "error",
"object-shorthand": "error",
"prefer-template": "error",
"no-shadow": "error",
"no-param-reassign": "error"
}
}
];