forked from codeoverflow-org/nodecg-io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
28 lines (26 loc) · 1.05 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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2017,
sourceType: "module",
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
],
// Don't traverse fs up to root.
// This caused problems when nodecg-io was cloned into a NodeCG installation as it then
// tried to lint nodecg-io with that config.
root: true,
rules: {
// Use experimental version of unused vars, because the stable one
// even warns about unused vars with an underscore before them, which is the typescript notation
// for unused variables.
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-vars-experimental": "warn",
// We simply have empty functions at some places, so we ignore this rule.
"@typescript-eslint/no-empty-function": ["warn", { allow: ["arrowFunctions"] }],
// Instead of console the integrated nodecg logger should be used.
"no-console": ["warn"],
},
};