Skip to content

Commit 2180118

Browse files
build(deps-dev): Bump eslint-plugin-jest from 27.9.0 to 28.6.0 (#1337)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.9.0 to 28.6.0. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](jest-community/eslint-plugin-jest@v27.9.0...v28.6.0) --- updated-dependencies: - dependency-name: eslint-plugin-jest dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent cc6de8a commit 2180118

File tree

106 files changed

+2555
-3440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+2555
-3440
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
### Node
66

7-
* [Node.js](https://nodejs.org/) - v16.0.0+
8-
* [npm](https://www.npmjs.com/) - v8.0.0+
7+
* [Node.js](https://nodejs.org/) - v18.0.0+
8+
* [npm](https://www.npmjs.com/) - v9.0.0+
99

1010
## Install project dependencies
1111

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ First thing first, let's make sure you have the necessary pre-requisites.
6262

6363
#### Node
6464

65-
* [Node.js](https://nodejs.org/) - v16.0.0+
66-
* [npm](http://npmjs.com) - v8.0.0+
65+
* [Node.js](https://nodejs.org/) - v18.0.0+
66+
* [npm](http://npmjs.com) - v9.0.0+
6767

6868
### Use the cli
6969

package-lock.json

Lines changed: 2283 additions & 3169 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,30 +58,31 @@
5858
"validate-npm-package-name": "^5.0.1"
5959
},
6060
"devDependencies": {
61-
"@types/jest": "^27.5.0",
61+
"@types/jest": "^29.5.12",
6262
"@types/node": "^20.14.2",
63-
"@typescript-eslint/eslint-plugin": "^5.61.0",
64-
"esbuild": "^0.20.2",
63+
"@typescript-eslint/eslint-plugin": "^7.12.0",
64+
"@typescript-eslint/parser": "^7.12.0",
65+
"esbuild": "^0.21.5",
6566
"esbuild-node-externals": "^1.13.1",
6667
"eslint": "^8.57.0",
67-
"eslint-config-tc": "^23.0.0",
68-
"eslint-config-typescript-tc": "^7.0.0",
68+
"eslint-config-tc": "^26.0.0",
69+
"eslint-config-typescript-tc": "^9.0.0",
6970
"eslint-plugin-eslint-comments": "^3.2.0",
7071
"eslint-plugin-import": "^2.29.1",
71-
"eslint-plugin-jest": "^27.9.0",
72-
"eslint-plugin-prettier": "^4.2.1",
73-
"eslint-plugin-unicorn": "^52.0.0",
72+
"eslint-plugin-jest": "^28.6.0",
73+
"eslint-plugin-prettier": "^5.1.3",
74+
"eslint-plugin-unicorn": "^53.0.0",
7475
"figures": "^3.2.0",
75-
"jest": "^27.5.1",
76-
"npm-package-json-lint-config-default": "^6.0.0",
77-
"npm-package-json-lint-config-tc": "^7.0.0",
78-
"prettier": "^2.8.8",
79-
"ts-jest": "^27.1.4",
80-
"typescript": "^4.9.5"
76+
"jest": "^29.7.0",
77+
"npm-package-json-lint-config-default": "^7.0.0",
78+
"npm-package-json-lint-config-tc": "^8.0.0",
79+
"prettier": "^3.3.1",
80+
"ts-jest": "^29.1.4",
81+
"typescript": "^5.4.5"
8182
},
8283
"engines": {
83-
"node": ">=16.0.0",
84-
"npm": ">=8.0.0"
84+
"node": ">=18.0.0",
85+
"npm": ">=9.0.0"
8586
},
8687
"license": "MIT"
8788
}

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const cli = meow(
7676
default: false,
7777
},
7878
},
79-
}
79+
},
8080
);
8181

8282
const {input, flags} = cli;

src/config/applyOverrides.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const applyOverrides = (cwd: string, filePath: string, rules: any, overri
2424
overrides.forEach((override) => {
2525
const filteredPatterns = override.patterns.filter((pattern) => pattern.length);
2626
const transformedPatterns = filteredPatterns.map((pattern) =>
27-
pattern.endsWith(`/package.json`) ? pattern : `${pattern}/package.json`
27+
pattern.endsWith(`/package.json`) ? pattern : `${pattern}/package.json`,
2828
);
2929

3030
const globFiles = globby.sync(transformedPatterns, {

src/config/cosmicConfigTransformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const transform = (cwd: any, configBaseDirectory: any, filePathBeingLinte
3535
cwd,
3636
filePathBeingLinted,
3737
configAfterExtends.rules,
38-
configAfterExtends.overrides
38+
configAfterExtends.overrides,
3939
);
4040

4141
return configAfterOverrides;

src/linter/linter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const processPackageJsonObject = (
126126
// TODO: Type
127127
config,
128128
fileName: string,
129-
rules: Rules
129+
rules: Rules,
130130
): PackageJsonFileLintingResult => {
131131
const lintIssues = lint(packageJsonObj, config, rules);
132132
const counts = aggregateCountsPerFile(lintIssues);

src/linter/results-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const aggregateCountsPerFile = (issues: LintIssue[]): PackageJsonFileAggr
3838
{
3939
errorCount: 0,
4040
warningCount: 0,
41-
}
41+
},
4242
);
4343
};
4444

@@ -75,5 +75,5 @@ export const aggregateOverallCounts = (results: PackageJsonFileLintingResult[]):
7575
ignoreCount: 0,
7676
errorCount: 0,
7777
warningCount: 0,
78-
}
78+
},
7979
);

src/npm-package-json-lint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class NpmPackageJsonLint {
148148

149149
if (areRequiredOptionsValid(this.packageJsonObject, this.patterns)) {
150150
throw new Error(
151-
'You must pass npm-package-json-lint a `patterns` glob or a `packageJsonObject` string, though not both.'
151+
'You must pass npm-package-json-lint a `patterns` glob or a `packageJsonObject` string, though not both.',
152152
);
153153
}
154154

0 commit comments

Comments
 (0)