@agilebot/eslint-config 0.5.3 → 0.5.4
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.d.ts +5 -0
- package/dist/index.js +8 -6
- package/package.json +3 -3
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license @agilebot/eslint-config v0.5.
|
2
|
+
* @license @agilebot/eslint-config v0.5.4
|
3
3
|
*
|
4
4
|
* Copyright (c) Agilebot, Inc. and its affiliates.
|
5
5
|
*
|
@@ -683,7 +683,8 @@ function cspell(opts) {
|
|
683
683
|
checkComments: false,
|
684
684
|
autoFix: false,
|
685
685
|
cspell: {
|
686
|
-
words: opts.words
|
686
|
+
words: opts.words,
|
687
|
+
dictionaries: opts.dictionaries
|
687
688
|
}
|
688
689
|
}
|
689
690
|
]
|
@@ -768,7 +769,7 @@ var DEFAULT_EXTS = [...JS_EXTS, ...TS_EXTS, ...VUE_EXTS];
|
|
768
769
|
|
769
770
|
// src/factory/index.ts
|
770
771
|
function factory(root, options) {
|
771
|
-
var _a, _b, _c, _d, _e;
|
772
|
+
var _a, _b, _c, _d, _e, _f;
|
772
773
|
import_node_assert.default.ok(root, "root option is required");
|
773
774
|
const tsconfigFiles = (0, import_eslint_utils3.findTsconfigFiles)(root, {
|
774
775
|
absolute: true
|
@@ -849,14 +850,15 @@ function factory(root, options) {
|
|
849
850
|
(options == null ? void 0 : options.lodash) ? lodash() : {},
|
850
851
|
deprecation(),
|
851
852
|
(options == null ? void 0 : options.cspell) ? cspell({
|
852
|
-
words: (_c = options == null ? void 0 : options.cspellWords) != null ? _c : []
|
853
|
+
words: (_c = options == null ? void 0 : options.cspellWords) != null ? _c : [],
|
854
|
+
dictionaries: (_d = options == null ? void 0 : options.cspellDictionaries) != null ? _d : []
|
853
855
|
}) : {},
|
854
856
|
...commonConfigs,
|
855
857
|
agilebot({
|
856
858
|
root,
|
857
859
|
monorepoScope: options == null ? void 0 : options.monorepoScope
|
858
860
|
}),
|
859
|
-
(
|
861
|
+
(_e = options == null ? void 0 : options.config) != null ? _e : {}
|
860
862
|
)),
|
861
863
|
__spreadValues({
|
862
864
|
files: JS_EXTS.map((ext) => `*${ext}`)
|
@@ -876,7 +878,7 @@ function factory(root, options) {
|
|
876
878
|
]
|
877
879
|
};
|
878
880
|
}
|
879
|
-
if ((
|
881
|
+
if ((_f = config.overrides) == null ? void 0 : _f[0].parserOptions) {
|
880
882
|
config.overrides[0].parserOptions.project = tsconfigFiles.length > 0 ? tsconfigFiles : true;
|
881
883
|
} else if (config.parser) {
|
882
884
|
config.parserOptions = {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@agilebot/eslint-config",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.4",
|
4
4
|
"description": "Agilebot's ESLint config",
|
5
5
|
"bin": {
|
6
6
|
"eslint-agilebot": "bin/eslint-agilebot"
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"picocolors": "^1.1.0",
|
47
47
|
"vue-eslint-parser": "^9.4.3",
|
48
48
|
"yargs": "^17.7.2",
|
49
|
-
"@agilebot/eslint-utils": "0.5.
|
49
|
+
"@agilebot/eslint-utils": "0.5.4"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
52
|
"@types/yargs": "^17.0.33",
|
@@ -54,7 +54,7 @@
|
|
54
54
|
},
|
55
55
|
"peerDependencies": {
|
56
56
|
"eslint": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
57
|
-
"@agilebot/eslint-plugin": "0.5.
|
57
|
+
"@agilebot/eslint-plugin": "0.5.4"
|
58
58
|
},
|
59
59
|
"files": [
|
60
60
|
"bin",
|