Skip to content

Commit fe16ea0

Browse files
committed
- Build: As per latest rollup
- Linting: Check hidden files; update as per latest ash-nazg - Docs: Update coverage badge - npm: Update devDeps
1 parent 12647cb commit fe16ea0

16 files changed

+1295
-1111
lines changed

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,3 @@ trim_trailing_whitespace = true
1414

1515
[package.json]
1616
indent_size = 2
17-
18-
[.mocharc.js]
19-
indent_size = 2

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
dist
33
docs/ts
44
coverage
5+
!*.js

.eslintrc.js

Lines changed: 91 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,93 @@
1+
'use strict';
12
module.exports = {
2-
"extends": ["ash-nazg/sauron-node"],
3-
parser: 'babel-eslint',
4-
"settings": {
5-
"polyfills": [
6-
"Array.isArray",
7-
"console",
8-
"Date.now",
9-
"document.head",
10-
"document.querySelector",
11-
"JSON",
12-
"Object.keys",
13-
'Object.values',
14-
"XMLHttpRequest"
15-
]
16-
},
17-
"overrides": [
18-
{
19-
"files": ["src/jsonpath.js", "test-helpers/node-env.js"],
20-
// Apparent bug with `overrides` necessitating this
21-
"globals": {
22-
"require": "readonly",
23-
"run": "readonly",
24-
"module": "readonly"
25-
},
26-
rules: {
27-
"node/no-unsupported-features/es-syntax": ["error", {
28-
ignores: ['regexpNamedCaptureGroups', 'modules', 'dynamicImport']
29-
}]
30-
}
31-
},
32-
{
33-
"files": ["*.md"],
34-
"rules": {
35-
"import/unambiguous": 0,
36-
"import/no-commonjs": 0,
37-
"import/no-unresolved": ["error", {"ignore": ["jsonpath-plus"]}],
38-
"no-undef": 0,
39-
"no-unused-vars": ["error", {
40-
"varsIgnorePattern": "json|result"
41-
}],
42-
"node/no-missing-require": ["error", {
43-
"allowModules": ["jsonpath-plus"]
44-
}],
45-
"node/no-missing-import": ["error", {
46-
"allowModules": ["jsonpath-plus"]
47-
}]
48-
}
49-
},
50-
{
51-
"files": ["test/**"],
52-
"extends": [
53-
"plugin:chai-expect/recommended",
54-
"plugin:chai-friendly/recommended"
55-
],
56-
"globals": {
57-
"assert": "readonly",
58-
"expect": "readonly",
59-
"jsonpath": "readonly"
60-
},
61-
"env": {"mocha": true},
62-
"rules": {
63-
"quotes": 0,
64-
"import/unambiguous": 0,
65-
// Todo: Reenable
66-
"max-len": 0
67-
}
68-
}
69-
],
70-
"rules": {
71-
"indent": ["error", 4, {"outerIIFEBody": 0}],
72-
"promise/prefer-await-to-callbacks": 0,
73-
"quote-props": 0,
74-
"require-jsdoc": 0,
75-
// Reenable when no longer having problems
76-
"unicorn/no-unsafe-regex": 0
77-
}
3+
'extends': ['ash-nazg/sauron-node'],
4+
parser: 'babel-eslint',
5+
'settings': {
6+
'polyfills': [
7+
'Array.isArray',
8+
'console',
9+
'Date.now',
10+
'document.head',
11+
'document.querySelector',
12+
'JSON',
13+
'Number.isFinite',
14+
'Number.parseInt',
15+
'Object.keys',
16+
'Object.values',
17+
'XMLHttpRequest'
18+
]
19+
},
20+
'overrides': [
21+
{
22+
files: ['.eslintrc.js', '.mocharc.js'],
23+
extends: ['plugin:node/recommended-script'],
24+
rules: {
25+
'import/no-commonjs': 'off',
26+
'import/ambiguous': 'off'
27+
}
28+
},
29+
{
30+
'files': ['src/jsonpath.js', 'test-helpers/node-env.js'],
31+
// Apparent bug with `overrides` necessitating this
32+
'globals': {
33+
'require': 'readonly',
34+
'run': 'readonly',
35+
'module': 'readonly'
36+
},
37+
rules: {
38+
'node/no-unsupported-features/es-syntax': ['error', {
39+
ignores: [
40+
'regexpNamedCaptureGroups', 'modules', 'dynamicImport'
41+
]
42+
}]
43+
}
44+
},
45+
{
46+
'files': ['*.md'],
47+
'rules': {
48+
'import/unambiguous': 0,
49+
'import/no-commonjs': 0,
50+
'import/no-unresolved': ['error', {
51+
'ignore': ['jsonpath-plus']
52+
}],
53+
'no-undef': 0,
54+
'no-unused-vars': ['error', {
55+
'varsIgnorePattern': 'json|result'
56+
}],
57+
'node/no-missing-require': ['error', {
58+
'allowModules': ['jsonpath-plus']
59+
}],
60+
'node/no-missing-import': ['error', {
61+
'allowModules': ['jsonpath-plus']
62+
}]
63+
}
64+
},
65+
{
66+
'files': ['test/**'],
67+
'extends': [
68+
'plugin:chai-expect/recommended',
69+
'plugin:chai-friendly/recommended'
70+
],
71+
'globals': {
72+
'assert': 'readonly',
73+
'expect': 'readonly',
74+
'jsonpath': 'readonly'
75+
},
76+
'env': {'mocha': true},
77+
'rules': {
78+
'quotes': 0,
79+
'import/unambiguous': 0,
80+
// Todo: Reenable
81+
'max-len': 0
82+
}
83+
}
84+
],
85+
'rules': {
86+
'indent': ['error', 4, {'outerIIFEBody': 0}],
87+
'promise/prefer-await-to-callbacks': 0,
88+
'quote-props': 0,
89+
'require-jsdoc': 0,
90+
// Reenable when no longer having problems
91+
'unicorn/no-unsafe-regex': 0
92+
}
7893
};

.mocharc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
'use strict';
12
module.exports = {
2-
delay: true,
3-
reporter: 'mocha-multi-reporters'
3+
delay: true,
4+
reporter: 'mocha-multi-reporters'
45
};

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
## ?
44

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

811
## 3.0.0 (2020-01-13)

badges/coverage-badge.svg

Lines changed: 1 addition & 29 deletions
Loading

0 commit comments

Comments
 (0)