@typescript-eslint/rule-tester 8.42.1-alpha.0 → 8.42.1-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -174,7 +174,7 @@ class RuleTester extends TestFramework_1.TestFramework {
174
174
  // path. For any other path, which would just be a plain
175
175
  // file name (`foo.ts`), don't change the base path.
176
176
  if (filename != null &&
177
- (node_path_1.default.isAbsolute(filename) || filename.startsWith('..'))) {
177
+ (node_path_1.default.isAbsolute(filename) || node_path_1.default.normalize(filename).startsWith('..'))) {
178
178
  basePath = node_path_1.default.parse(node_path_1.default.resolve(basePath ?? process.cwd(), filename)).root;
179
179
  }
180
180
  let linterForBasePath = this.#lintersByBasePath.get(basePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/rule-tester",
3
- "version": "8.42.1-alpha.0",
3
+ "version": "8.42.1-alpha.10",
4
4
  "description": "Tooling to test ESLint rules",
5
5
  "files": [
6
6
  "dist",
@@ -44,9 +44,9 @@
44
44
  },
45
45
  "//": "NOTE - AJV is out-of-date, but it's intentionally synced with ESLint - https://github.com/eslint/eslint/blob/ad9dd6a933fd098a0d99c6a9aa059850535c23ee/package.json#L70",
46
46
  "dependencies": {
47
- "@typescript-eslint/parser": "8.42.1-alpha.0",
48
- "@typescript-eslint/typescript-estree": "8.42.1-alpha.0",
49
- "@typescript-eslint/utils": "8.42.1-alpha.0",
47
+ "@typescript-eslint/parser": "8.42.1-alpha.10",
48
+ "@typescript-eslint/typescript-estree": "8.42.1-alpha.10",
49
+ "@typescript-eslint/utils": "8.42.1-alpha.10",
50
50
  "ajv": "^6.12.6",
51
51
  "json-stable-stringify-without-jsonify": "^1.0.1",
52
52
  "lodash.merge": "4.6.2",