forked from JSONPath-Plus/JSONPath
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Linting: Check hidden files; update as per latest ash-nazg - Docs: Update coverage badge - npm: Update devDeps
- Loading branch information
Showing
16 changed files
with
1,295 additions
and
1,111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,3 @@ trim_trailing_whitespace = true | |
|
||
[package.json] | ||
indent_size = 2 | ||
|
||
[.mocharc.js] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ node_modules | |
dist | ||
docs/ts | ||
coverage | ||
!*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,93 @@ | ||
'use strict'; | ||
module.exports = { | ||
"extends": ["ash-nazg/sauron-node"], | ||
parser: 'babel-eslint', | ||
"settings": { | ||
"polyfills": [ | ||
"Array.isArray", | ||
"console", | ||
"Date.now", | ||
"document.head", | ||
"document.querySelector", | ||
"JSON", | ||
"Object.keys", | ||
'Object.values', | ||
"XMLHttpRequest" | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["src/jsonpath.js", "test-helpers/node-env.js"], | ||
// Apparent bug with `overrides` necessitating this | ||
"globals": { | ||
"require": "readonly", | ||
"run": "readonly", | ||
"module": "readonly" | ||
}, | ||
rules: { | ||
"node/no-unsupported-features/es-syntax": ["error", { | ||
ignores: ['regexpNamedCaptureGroups', 'modules', 'dynamicImport'] | ||
}] | ||
} | ||
}, | ||
{ | ||
"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/**"], | ||
"extends": [ | ||
"plugin:chai-expect/recommended", | ||
"plugin:chai-friendly/recommended" | ||
], | ||
"globals": { | ||
"assert": "readonly", | ||
"expect": "readonly", | ||
"jsonpath": "readonly" | ||
}, | ||
"env": {"mocha": true}, | ||
"rules": { | ||
"quotes": 0, | ||
"import/unambiguous": 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 | ||
} | ||
'extends': ['ash-nazg/sauron-node'], | ||
parser: 'babel-eslint', | ||
'settings': { | ||
'polyfills': [ | ||
'Array.isArray', | ||
'console', | ||
'Date.now', | ||
'document.head', | ||
'document.querySelector', | ||
'JSON', | ||
'Number.isFinite', | ||
'Number.parseInt', | ||
'Object.keys', | ||
'Object.values', | ||
'XMLHttpRequest' | ||
] | ||
}, | ||
'overrides': [ | ||
{ | ||
files: ['.eslintrc.js', '.mocharc.js'], | ||
extends: ['plugin:node/recommended-script'], | ||
rules: { | ||
'import/no-commonjs': 'off', | ||
'import/ambiguous': 'off' | ||
} | ||
}, | ||
{ | ||
'files': ['src/jsonpath.js', 'test-helpers/node-env.js'], | ||
// Apparent bug with `overrides` necessitating this | ||
'globals': { | ||
'require': 'readonly', | ||
'run': 'readonly', | ||
'module': 'readonly' | ||
}, | ||
rules: { | ||
'node/no-unsupported-features/es-syntax': ['error', { | ||
ignores: [ | ||
'regexpNamedCaptureGroups', 'modules', 'dynamicImport' | ||
] | ||
}] | ||
} | ||
}, | ||
{ | ||
'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/**'], | ||
'extends': [ | ||
'plugin:chai-expect/recommended', | ||
'plugin:chai-friendly/recommended' | ||
], | ||
'globals': { | ||
'assert': 'readonly', | ||
'expect': 'readonly', | ||
'jsonpath': 'readonly' | ||
}, | ||
'env': {'mocha': true}, | ||
'rules': { | ||
'quotes': 0, | ||
'import/unambiguous': 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 | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
'use strict'; | ||
module.exports = { | ||
delay: true, | ||
reporter: 'mocha-multi-reporters' | ||
delay: true, | ||
reporter: 'mocha-multi-reporters' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.