@agilebot/eslint-config 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +1 -1
- package/dist/index.js +7 -11
- package/package.json +3 -3
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license @agilebot/eslint-config v0.2.
|
2
|
+
* @license @agilebot/eslint-config v0.2.6
|
3
3
|
*
|
4
4
|
* Copyright (c) Agilebot, Inc. and its affiliates.
|
5
5
|
*
|
@@ -592,7 +592,7 @@ function godaddy() {
|
|
592
592
|
|
593
593
|
// src/factory.ts
|
594
594
|
function factory(root, options) {
|
595
|
-
var _a, _b, _c, _d;
|
595
|
+
var _a, _b, _c, _d, _e;
|
596
596
|
import_node_assert.default.ok(root, "root option is required");
|
597
597
|
const commonConfigs = [
|
598
598
|
unicorn({
|
@@ -613,6 +613,9 @@ function factory(root, options) {
|
|
613
613
|
(_b = options == null ? void 0 : options.config) != null ? _b : {}
|
614
614
|
);
|
615
615
|
}
|
616
|
+
const tsconfigFiles = (0, import_fast_glob.globSync)("tsconfig*.json", {
|
617
|
+
cwd: root
|
618
|
+
});
|
616
619
|
const config = {
|
617
620
|
overrides: [
|
618
621
|
__spreadValues({
|
@@ -680,15 +683,8 @@ function factory(root, options) {
|
|
680
683
|
}
|
681
684
|
]
|
682
685
|
};
|
683
|
-
|
684
|
-
|
685
|
-
});
|
686
|
-
if (config.parserOptions) {
|
687
|
-
if (tsconfigFiles.length > 0) {
|
688
|
-
config.parserOptions.project = tsconfigFiles;
|
689
|
-
} else {
|
690
|
-
config.parserOptions.project = true;
|
691
|
-
}
|
686
|
+
if ((_e = config.overrides) == null ? void 0 : _e[0].parserOptions) {
|
687
|
+
config.overrides[0].parserOptions.project = tsconfigFiles.length > 0 ? tsconfigFiles : true;
|
692
688
|
}
|
693
689
|
return config;
|
694
690
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@agilebot/eslint-config",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.6",
|
4
4
|
"description": "Agilebot's ESLint config",
|
5
5
|
"bin": {
|
6
6
|
"eslint-agilebot": "bin/eslint-agilebot"
|
@@ -44,11 +44,11 @@
|
|
44
44
|
"eslint-plugin-vue": "^9.25.0",
|
45
45
|
"eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0",
|
46
46
|
"fast-glob": "^3.3.2",
|
47
|
-
"@agilebot/eslint-utils": "0.2.
|
47
|
+
"@agilebot/eslint-utils": "0.2.6"
|
48
48
|
},
|
49
49
|
"peerDependencies": {
|
50
50
|
"eslint": "^7.0.0 || ^8.0.0",
|
51
|
-
"@agilebot/eslint-plugin": "0.2.
|
51
|
+
"@agilebot/eslint-plugin": "0.2.6"
|
52
52
|
},
|
53
53
|
"files": [
|
54
54
|
"bin",
|