forked from FabMo/FabMo-Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
55 lines (54 loc) · 1.53 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
module.exports = {
env: {
amd: true,
node: true,
commonjs: true,
es2021: true,
},
globals: {
async: true,
log: true,
process: true,
setImmediate: true,
setTimeout: true,
clearTimeout: true,
console: true,
},
plugins: ["jest", "prettier"],
extends: ["eslint:recommended", "prettier"],
parserOptions: {
ecmaVersion: 12,
},
rules: {
"no-mixed-spaces-and-tabs": "off",
"prettier/prettier": ["error"],
},
ignorePatterns: [
"dashboard/static/js/libs/socket.io.js",
"dashboard/static/js/libs/hammer.js",
"dashboard/static/js/libs/hammer.min.js",
"dashboard/static/js/libs/jquery.min.js",
"dashboard/static/js/libs/lockr.min.js",
"dashboard/static/js/libs/moment.js",
"dashboard/static/js/libs/pako.min.js",
"dashboard/static/js/libs/require.js",
"dashboard/static/js/libs/toastr.min.js",
"dashboard/static/js/libs/underscore.js",
"dashboard/static/js/libs/foundation.min.js",
"dashboard/static/js/libs/backbone.js",
"dashboard/static/js/events.js",
"dashboard/apps/",
],
overrides: [
{
env: { browser: true, jquery: true },
files: ["dashboard/**"],
},
{
files: ["test/**"],
plugins: ["jest"],
extends: ["plugin:jest/recommended"],
rules: { "jest/prefer-expect-assertions": "off" },
},
],
};