-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
68 lines (67 loc) · 1.82 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
"use strict";
module.exports = {
extends: [
"eslint:recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:node/recommended",
],
plugins: ["prettier"],
env: {
es6: true,
browser: true,
jquery: true,
node: false,
},
globals: {
django: true,
google: true,
CKEDITOR: true,
ESANUMPLUGIN: true,
CodeMirror: true,
DJANGO_STATIC_URL: true,
gettext: true,
TARGET_OBJECT: true,
},
rules: {
"node/no-unpublished-require": "off",
"require-atomic-updates": "off",
"no-process-exit": "off",
strict: ["error", "global"],
"no-return-await": "error",
"object-shorthand": [
"error",
"always",
{ avoidExplicitReturnArrows: true },
],
"import/order": "error",
"import/no-cycle": "error",
"import/no-useless-path-segments": "error",
"import/first": "error",
"import/extensions": ["error", "never"],
"import/newline-after-import": "error",
"node/exports-style": ["error", "module.exports"],
"node/no-new-require": "error",
"node/no-path-concat": "error",
"node/no-callback-literal": "error",
"node/handle-callback-err": "error",
"one-var": ["error", "never"],
quotes: ["error", "double", { avoidEscape: true }],
semi: ["error", "always"],
"comma-style": ["error", "last"],
"comma-dangle": ["error", "always-multiline"],
"no-var": "error",
camelcase: "error",
eqeqeq: ["error", "always"],
},
ignorePatterns: [
"*.min.js",
"server/apps/core/static/vendor/*",
"server/apps/media/static/vendor/*",
"server/apps/core/static/admin/js/core/widgets/codemirror/beautify.js",
"server/apps/core/static/admin/js/core/websocketbridge.js",
"server/apps/core/djangoql/static/djangoql/*",
],
};