65 lines
1.7 KiB
JSON
65 lines
1.7 KiB
JSON
{
|
|
"extends": ["ash-nazg/sauron-node"],
|
|
"overrides": [
|
|
{
|
|
"files": "src/jsonpath.js",
|
|
"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": {
|
|
"require": "readonly",
|
|
"module": "readonly"
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "script"
|
|
},
|
|
"rules": {
|
|
"strict": ["error", "global"],
|
|
"import/no-commonjs": 0,
|
|
"import/unambiguous": 0,
|
|
"quotes": 0
|
|
}
|
|
},
|
|
{
|
|
"files": ["test-helpers/testLoading.js"],
|
|
"env": {"node": false, "browser": true},
|
|
"parserOptions": {
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"no-shadow": ["error", {"allow": ["require", "module"]}]
|
|
}
|
|
}
|
|
],
|
|
"rules": {
|
|
"indent": ["error", 4, {"outerIIFEBody": 0}],
|
|
"promise/prefer-await-to-callbacks": 0,
|
|
"quote-props": 0,
|
|
"require-unicode-regexp": 0,
|
|
"max-len": 0,
|
|
"require-jsdoc": 0
|
|
}
|
|
}
|