forked from JSONPath-Plus/JSONPath
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
72 lines (72 loc) · 1.99 KB
/
.eslintrc.js
File metadata and controls
72 lines (72 loc) · 1.99 KB
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
module.exports = {
"extends": ["ash-nazg/sauron-node"],
"settings": {
"polyfills": [
"Array.isArray",
"console",
"Date.now",
"document.head",
"document.querySelector",
"JSON",
"Object.keys",
"XMLHttpRequest"
]
},
"overrides": [
{
"files": ["src/jsonpath.js", "test-helpers/node-env.js"],
// Apparent bug with `overrides` necessitating this
"globals": {
"require": "readonly",
"module": "readonly"
}
},
{
"files": ["*.md"],
"rules": {
"import/unambiguous": 0,
"import/no-commonjs": 0,
"import/no-unresolved": ["error", {"ignore": ["jsonpath-plus"]}],
"no-undef": 0,
"no-unused-vars": ["error", {
"varsIgnorePattern": "json|result"
}],
"node/no-missing-require": ["error", {
"allowModules": ["jsonpath-plus"]
}],
"node/no-missing-import": ["error", {
"allowModules": ["jsonpath-plus"]
}]
}
},
{
"files": ["test/**"],
"globals": {
"assert": "readonly",
"jsonpath": "readonly",
"require": "readonly",
"module": "readonly"
},
"parserOptions": {
"sourceType": "script"
},
"env": {"mocha": true},
"rules": {
"strict": ["error", "global"],
"import/no-commonjs": 0,
"import/unambiguous": 0,
"quotes": 0,
// Todo: Reenable
"max-len": 0
}
}
],
"rules": {
"indent": ["error", 4, {"outerIIFEBody": 0}],
"promise/prefer-await-to-callbacks": 0,
"quote-props": 0,
"require-jsdoc": 0,
// Reenable when no longer having problems
"unicorn/no-unsafe-regex": 0
}
};