-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
91 lines (88 loc) · 2.94 KB
/
.eslintrc
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
{
"psStandardVersion": "1.0.0-beta3",
"basedOn": "eslint-config-airbnb/[email protected]",
"extends": "eslint-config-airbnb/legacy",
"env": {
"browser": true,
"amd":true,
"es6": false,
"node": false
},
"plugins": [
"requirejs"
],
"parserOptions": {
"ecmaVersion": 3
},
"rules": {
//Requirejs plugin
"requirejs/no-invalid-define": 2,
"requirejs/no-multiple-define": 2,
"requirejs/no-commonjs-wrapper": 2,
"requirejs/no-object-define": 1,
"requirejs/one-dependency-per-line": 1,
//extra
"indent": ["error", 4], // Changing AirBNB 2 spaces to 4
"max-len": ["error", 160, 0], // Longer lines
"no-useless-escape": ["warn"], // Lowering from error to warning
"complexity": ["warn", 12],
"no-underscore-dangle": ["error", {"allowAfterThis": true }], // Allow this._ , mostly because of _render
"no-plusplus": ["off"], // Nothing wrong with ++ && --
"no-param-reassign": ["error", { "props": false }], // we need to reasign param props (prototype modifications!)
"quote-props": ["error", "as-needed", { "keywords": true, "unnecessary": false, "numbers": true }], //mostly tweeaked for routers
"no-throw-literal": ["off"], // we throw objects on backend services
"new-cap": ["off"] // because of new nlobjColumn :(
},
"globals": {
"_gat": false,
"badRequestError": true,
"CMS": true,
"console": true,
"context": true,
"customer": true,
"define": false,
"JSON": true,
"log": true,
"methodNotAllowedError": true,
"nlapiAttachRecord": true,
"nlapiCreateError": true,
"nlapiCreateForm": false,
"nlapiCreateRecord": false,
"nlapiCreateSearch": true,
"nlapiDateToString": false,
"nlapiDeleteFile": true,
"nlapiGetCache": false,
"nlapiGetContext": false,
"nlapiGetNewRecord": false,
"nlapiGetRecordId": false,
"nlapiGetRecordType": false,
"nlapiGetUser": true,
"nlapiLoadFile": false,
"nlapiLoadRecord": false,
"nlapiLogExecution": false,
"nlapiLookupField": true,
"nlapiRequestURL": false,
"nlapiResolveURL": false,
"nlapiSearchRecord": false,
"nlapiSelectNodes": false,
"nlapiSelectValue": false,
"nlapiSubmitField": false,
"nlapiSubmitFile": false,
"nlapiSubmitRecord": false,
"nlapiDeleteRecord": true,
"nlapiYieldScript": true,
"nlobjError": true,
"nlobjSearchColumn": false,
"nlobjSearchFilter": false,
"notFoundError": true,
"nsglobal": false,
"order": true,
"request": true,
"require": false,
"response": true,
"SC": false,
"session": true,
"unauthorizedError": true,
"util": true
}
}