Skip to content

Commit

Permalink
chore: update devDeps. and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Dec 15, 2023
1 parent 63fbb0c commit 55533e7
Show file tree
Hide file tree
Showing 21 changed files with 4,185 additions and 2,643 deletions.
13 changes: 9 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

module.exports = {
extends: ['ash-nazg/sauron-node-overrides'],
parserOptions: {
ecmaVersion: 2022
},
settings: {
polyfills: [
'Array.isArray',
Expand Down Expand Up @@ -79,20 +82,22 @@ module.exports = {
},
env: {mocha: true},
rules: {
quotes: 0,
'quote-props': 0,
'@stylistic/quotes': 0,
'@stylistic/quote-props': 0,
'import/unambiguous': 0,
// Todo: Reenable
'max-len': 0
'@stylistic/max-len': 0
}
}
],
rules: {
indent: ['error', 4, {outerIIFEBody: 0}],
'@stylistic/indent': ['error', 4, {outerIIFEBody: 0}],
'promise/prefer-await-to-callbacks': 0,
'require-jsdoc': 0,

// Disable for now
'new-cap': 0,
'@stylistic/dot-location': 0,
'eslint-comments/require-description': 0,
// Reenable as have time and confirming no longer needing:
// https://github.com/babel/babel/issues/8951#issuecomment-508045524 is no
Expand Down
2 changes: 1 addition & 1 deletion demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const updateResults = () => {
reportValidity();
return;
}
const result = JSONPath.JSONPath({
const result = new JSONPath.JSONPath({
path: $('#jsonpath').value,
json
});
Expand Down
8 changes: 4 additions & 4 deletions demo/node-import-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {JSONPath} from '../dist/index-node-esm.js';
import {JSONPath as jsonpath} from '../dist/index-node-esm.js';

/* eslint-disable quotes, quote-props */
/* eslint-disable @stylistic/quotes, @stylistic/quote-props */
const json = {
"store": {
"book": [{
Expand Down Expand Up @@ -35,9 +35,9 @@ const json = {
}
}
};
/* eslint-enable quotes, quote-props */
/* eslint-enable @stylistic/quotes, @stylistic/quote-props */

const result = JSONPath({
const result = jsonpath({
json,
path: '$.store.book[*].author'
});
Expand Down
Loading

0 comments on commit 55533e7

Please sign in to comment.