@toolstackhq/create-qa-patterns 1.0.8 → 1.0.9

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": "@toolstackhq/create-qa-patterns",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "CLI for generating QA framework templates.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -2,6 +2,8 @@ import js from "@eslint/js";
2
2
  import tsParser from "@typescript-eslint/parser";
3
3
  import tsPlugin from "@typescript-eslint/eslint-plugin";
4
4
 
5
+ const tsconfigRootDir = import.meta.dirname;
6
+
5
7
  const cypressGlobals = {
6
8
  Cypress: "readonly",
7
9
  cy: "readonly",
@@ -25,10 +27,12 @@ export default [
25
27
  js.configs.recommended,
26
28
  {
27
29
  files: ["**/*.ts"],
30
+ ignores: ["**/*.d.ts"],
28
31
  languageOptions: {
29
32
  parser: tsParser,
30
33
  parserOptions: {
31
- project: "./tsconfig.json"
34
+ project: "./tsconfig.json",
35
+ tsconfigRootDir
32
36
  },
33
37
  globals: {
34
38
  ...cypressGlobals,
@@ -50,6 +54,22 @@ export default [
50
54
  ]
51
55
  }
52
56
  },
57
+ {
58
+ files: ["**/*.d.ts"],
59
+ languageOptions: {
60
+ parser: tsParser,
61
+ parserOptions: {
62
+ tsconfigRootDir
63
+ },
64
+ globals: {
65
+ ...cypressGlobals,
66
+ ...nodeGlobals
67
+ }
68
+ },
69
+ rules: {
70
+ "no-undef": "off"
71
+ }
72
+ },
53
73
  {
54
74
  files: ["scripts/**/*.mjs"],
55
75
  languageOptions: {