-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
42 lines (36 loc) · 948 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
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* @author PulseShift GmbH
*
* GENERAL EXPLANATION
* We only want errors or no errors. A warning can be interpreded differently.
* Therfore all lint rules must be either off or error. Warnings will waste time.
*/
module.exports = {
env: {
browser: true, // allow browser global variables
node: false, // allow Node.js global variables and Node.js-specific rules
es6: true, // enable all ECMAScript 6 features except for modules
jquery: true // enable jquery global variables
},
extends: ['eslint:recommended', 'prettier'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 8,
sourceType: 'module',
ecmaFeatures: {
modules: true,
experimentalObjectRestSpread: true
}
},
plugins: ['babel', 'prettier'],
// define globals
globals: {
ui5: false,
sap: false,
less: false,
c3: false,
d3: false,
lodashDebounce: false,
lodashIsequal: false
}
}