@agilebot/eslint-config 0.3.12 → 0.3.13

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.3.12
2
+ * @license @agilebot/eslint-config v0.3.13
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
package/dist/index.d.ts CHANGED
@@ -73,6 +73,10 @@ interface FactoryOptions {
73
73
  * @default true
74
74
  */
75
75
  import?: boolean;
76
+ /**
77
+ * Flag indicating which import resolver to use
78
+ */
79
+ importResolver?: 'typescript' | 'oxc';
76
80
  }
77
81
 
78
82
  declare function factory(root: string, options?: FactoryOptions): Linter.BaseConfig;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.3.12
2
+ * @license @agilebot/eslint-config v0.3.13
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -66,9 +66,9 @@ var init_cjs_shims = __esm({
66
66
  }
67
67
  });
68
68
 
69
- // ../../node_modules/.pnpm/eslint-config-love@47.0.0_@typescript-eslint+eslint-plugin@7.16.0_@typescript-eslint+parser@7_yhzs7l56qchbrq23cntj5il5wu/node_modules/eslint-config-love/lib/index.js
69
+ // ../../node_modules/.pnpm/eslint-config-love@47.0.0_@typescript-eslint+eslint-plugin@7.16.0_@typescript-eslint+parser@7_dbttxvpwn6s6gyqfajsab2uz5m/node_modules/eslint-config-love/lib/index.js
70
70
  var require_lib = __commonJS({
71
- "../../node_modules/.pnpm/eslint-config-love@47.0.0_@typescript-eslint+eslint-plugin@7.16.0_@typescript-eslint+parser@7_yhzs7l56qchbrq23cntj5il5wu/node_modules/eslint-config-love/lib/index.js"(exports2, module2) {
71
+ "../../node_modules/.pnpm/eslint-config-love@47.0.0_@typescript-eslint+eslint-plugin@7.16.0_@typescript-eslint+parser@7_dbttxvpwn6s6gyqfajsab2uz5m/node_modules/eslint-config-love/lib/index.js"(exports2, module2) {
72
72
  "use strict";
73
73
  init_cjs_shims();
74
74
  var eslint_1 = require("eslint");
@@ -728,7 +728,14 @@ function imports(opts) {
728
728
  plugins: ["import-x", "no-relative-import-paths"],
729
729
  extends: ["plugin:import-x/recommended", "plugin:import-x/typescript"],
730
730
  rules: {
731
- "import-x/no-unresolved": "error",
731
+ "import-x/no-unresolved": [
732
+ "error",
733
+ {
734
+ ignore: [
735
+ String.raw`\?(react|raw|url|inline|worker|worker&inline|worker&url|sharedworker|sharedworker&inline|sharedworker&url)$`
736
+ ]
737
+ }
738
+ ],
732
739
  "import-x/no-named-as-default-member": "off",
733
740
  "import-x/no-named-as-default": "off",
734
741
  "import-x/no-useless-path-segments": [
@@ -798,8 +805,12 @@ function imports(opts) {
798
805
  "import-x/parsers": {
799
806
  "@typescript-eslint/parser": [".ts", ".tsx"]
800
807
  },
801
- "import-x/resolver": {
808
+ "import-x/resolver": opts.resolver === "oxc" ? {
802
809
  oxc: true
810
+ } : {
811
+ typescript: {
812
+ alwaysTryTypes: true
813
+ }
803
814
  },
804
815
  "import-x/internal-regex": opts.monorepoScope ? `^${opts.monorepoScope.replace(/\//g, "")}/` : void 0,
805
816
  "import-x/core-modules": (_b = opts.coreModules) != null ? _b : void 0
@@ -1165,7 +1176,8 @@ function factory(root, options) {
1165
1176
  prettier: true,
1166
1177
  lodash: true,
1167
1178
  cspell: true,
1168
- import: true
1179
+ import: true,
1180
+ importResolver: "typescript"
1169
1181
  };
1170
1182
  options = __spreadValues(__spreadValues({}, defaultOptions), options);
1171
1183
  if (options == null ? void 0 : options.config) {
@@ -1185,7 +1197,8 @@ function factory(root, options) {
1185
1197
  packageDir: root,
1186
1198
  devDependencies: options == null ? void 0 : options.devDependencies,
1187
1199
  monorepoScope: options == null ? void 0 : options.monorepoScope,
1188
- coreModules: options == null ? void 0 : options.coreModules
1200
+ coreModules: options == null ? void 0 : options.coreModules,
1201
+ resolver: options == null ? void 0 : options.importResolver
1189
1202
  }) : {},
1190
1203
  options.prettier ? prettier() : {}
1191
1204
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilebot/eslint-config",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "Agilebot's ESLint config",
5
5
  "bin": {
6
6
  "eslint-agilebot": "bin/eslint-agilebot"
@@ -26,6 +26,7 @@
26
26
  "eslint-config-godaddy": "^6.0.0",
27
27
  "eslint-config-prettier": "^9.1.0",
28
28
  "eslint-import-resolver-oxc": "^0.2.0",
29
+ "eslint-import-resolver-typescript": "^3.6.1",
29
30
  "eslint-plugin-deprecation": "^3.0.0",
30
31
  "eslint-plugin-eslint-comments": "^3.2.0",
31
32
  "eslint-plugin-file-progress": "^1.4.0",
@@ -44,14 +45,14 @@
44
45
  "eslint-plugin-vue": "^9.26.0",
45
46
  "eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0",
46
47
  "vue-eslint-parser": "^9.4.2",
47
- "@agilebot/eslint-utils": "0.3.12"
48
+ "@agilebot/eslint-utils": "0.3.13"
48
49
  },
49
50
  "devDependencies": {
50
51
  "eslint-config-love": "^47.0.0"
51
52
  },
52
53
  "peerDependencies": {
53
54
  "eslint": "^7.0.0 || ^8.0.0",
54
- "@agilebot/eslint-plugin": "0.3.12"
55
+ "@agilebot/eslint-plugin": "0.3.13"
55
56
  },
56
57
  "files": [
57
58
  "bin",