1 | {
|
2 | "parserOptions": {
|
3 | "ecmaVersion": 8,
|
4 | "ecmaFeatures": {
|
5 | "globalReturn": true,
|
6 | "experimentalObjectRestSpread": true
|
7 | }
|
8 | },
|
9 | "env": {
|
10 | "browser": true,
|
11 | "es6": true,
|
12 | "node": true,
|
13 | "amd": true,
|
14 | "qunit": true
|
15 | },
|
16 | "globals": {
|
17 | "sap": true,
|
18 | "jQuery": true,
|
19 | "com": true,
|
20 | "_": true
|
21 | },
|
22 | "rules": {
|
23 | "no-mixed-spaces-and-tabs": "error",
|
24 | "comma-dangle": [
|
25 | 2,
|
26 | "never"
|
27 | ],
|
28 | "indent": [
|
29 | "warn",
|
30 | 2
|
31 | ],
|
32 | "comma-spacing": "warn",
|
33 | "no-cond-assign": 2,
|
34 | "no-console": 2,
|
35 | "no-constant-condition": 2,
|
36 | "no-control-regex": 2,
|
37 | "no-debugger": 2,
|
38 | "no-dupe-args": 2,
|
39 | "no-dupe-keys": 2,
|
40 | "no-duplicate-case": 2,
|
41 | "no-empty-character-class": 2,
|
42 | "no-empty": 2,
|
43 | "no-ex-assign": 2,
|
44 | "no-extra-boolean-cast": 1,
|
45 | "no-extra-parens": [
|
46 | 2,
|
47 | "functions"
|
48 | ],
|
49 | "no-extra-semi": 2,
|
50 | "no-func-assign": 2,
|
51 | "no-inner-declarations": [
|
52 | 2,
|
53 | "functions"
|
54 | ],
|
55 | "no-invalid-regexp": 2,
|
56 | "no-irregular-whitespace": 2,
|
57 | "no-negated-in-lhs": 2,
|
58 | "no-obj-calls": 2,
|
59 | "no-regex-spaces": 2,
|
60 | "no-sparse-arrays": 2,
|
61 | "no-trailing-spaces": 2,
|
62 | "no-unreachable": 2,
|
63 | "use-isnan": 2,
|
64 | "newline-per-chained-call": [
|
65 | "warn",
|
66 | {
|
67 | "ignoreChainWithDepth": 4
|
68 | }
|
69 | ],
|
70 | "valid-typeof": 2,
|
71 | "accessor-pairs": 2,
|
72 | "block-scoped-var": 1,
|
73 | "consistent-return": 1,
|
74 | "curly": [
|
75 | 2,
|
76 | "all"
|
77 | ],
|
78 | "default-case": 1,
|
79 | "no-alert": 2,
|
80 | "no-caller": 2,
|
81 | "no-div-regex": 2,
|
82 | "no-eval": 2,
|
83 | "no-extend-native": 2,
|
84 | "no-extra-bind": 2,
|
85 | "no-fallthrough": 2,
|
86 | "no-floating-decimal": 2,
|
87 | "no-implied-eval": 2,
|
88 | "no-iterator": 2,
|
89 | "no-labels": 2,
|
90 | "no-lone-blocks": 2,
|
91 | "no-native-reassign": 2,
|
92 | "no-new-func": 2,
|
93 | "no-new-wrappers": 1,
|
94 | "no-new": 1,
|
95 | "no-octal-escape": 2,
|
96 | "no-octal": 2,
|
97 | "no-proto": 2,
|
98 | "no-redeclare": 1,
|
99 | "no-return-assign": 2,
|
100 | "no-script-url": 2,
|
101 | "no-self-compare": 2,
|
102 | "no-sequences": 2,
|
103 | "no-unused-expressions": 1,
|
104 | "no-void": 2,
|
105 | "no-warning-comments": 1,
|
106 | "no-with": 2,
|
107 | "radix": 2,
|
108 | "wrap-iife": [
|
109 | 2,
|
110 | "any"
|
111 | ],
|
112 | "yoda": 2,
|
113 | "no-catch-shadow": 2,
|
114 | "no-delete-var": 2,
|
115 | "no-label-var": 2,
|
116 | "no-shadow-restricted-names": 2,
|
117 | "no-undef-init": 2,
|
118 | "no-undef": 2,
|
119 | "no-unused-vars": [
|
120 | 2,
|
121 | {
|
122 | "vars": "all",
|
123 | "args": "none"
|
124 | }
|
125 | ],
|
126 | "no-use-before-define": [
|
127 | 1,
|
128 | "nofunc"
|
129 | ],
|
130 | "brace-style": [
|
131 | 2,
|
132 | "1tbs",
|
133 | {
|
134 | "allowSingleLine": true
|
135 | }
|
136 | ],
|
137 | "camelcase": 1,
|
138 | "consistent-this": [
|
139 | 1,
|
140 | "that"
|
141 | ],
|
142 | "linebreak-style": 2,
|
143 | "max-nested-callbacks": [
|
144 | 1,
|
145 | 3
|
146 | ],
|
147 | "new-cap": 1,
|
148 | "new-parens": 2,
|
149 | "no-array-constructor": 2,
|
150 | "no-lonely-if": 1,
|
151 | "no-nested-ternary": 2,
|
152 | "no-new-object": 2,
|
153 | "no-spaced-func": 2,
|
154 | "quote-props": [
|
155 | 2,
|
156 | "as-needed",
|
157 | {
|
158 | "keywords": true,
|
159 | "unnecessary": false
|
160 | }
|
161 | ],
|
162 | "semi-spacing": [
|
163 | 1,
|
164 | {
|
165 | "before": false,
|
166 | "after": true
|
167 | }
|
168 | ],
|
169 | "semi": 2,
|
170 | "no-multi-spaces": "warn",
|
171 | "space-before-function-paren": [
|
172 | "warn",
|
173 | "never"
|
174 | ],
|
175 | "space-infix-ops": 2,
|
176 | "space-unary-ops": [
|
177 | 2,
|
178 | {
|
179 | "words": true,
|
180 | "nonwords": false
|
181 | }
|
182 | ]
|
183 | }
|
184 | } |
\ | No newline at end of file |