Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
- Update @balena/lint from 6.2.2 to 7.2.4
- Delete `require-npm4-to-publish` as handled by `engines` parameter in `package.json`

Change-type: patch
Signed-off-by: fisehara <harald@balena.io>
  • Loading branch information
fisehara committed Jan 3, 2024
1 parent 5d9ec1a commit 0a7bd8f
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
extends: ['./node_modules/@balena/lint/config/.eslintrc.js'],
parserOptions: {
project: 'tsconfig.js.json',
sourceType: 'module',
},
env: {
mocha: true,
}
};
6 changes: 3 additions & 3 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"*.ts": [
"balena-lint --typescript --fix"
"balena-lint --fix"
],
"*.js": [
"balena-lint --typescript --fix"
],
"balena-lint --fix"
]
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
2 changes: 1 addition & 1 deletion odata-parser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface GenericPropertyPath<T = any> {
name: string;
property?: T;
}
export interface PropertyPath extends GenericPropertyPath<PropertyPath> {}
export type PropertyPath = GenericPropertyPath<PropertyPath>;
export interface OrderByPropertyPath
extends GenericPropertyPath<OrderByPropertyPath> {
order: 'asc' | 'desc';
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@
"pretest": "npm run prepare && npx tsc --noEmit odata-parser.d.ts",
"test": "mocha",
"posttest": "npm run lint",
"prepublish": "require-npm4-to-publish",
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\" && peggy --source-map --extra-options-file odata-parser.config.json --output odata-parser.js odata-parser.pegjs",
"prettify": "balena-lint -e ts -e js --typescript --fix odata-parser.d.ts test"
},
"repository": "https://github.com/balena-io-modules/odata-parser.git",
"author": "",
"license": "BSD",
"devDependencies": {
"@balena/lint": "^6.2.2",
"@balena/lint": "^7.2.4",
"@types/chai": "^4.3.4",
"@types/lodash": "^4.14.194",
"@types/mocha": "^10.0.1",
Expand All @@ -26,7 +25,6 @@
"lodash": "^4.17.21",
"mocha": "^10.2.0",
"peggy": "^3.0.2",
"require-npm4-to-publish": "^1.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
},
Expand Down
4 changes: 3 additions & 1 deletion test/expand.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,15 @@ const testExpands = function (test, nested = 1) {

const nestedExpandTest = testExpandOption.bind(null, test);
nestedExpandTest.skip = testExpandOption.bind(null, test.skip);
// eslint-disable-next-line no-only-tests/no-only-tests
nestedExpandTest.only = testExpandOption.bind(null, test.only);

const nestedCountTest = testExpandOptionCount.bind(null, test);
nestedCountTest.skip = testExpandOptionCount.bind(null, test.skip);
// eslint-disable-next-line no-only-tests/no-only-tests
nestedCountTest.only = testExpandOptionCount.bind(null, test.only);

for (let nestedTest of [nestedExpandTest, nestedCountTest]) {
for (const nestedTest of [nestedExpandTest, nestedCountTest]) {
filterby(nestedTest);
format(nestedTest);
orderby(nestedTest);
Expand Down
1 change: 1 addition & 0 deletions test/orderby.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export default (test) => {

const nestedFilterTest = testFilterOption.bind(null, test);
nestedFilterTest.skip = testFilterOption.bind(null, test.skip);
// eslint-disable-next-line no-only-tests/no-only-tests
nestedFilterTest.only = testFilterOption.bind(null, test.only);

filterby(nestedFilterTest);
Expand Down
2 changes: 2 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ const runExpectation = function (...args) {

const test = runExpectation.bind(null, describe);
test.skip = runExpectation.bind(null, describe.skip);
// eslint-disable-next-line no-only-tests/no-only-tests
test.only = runExpectation.bind(null, describe.only);

test.raw = raw.bind(null, describe);
test.raw.skip = raw.bind(null, describe.skip);
// eslint-disable-next-line no-only-tests/no-only-tests
test.raw.only = raw.bind(null, describe.only);

export default test;

0 comments on commit 0a7bd8f

Please sign in to comment.