Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
paleite committed Jan 23, 2023
1 parent 5ae1ff1 commit 1001ecb
Show file tree
Hide file tree
Showing 8 changed files with 947 additions and 759 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
51 changes: 26 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,39 +33,40 @@
"lint": "eslint --cache --ext .js,.ts --fix .",
"prepare": "husky install",
"prepublishOnly": "pinst --disable",
"prepublish": "yarn run clean && yarn run build ",
"prepublish": "yarn run clean && yarn run build",
"postpublish": "pinst --enable",
"release": "np",
"test": "jest --coverage",
"typecheck": "tsc --project tsconfig.json --noEmit"
},
"devDependencies": {
"@paleite/eslint-config": "^1.0.7",
"@paleite/eslint-config-base": "^1.0.7",
"@paleite/eslint-config-typescript": "^1.0.7",
"@paleite/jest-config": "^1.0.7",
"@paleite/prettier-config": "^1.0.7",
"@paleite/tsconfig-node16": "^1.0.7",
"@types/eslint": "^8.4.5",
"@types/jest": "^28.1.6",
"@types/node": "^16.11.26",
"@typescript-eslint/eslint-plugin": "^5.32.0",
"@typescript-eslint/parser": "^5.32.0",
"eslint": "^8.21.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^3.4.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-promise": "^6.0.0",
"husky": "^8.0.1",
"jest": "^28.1.3",
"lint-staged": "^13.0.3",
"np": "^7.6.2",
"@paleite/eslint-config": "^1.0.9",
"@paleite/eslint-config-base": "^1.0.9",
"@paleite/eslint-config-typescript": "^1.0.9",
"@paleite/jest-config": "^1.0.9",
"@paleite/prettier-config": "^1.0.9",
"@paleite/tsconfig-node16": "^1.0.9",
"@types/eslint": "^8.4.10",
"@types/jest": "^29.2.6",
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-promise": "^6.1.1",
"husky": "^8.0.3",
"jest": "^29.3.1",
"lint-staged": "^13.1.0",
"np": "^7.6.3",
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"prettier": "^2.8.3",
"pretty-quick": "^3.1.3",
"ts-jest": "^28.0.7",
"tsd": "^0.22.0",
"typescript": "^4.7.4"
"ts-jest": "^29.0.5",
"tsd": "^0.25.0",
"typescript": "^4.9.4",
"uuid": "^9.0.0"
},
"peerDependencies": {
"eslint": ">=6.7.0"
Expand Down
4 changes: 2 additions & 2 deletions src/__snapshots__/git.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`getRangesForDiff should find the ranges of each staged file 1`] = `
Array [
[
Range {
"exclusiveUpperBound": 1,
"inclusiveLowerBound": 0,
Expand All @@ -18,7 +18,7 @@ Array [
`;

exports[`getRangesForDiff should work for hunks which include only-removal-ranges 1`] = `
Array [
[
Range {
"exclusiveUpperBound": 4,
"inclusiveLowerBound": 2,
Expand Down
40 changes: 20 additions & 20 deletions src/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`plugin should match expected export 1`] = `
Object {
"ci": Object {
"overrides": Array [
Object {
"files": Array [
{
"ci": {
"overrides": [
{
"files": [
"*",
],
"processor": "diff/ci",
},
],
"plugins": Array [
"plugins": [
"diff",
],
},
"diff": Object {
"overrides": Array [
Object {
"files": Array [
"diff": {
"overrides": [
{
"files": [
"*",
],
"processor": "diff/diff",
},
],
"plugins": Array [
"plugins": [
"diff",
],
},
"staged": Object {
"overrides": Array [
Object {
"files": Array [
"staged": {
"overrides": [
{
"files": [
"*",
],
"processor": "diff/staged",
},
],
"plugins": Array [
"plugins": [
"diff",
],
},
}
`;

exports[`plugin should match expected export 2`] = `
Object {
"ci": Object {
{
"ci": {
"postprocess": [Function],
"preprocess": [Function],
"supportsAutofix": true,
},
"diff": Object {
"diff": {
"postprocess": [Function],
"preprocess": [Function],
"supportsAutofix": true,
},
"staged": Object {
"staged": {
"postprocess": [Function],
"preprocess": [Function],
"supportsAutofix": true,
Expand Down
30 changes: 15 additions & 15 deletions src/__snapshots__/processors.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`configs diff 1`] = `
Object {
"overrides": Array [
Object {
"files": Array [
{
"overrides": [
{
"files": [
"*",
],
"processor": "diff/diff",
},
],
"plugins": Array [
"plugins": [
"diff",
],
}
`;

exports[`configs staged 1`] = `
Object {
"overrides": Array [
Object {
"files": Array [
{
"overrides": [
{
"files": [
"*",
],
"processor": "diff/staged",
},
],
"plugins": Array [
"plugins": [
"diff",
],
}
`;

exports[`processors diff postprocess 1`] = `
Array [
Object {
[
{
"column": 1,
"line": 2,
"message": "Expected { after 'if' condition.",
Expand All @@ -43,7 +43,7 @@ Array [
"ruleId": "curly",
"severity": 1,
},
Object {
{
"column": 1,
"line": 3,
"message": "Expected { after 'if' condition.",
Expand All @@ -56,8 +56,8 @@ Array [
`;

exports[`processors staged postprocess 1`] = `
Array [
Object {
[
{
"column": 1,
"line": 2,
"message": "Expected { after 'if' condition.",
Expand Down
2 changes: 1 addition & 1 deletion src/git.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {

jest.mock("child_process");

const mockedChildProcess = jest.mocked(child_process, true);
const mockedChildProcess = jest.mocked(child_process, { shallow: true });

const OLD_ENV = process.env;

Expand Down
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ process.env.CI = "true";
import * as child_process from "child_process";

jest.mock("child_process");
const mockedChildProcess = jest.mocked(child_process, true);
const mockedChildProcess = jest.mocked(child_process, { shallow: true });
mockedChildProcess.execFileSync.mockReturnValue(
Buffer.from("line1\nline2\nline3")
);
Expand Down
Loading

0 comments on commit 1001ecb

Please sign in to comment.