Skip to content

Commit

Permalink
- Build: As per latest rollup
Browse files Browse the repository at this point in the history
- Linting: Check hidden files; update as per latest ash-nazg
- Docs: Update coverage badge
- npm: Update devDeps
  • Loading branch information
brettz9 committed Apr 7, 2020
1 parent 12647cb commit fe16ea0
Show file tree
Hide file tree
Showing 16 changed files with 1,295 additions and 1,111 deletions.
3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,3 @@ trim_trailing_whitespace = true

[package.json]
indent_size = 2

[.mocharc.js]
indent_size = 2
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
dist
docs/ts
coverage
!*.js
167 changes: 91 additions & 76 deletions .eslintrc.js
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
}
};
5 changes: 3 additions & 2 deletions .mocharc.js
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'
};
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## ?

- Breaking change: Expect Node >= 10
- Build: As per latest rollup
- Linting: Check hidden files; update as per latest ash-nazg
- Docs: Update coverage badge
- npm: Update devDeps

## 3.0.0 (2020-01-13)
Expand Down
30 changes: 1 addition & 29 deletions badges/coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fe16ea0

Please sign in to comment.