@agilebot/eslint-config 0.3.11 → 0.3.13
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/dist/cli.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +16 -5
- package/package.json +4 -3
package/dist/cli.js
CHANGED
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.
|
|
2
|
+
* @license @agilebot/eslint-config v0.3.13
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Agilebot, Inc. and its affiliates.
|
|
5
5
|
*
|
|
@@ -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":
|
|
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,7 +805,9 @@ 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" ? {
|
|
809
|
+
oxc: true
|
|
810
|
+
} : {
|
|
802
811
|
typescript: {
|
|
803
812
|
alwaysTryTypes: true
|
|
804
813
|
}
|
|
@@ -1167,7 +1176,8 @@ function factory(root, options) {
|
|
|
1167
1176
|
prettier: true,
|
|
1168
1177
|
lodash: true,
|
|
1169
1178
|
cspell: true,
|
|
1170
|
-
import: true
|
|
1179
|
+
import: true,
|
|
1180
|
+
importResolver: "typescript"
|
|
1171
1181
|
};
|
|
1172
1182
|
options = __spreadValues(__spreadValues({}, defaultOptions), options);
|
|
1173
1183
|
if (options == null ? void 0 : options.config) {
|
|
@@ -1187,7 +1197,8 @@ function factory(root, options) {
|
|
|
1187
1197
|
packageDir: root,
|
|
1188
1198
|
devDependencies: options == null ? void 0 : options.devDependencies,
|
|
1189
1199
|
monorepoScope: options == null ? void 0 : options.monorepoScope,
|
|
1190
|
-
coreModules: options == null ? void 0 : options.coreModules
|
|
1200
|
+
coreModules: options == null ? void 0 : options.coreModules,
|
|
1201
|
+
resolver: options == null ? void 0 : options.importResolver
|
|
1191
1202
|
}) : {},
|
|
1192
1203
|
options.prettier ? prettier() : {}
|
|
1193
1204
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agilebot/eslint-config",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"description": "Agilebot's ESLint config",
|
|
5
5
|
"bin": {
|
|
6
6
|
"eslint-agilebot": "bin/eslint-agilebot"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@typescript-eslint/parser": "~7.16.0",
|
|
26
26
|
"eslint-config-godaddy": "^6.0.0",
|
|
27
27
|
"eslint-config-prettier": "^9.1.0",
|
|
28
|
+
"eslint-import-resolver-oxc": "^0.2.0",
|
|
28
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",
|
|
@@ -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.
|
|
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.
|
|
55
|
+
"@agilebot/eslint-plugin": "0.3.13"
|
|
55
56
|
},
|
|
56
57
|
"files": [
|
|
57
58
|
"bin",
|