-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.js
29 lines (29 loc) · 807 Bytes
/
.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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
mocha: true,
},
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
sourceType: "module",
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/explicit-function-return-type":
"off" /* maybe enable later */,
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-non-null-assertion":
"off" /* should maybe enable this later */,
"arrow-body-style": "error",
"func-style": "error",
"linebreak-style": ["error", "unix"],
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
quotes: ["error", "double"],
semi: ["error", "always"],
},
};