forked from CaptorAB/quantlib-wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
42 lines (42 loc) · 1.42 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
36
37
38
39
40
41
42
module.exports = {
plugins: ["promise", "jasmine", "jest"],
env: {
browser: true,
node: true,
es6: true,
jasmine: true,
jest: true,
"jest/globals": true
},
parserOptions: {
ecmaVersion: 2016,
sourceType: "module",
ecmaFeatures: {
jsx: true,
modules: true,
experimentalObjectRestSpread: true
}
},
extends: ["eslint:recommended", "plugin:promise/recommended", "plugin:jasmine/recommended", "plugin:jest/recommended", "prettier"],
rules: {
"max-len": ["warn", 140],
"no-unused-vars": [
"error",
{
args: "none"
}
],
"no-console": "off",
"no-undef": "error", // disallow use of undeclared variables unless mentioned in a /*global */ block
"no-undef-init": "error", // disallow use of undefined when initializing variables
"no-undefined": "error", // disallow use of undefined variable (off by default)
"no-unused-vars": "warn", // disallow declaration of variables that are not used in the code
"no-use-before-define": "error", // disallow use of variables before they are defined
"generator-star-spacing": 1,
"array-bracket-spacing": 1,
"arrow-parens": 1,
"no-await-in-loop": 1,
"no-mixed-spaces-and-tabs": "warn",
eqeqeq: "warn"
}
};