-
Notifications
You must be signed in to change notification settings - Fork 306
/
.eslintrc.js
93 lines (92 loc) · 2.57 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
93
module.exports = {
env: {
commonjs: true,
es6: true,
},
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
ecmaFeatures: {
jsx: false,
modules: true,
experimentalObjectRestSpread: true,
},
},
extends: "eslint:recommended",
rules: {
"array-bracket-spacing": ["warn", "never"],
"brace-style": "warn",
camelcase: ["warn", { properties: "never" }],
"comma-dangle": ["off"],
"comma-spacing": ["warn", { before: false, after: true }],
curly: ["warn"],
"eol-last": ["error"],
eqeqeq: ["warn", "smart"],
indent: ["off", 4, { SwitchCase: 1 }],
"key-spacing": ["warn"],
"keyword-spacing": ["warn"],
"linebreak-style": ["error", "unix"],
"no-console": ["warn", { allow: ["warn", "error"] }],
"no-empty": ["warn"],
"no-multi-spaces": ["warn"],
"no-redeclare": ["warn"],
"no-unused-expressions": ["warn"],
"no-unused-vars": ["warn", { args: "none" }],
"no-use-before-define": ["warn", "nofunc"],
"object-curly-spacing": ["warn", "never"],
quotes: ["off", "double"],
semi: ["error", "always"],
"semi-spacing": ["warn", { before: false, after: true }],
"space-before-blocks": ["warn"],
"space-before-function-paren": [
"warn",
{ anonymous: "always", named: "never" },
],
"space-infix-ops": ["warn"],
"space-in-parens": ["warn", "never"],
},
globals: {
openerp: true,
odoo: true,
CKEDITOR: true,
we3: true,
$: false,
jQuery: false,
_: false,
google: false,
window: false,
setTimeout: false,
clearTimeout: false,
document: false,
console: false,
QUnit: false,
moment: false,
FileReader: false,
nv: false,
d3: false,
ace: false,
Option: false,
py: false,
XMLHttpRequest: false,
setInterval: false,
clearInterval: false,
Image: false,
jstz: false,
ZeroClipboard: false,
sessionStorage: false,
Node: false,
history: false,
gapi: false,
Event: false,
Gravitec: false,
navigator: false,
OneSignal: false,
PDFJS: false,
ClipboardJS: false,
PDFSlidesViewer: false,
MutationObserver: false,
Element: false,
URL: false,
},
};