@html-validate/eslint-config 6.17.0 → 6.17.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/eslint-config",
3
- "version": "6.17.0",
3
+ "version": "6.17.2",
4
4
  "description": "Eslint sharable config used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "eslint"
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "d649b633cedd3360959151dfd6f54b6126145d49"
68
+ "gitHead": "c34d7db57f7a7db9befe947602ace75bd26855a4"
69
69
  }
@@ -1,9 +1,8 @@
1
1
  /* This file is managed by @html-validate/eslint-config */
2
2
  /* Changes may be overwritten */
3
3
 
4
- {% if typeinfo %}
4
+ {% if typeinfo and typeinfo.rootDir != "." %}
5
5
  import path from "node:path";
6
- import { fileURLToPath } from "node:url";
7
6
  {% endif %}
8
7
  import defaultConfig from "@html-validate/eslint-config";
9
8
  {% if angularjs %}
@@ -31,10 +30,6 @@ import vitestConfig from "@html-validate/eslint-config-vitest";
31
30
  import vueConfig from "@html-validate/eslint-config-vue";
32
31
  {% endif %}
33
32
 
34
- {% if typeinfo %}
35
- const rootDir = path.dirname(fileURLToPath(import.meta.url));
36
- {% endif %}
37
-
38
33
  export default [
39
34
  {
40
35
  name: "Ignored files",
@@ -65,7 +60,7 @@ export default [
65
60
  ignores: ["src/**/*.spec.ts"],
66
61
  languageOptions: {
67
62
  parserOptions: {
68
- tsconfigRootDir: {% if typeinfo.rootDir == "." %}rootDir{% else %}path.join(rootDir, "{{ typeinfo.rootDir }}"){% endif %},
63
+ tsconfigRootDir: {% if typeinfo.rootDir == "." %}import.meta.dirname{% else %}path.join(import.meta.dirname, "{{ typeinfo.rootDir }}"){% endif %},
69
64
  projectService: true,
70
65
  },
71
66
  },