This repository has been archived by the owner on Jul 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
/
.eslintrc.js
92 lines (92 loc) · 2.13 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
module.exports = {
"extends": "airbnb-base",
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"jasmine": true,
"jest": true,
"es6": true,
},
"rules": {
"arrow-parens": [
"error",
"as-needed",
{ "requireForBlockBody": true }
],
"class-methods-use-this": "off",
"comma-dangle": "off",
"consistent-return": "off",
"func-names": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": [
"error",
{ "ignore": ["handsontable", "walkontable"] }
],
"indent": [
"error",
2,
{
"SwitchCase": 1,
"FunctionDeclaration": { "parameters": "first" },
"FunctionExpression": { "parameters": "first" }
}
],
"max-len": [
"error",
{
"code": 170,
"ignoreComments": true
}
],
"newline-per-chained-call": "off",
"no-constant-condition": [
"error",
{ "checkLoops": false }
],
"no-eq-null": "error",
"no-mixed-operators": [
"error",
{ "groups": [["+", "-", "*", "/", "%", "**"]] }
],
"no-multiple-empty-lines": [
"error",
{ "max": 1 }
],
"no-param-reassign": "off",
"no-plusplus": [
"error",
{ "allowForLoopAfterthoughts": true }
],
"no-restricted-globals": [
"error",
"Handsontable",
{
"name": "console",
"message": "Using the `console` object is not allowed within Handsontable. Please use one of the helpers from the `console.js` file instead."
}
],
"no-underscore-dangle": "off",
"no-use-before-define": [
"error",
{
"functions": false,
"classes": false
}
],
"no-void": "off",
"padded-blocks": "off",
"quotes": [ "error", "single" ],
"space-before-function-paren": ["error", "never"],
},
"overrides": [
{
"files": ["test/**", "src/3rdparty/walkontable/test/**", "*.unit.js", "*.e2e.js", "src/plugins/**/test/helpers/**"],
"rules": {
"no-restricted-globals": "off",
"no-undef": "off",
}
}
],
}