@agilebot/eslint-config 0.7.2 → 0.7.4

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/README.md CHANGED
@@ -2,23 +2,31 @@
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@agilebot/eslint-config?color=444&label=)](https://npmjs.com/package/@agilebot/eslint-config)
4
4
 
5
- ### Usage
5
+ ## Usage
6
+
7
+ ### Manual Install
6
8
 
7
9
  ```bash
8
10
  npm install --save-dev eslint \
9
11
  @agilebot/eslint-config
10
12
  ```
11
13
 
12
- #### CommonJS
14
+ And create `eslint.config.mjs` in your project root:
13
15
 
14
16
  ```js
15
- // eslint.config.js
16
- const { agilebot } = require('@agilebot/eslint-config');
17
+ // eslint.config.mjs
18
+ import { agilebot } from '@agilebot/eslint-config';
17
19
 
18
- module.exports = agilebot(__dirname);
20
+ export default agilebot(import.meta);
19
21
  ```
20
22
 
21
- #### ESM
23
+ ## Customization
24
+
25
+ The `agilebot` preset provides a streamlined way to configure your ESLint setup. Here’s how you can use it and customize it based on your needs.
26
+
27
+ ### Basic Usage
28
+
29
+ To get started, import the `agilebot` preset:
22
30
 
23
31
  ```js
24
32
  // eslint.config.mjs
@@ -26,3 +34,84 @@ import { agilebot } from '@agilebot/eslint-config';
26
34
 
27
35
  export default agilebot(import.meta);
28
36
  ```
37
+
38
+ This will automatically apply the default configurations provided by `agilebot`.
39
+
40
+ ### Advanced Customization
41
+
42
+ If you want more control, you can customize individual integrations using the `FactoryOptions` interface. For example:
43
+
44
+ ```js
45
+ // eslint.config.mjs
46
+ import { agilebot } from '@agilebot/eslint-config';
47
+
48
+ export default agilebot(import.meta, {
49
+ // Replace `.eslintignore` with the `ignores` option
50
+ ignores: [
51
+ '**/fixtures'
52
+ // Add more glob patterns as needed
53
+ ],
54
+
55
+ // List of files or directories where development dependencies are allowed
56
+ // Accepts glob patterns, e.g., '**/scripts/**', '**/test/**'
57
+ devDependencies: ['**/scripts/**', '**/test/**'],
58
+
59
+ // List of modules to be treated as built-in
60
+ // Accepts an array of module names, e.g., ['electron']
61
+ coreModules: ['electron'],
62
+
63
+ // Enable React-specific linting rules
64
+ // Accepts `true`, `false`, or a specific version string, e.g., '17.0.0'
65
+ react: true,
66
+
67
+ // Specify the Vue.js version for linting
68
+ // Accepts a number, e.g., 2 or 3
69
+ vue: 3,
70
+
71
+ // Enable imports-related configurations
72
+ import: true,
73
+
74
+ // Specify the import resolver to use
75
+ // Accepts 'typescript' or 'oxc'
76
+ importResolver: 'typescript',
77
+
78
+ // Enable Lodash-specific linting rules
79
+ // Accepts `true` or `false`
80
+ lodash: true,
81
+
82
+ // Enable Prettier for code formatting
83
+ // Accepts `true` or `false`
84
+ prettier: true,
85
+
86
+ // Enable or disable JSDoc linting rules
87
+ // Accepts `true` or `false`
88
+ jsdoc: false,
89
+
90
+ // Enable ES module linting rules
91
+ // Accepts `true` or `false`
92
+ module: true,
93
+
94
+ // Apply specific monorepo configurations
95
+ // Accepts a string representing the monorepo scope, e.g., '@my-app'
96
+ monorepoScope: '@my-app',
97
+
98
+ // Custom spelling configurations for CSpell
99
+ // Accepts a configuration object or `false` to disable CSpell
100
+ cspell: {
101
+ words: ['agilebot', 'eslint'],
102
+ ignorePaths: ['**/node_modules']
103
+ },
104
+
105
+ // Enable GoDaddy-specific linting configurations
106
+ // Accepts `true`, `false`, or 'typescript' for TypeScript-specific rules
107
+ godaddy: 'typescript',
108
+
109
+ // Custom ESLint configuration to override or extend defaults
110
+ config: {
111
+ rules: {
112
+ 'no-console': 'warn',
113
+ 'prefer-const': 'error'
114
+ }
115
+ }
116
+ });
117
+ ```
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.7.2
2
+ * @license @agilebot/eslint-config v0.7.4
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.7.2
2
+ * @license @agilebot/eslint-config v0.7.4
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -52,6 +52,17 @@ var CLI_NAME = "eslint-agilebot";
52
52
 
53
53
  // src/cli/stages/eslint.ts
54
54
  var import_node_path = __toESM(require("path"));
55
+ function patch() {
56
+ if (console?.error) {
57
+ const origConsoleError = console.error;
58
+ console.error = (...args) => {
59
+ if (args?.[0]?.includes("React version not specified")) {
60
+ return;
61
+ }
62
+ origConsoleError(...args);
63
+ };
64
+ }
65
+ }
55
66
  function runBinary() {
56
67
  const pkg = require.resolve("eslint/package.json");
57
68
  const bin = import_node_path.default.join(pkg, "..", "bin", "eslint.js");
@@ -60,6 +71,7 @@ function runBinary() {
60
71
 
61
72
  // src/cli/index.ts
62
73
  function cli() {
74
+ patch();
63
75
  const argv = (0, import_yargs.default)((0, import_helpers.hideBin)(process.argv)).scriptName(CLI_NAME).usage(`${CLI_NAME} [options] file.js [file.js] [dir]`).options({
64
76
  config: {
65
77
  alias: "c",
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.7.2
2
+ * @license @agilebot/eslint-config v0.7.4
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -10,7 +10,7 @@
10
10
  import {
11
11
  CLI_NAME,
12
12
  __require
13
- } from "./chunk-R26PCKQR.mjs";
13
+ } from "./chunk-F5MZBDNJ.mjs";
14
14
 
15
15
  // src/cli/index.ts
16
16
  import { isCI } from "@agilebot/eslint-utils";
@@ -20,6 +20,17 @@ import pc from "picocolors";
20
20
 
21
21
  // src/cli/stages/eslint.ts
22
22
  import path from "node:path";
23
+ function patch() {
24
+ if (console?.error) {
25
+ const origConsoleError = console.error;
26
+ console.error = (...args) => {
27
+ if (args?.[0]?.includes("React version not specified")) {
28
+ return;
29
+ }
30
+ origConsoleError(...args);
31
+ };
32
+ }
33
+ }
23
34
  function runBinary() {
24
35
  const pkg = __require.resolve("eslint/package.json");
25
36
  const bin = path.join(pkg, "..", "bin", "eslint.js");
@@ -28,6 +39,7 @@ function runBinary() {
28
39
 
29
40
  // src/cli/index.ts
30
41
  function cli() {
42
+ patch();
31
43
  const argv = yargs(hideBin(process.argv)).scriptName(CLI_NAME).usage(`${CLI_NAME} [options] file.js [file.js] [dir]`).options({
32
44
  config: {
33
45
  alias: "c",
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Linter } from 'eslint';
2
+ import { Options as Options$2 } from 'prettier';
2
3
  import { Options as Options$1 } from '@cspell/eslint-plugin';
3
4
 
4
5
  interface FlatConfigItem extends Linter.Config {
@@ -11,7 +12,7 @@ type Options = Options$1['cspell'];
11
12
 
12
13
  interface FactoryOptions {
13
14
  /**
14
- * ESLint configuration
15
+ * Custom ESLint configuration to override or extend defaults
15
16
  * @default undefined
16
17
  */
17
18
  config?: Omit<FlatConfigItem, 'name' | 'files'>;
@@ -21,62 +22,62 @@ interface FactoryOptions {
21
22
  */
22
23
  ignores?: string[];
23
24
  /**
24
- * List of development dependencies
25
+ * List of files or directories where development dependencies are allowed
25
26
  * @default undefined
26
27
  */
27
28
  devDependencies?: string[];
28
29
  /**
29
- * List of core modules
30
+ * List of modules to be treated as built-in
30
31
  * @default undefined
31
32
  */
32
33
  coreModules?: string[];
33
34
  /**
34
- * Monorepo scope
35
+ * Specific monorepo scope to apply configurations for
35
36
  * @default undefined
36
37
  */
37
38
  monorepoScope?: string;
38
39
  /**
39
- * Flag indicating whether to enable React configurations
40
+ * Enable React-specific linting rules
40
41
  * @default undefined
41
42
  */
42
43
  react?: boolean | string;
43
44
  /**
44
- * Version of Vue.js (optional)
45
+ * Specify the Vue.js version for linting
45
46
  * @default undefined
46
47
  */
47
48
  vue?: number;
48
49
  /**
49
- * Flag indicating whether ES modules are used
50
+ * Enable ES module linting rules
50
51
  * @default undefined
51
52
  */
52
53
  module?: boolean;
53
54
  /**
54
- * Flag indicating whether to enable GoDaddy configurations
55
+ * Enable GoDaddy-specific linting configurations
55
56
  * @default undefined
56
57
  */
57
58
  godaddy?: boolean | 'typescript';
58
59
  /**
59
- * Flag indicating whether to enable JSDoc configurations
60
+ * Enable or disable JSDoc linting rules
60
61
  * @default true
61
62
  */
62
63
  jsdoc?: boolean;
63
64
  /**
64
- * Flag indicating whether to enable Prettier configurations
65
+ * Enable Prettier for code formatting
65
66
  * @default true
66
67
  */
67
- prettier?: boolean;
68
+ prettier?: boolean | Options$2;
68
69
  /**
69
- * Flag indicating whether to enable Lodash configurations
70
+ * Enable Lodash-specific linting rules
70
71
  * @default true
71
72
  */
72
73
  lodash?: boolean;
73
74
  /**
74
- * Flag indicating whether to enable CSpell configurations
75
+ * Custom spelling configurations for CSpell
75
76
  * @default {}
76
77
  */
77
78
  cspell?: Options | false;
78
79
  /**
79
- * Flag indicating whether to enable imports configurations
80
+ * Enable imports-related linting configurations
80
81
  * @default true
81
82
  */
82
83
  import?: boolean;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Linter } from 'eslint';
2
+ import { Options as Options$2 } from 'prettier';
2
3
  import { Options as Options$1 } from '@cspell/eslint-plugin';
3
4
 
4
5
  interface FlatConfigItem extends Linter.Config {
@@ -11,7 +12,7 @@ type Options = Options$1['cspell'];
11
12
 
12
13
  interface FactoryOptions {
13
14
  /**
14
- * ESLint configuration
15
+ * Custom ESLint configuration to override or extend defaults
15
16
  * @default undefined
16
17
  */
17
18
  config?: Omit<FlatConfigItem, 'name' | 'files'>;
@@ -21,62 +22,62 @@ interface FactoryOptions {
21
22
  */
22
23
  ignores?: string[];
23
24
  /**
24
- * List of development dependencies
25
+ * List of files or directories where development dependencies are allowed
25
26
  * @default undefined
26
27
  */
27
28
  devDependencies?: string[];
28
29
  /**
29
- * List of core modules
30
+ * List of modules to be treated as built-in
30
31
  * @default undefined
31
32
  */
32
33
  coreModules?: string[];
33
34
  /**
34
- * Monorepo scope
35
+ * Specific monorepo scope to apply configurations for
35
36
  * @default undefined
36
37
  */
37
38
  monorepoScope?: string;
38
39
  /**
39
- * Flag indicating whether to enable React configurations
40
+ * Enable React-specific linting rules
40
41
  * @default undefined
41
42
  */
42
43
  react?: boolean | string;
43
44
  /**
44
- * Version of Vue.js (optional)
45
+ * Specify the Vue.js version for linting
45
46
  * @default undefined
46
47
  */
47
48
  vue?: number;
48
49
  /**
49
- * Flag indicating whether ES modules are used
50
+ * Enable ES module linting rules
50
51
  * @default undefined
51
52
  */
52
53
  module?: boolean;
53
54
  /**
54
- * Flag indicating whether to enable GoDaddy configurations
55
+ * Enable GoDaddy-specific linting configurations
55
56
  * @default undefined
56
57
  */
57
58
  godaddy?: boolean | 'typescript';
58
59
  /**
59
- * Flag indicating whether to enable JSDoc configurations
60
+ * Enable or disable JSDoc linting rules
60
61
  * @default true
61
62
  */
62
63
  jsdoc?: boolean;
63
64
  /**
64
- * Flag indicating whether to enable Prettier configurations
65
+ * Enable Prettier for code formatting
65
66
  * @default true
66
67
  */
67
- prettier?: boolean;
68
+ prettier?: boolean | Options$2;
68
69
  /**
69
- * Flag indicating whether to enable Lodash configurations
70
+ * Enable Lodash-specific linting rules
70
71
  * @default true
71
72
  */
72
73
  lodash?: boolean;
73
74
  /**
74
- * Flag indicating whether to enable CSpell configurations
75
+ * Custom spelling configurations for CSpell
75
76
  * @default {}
76
77
  */
77
78
  cspell?: Options | false;
78
79
  /**
79
- * Flag indicating whether to enable imports configurations
80
+ * Enable imports-related linting configurations
80
81
  * @default true
81
82
  */
82
83
  import?: boolean;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.7.2
2
+ * @license @agilebot/eslint-config v0.7.4
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -476,7 +476,7 @@ function imports(opts) {
476
476
  position: "after"
477
477
  }
478
478
  ],
479
- "newlines-between": "never",
479
+ "newlines-between": "always",
480
480
  distinctGroup: false
481
481
  }
482
482
  ],
@@ -942,7 +942,21 @@ function agilebot(opts) {
942
942
  // src/configs/prettier.ts
943
943
  var import_recommended = __toESM(require("eslint-plugin-prettier/recommended"));
944
944
  var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"));
945
- function prettier() {
945
+
946
+ // ../prettier-config/dist/index.mjs
947
+ var config = {
948
+ tabWidth: 2,
949
+ singleQuote: true,
950
+ trailingComma: "none",
951
+ bracketSpacing: true,
952
+ bracketSameLine: true,
953
+ useTabs: false,
954
+ arrowParens: "avoid"
955
+ };
956
+ var src_default = config;
957
+
958
+ // src/configs/prettier.ts
959
+ function prettier(opts) {
946
960
  return {
947
961
  name: "agilebot/prettier",
948
962
  files: DEFAULT_GLOBS,
@@ -958,7 +972,12 @@ function prettier() {
958
972
  "prettier/prettier": [
959
973
  "error",
960
974
  {
961
- endOfLine: "auto"
975
+ endOfLine: "auto",
976
+ ...src_default,
977
+ ...opts
978
+ },
979
+ {
980
+ usePrettierrc: !opts
962
981
  }
963
982
  ]
964
983
  }
@@ -1062,11 +1081,15 @@ function factory(root, options) {
1062
1081
  );
1063
1082
  }
1064
1083
  if (options.prettier) {
1065
- commonConfigs.push(prettier());
1084
+ commonConfigs.push(
1085
+ prettier(
1086
+ typeof options.prettier === "object" ? options.prettier : void 0
1087
+ )
1088
+ );
1066
1089
  }
1067
- const config = [];
1090
+ const config2 = [];
1068
1091
  if (options.godaddy) {
1069
- config.push({
1092
+ config2.push({
1070
1093
  name: "agilebot/parser",
1071
1094
  files: DEFAULT_GLOBS,
1072
1095
  languageOptions: {
@@ -1076,18 +1099,18 @@ function factory(root, options) {
1076
1099
  }
1077
1100
  }
1078
1101
  });
1079
- config.push(env());
1102
+ config2.push(env());
1080
1103
  if (options.jsdoc) {
1081
- config.push(
1104
+ config2.push(
1082
1105
  jsdoc({
1083
1106
  ts: false
1084
1107
  })
1085
1108
  );
1086
1109
  }
1087
- config.push(...commonConfigs);
1088
- config.push(godaddy());
1110
+ config2.push(...commonConfigs);
1111
+ config2.push(godaddy());
1089
1112
  } else {
1090
- config.push({
1113
+ config2.push({
1091
1114
  name: "agilebot/parser",
1092
1115
  files: DEFAULT_GLOBS,
1093
1116
  languageOptions: {
@@ -1105,45 +1128,45 @@ function factory(root, options) {
1105
1128
  }
1106
1129
  }
1107
1130
  });
1108
- config.push(env());
1109
- config.push(standard());
1110
- config.push(ts());
1111
- config.push(jsOnly());
1112
- config.push(dts());
1113
- config.push(tsOnly());
1131
+ config2.push(env());
1132
+ config2.push(standard());
1133
+ config2.push(ts());
1134
+ config2.push(jsOnly());
1135
+ config2.push(dts());
1136
+ config2.push(tsOnly());
1114
1137
  if (options.react) {
1115
- config.push(react({ version: options.react }));
1116
- config.push(reactJsOnly());
1138
+ config2.push(react({ version: options.react }));
1139
+ config2.push(reactJsOnly());
1117
1140
  }
1118
1141
  if (options.vue) {
1119
- config.push(
1142
+ config2.push(
1120
1143
  vue({
1121
1144
  version: options.vue
1122
1145
  })
1123
1146
  );
1124
1147
  }
1125
1148
  if (options.lodash) {
1126
- config.push(lodash());
1149
+ config2.push(lodash());
1127
1150
  }
1128
1151
  if (options.cspell) {
1129
- config.push(cspell(options.cspell));
1152
+ config2.push(cspell(options.cspell));
1130
1153
  }
1131
1154
  if (options.jsdoc) {
1132
- config.push({
1155
+ config2.push({
1133
1156
  ...jsdoc({
1134
1157
  ts: true
1135
1158
  }),
1136
1159
  files: TS_GLOBS
1137
1160
  });
1138
- config.push({
1161
+ config2.push({
1139
1162
  ...jsdoc({
1140
1163
  ts: false
1141
1164
  }),
1142
1165
  files: JS_GLOBS
1143
1166
  });
1144
1167
  }
1145
- config.push(...commonConfigs);
1146
- config.push(
1168
+ config2.push(...commonConfigs);
1169
+ config2.push(
1147
1170
  agilebot({
1148
1171
  root: rootDir,
1149
1172
  monorepoScope: options.monorepoScope
@@ -1151,31 +1174,39 @@ function factory(root, options) {
1151
1174
  );
1152
1175
  }
1153
1176
  if (options.config) {
1154
- config.push({
1177
+ config2.push({
1155
1178
  name: "agilebot/custom",
1156
1179
  files: DEFAULT_GLOBS,
1157
1180
  ...options.config
1158
1181
  });
1159
1182
  }
1160
- config.push({
1183
+ config2.push({
1161
1184
  name: "agilebot/ignores",
1162
1185
  ignores: [...IGNORE_GLOBS, ...options.ignores ?? []]
1163
1186
  });
1164
1187
  const allPlugins = {};
1165
- config.forEach((configItem) => {
1188
+ config2.forEach((configItem) => {
1166
1189
  if (configItem.plugins) {
1167
1190
  Object.assign(allPlugins, configItem.plugins);
1168
1191
  delete configItem.plugins;
1169
1192
  }
1170
1193
  });
1171
- config.unshift({
1194
+ config2.unshift({
1172
1195
  name: "agilebot/plugins",
1173
1196
  files: DEFAULT_GLOBS,
1174
1197
  plugins: allPlugins
1175
1198
  });
1176
- return config;
1199
+ return config2;
1177
1200
  }
1178
1201
  // Annotate the CommonJS export names for ESM import in node:
1179
1202
  0 && (module.exports = {
1180
1203
  agilebot
1181
1204
  });
1205
+ /**
1206
+ * @license @agilebot/prettier-config v0.7.4
1207
+ *
1208
+ * Copyright (c) Agilebot, Inc. and its affiliates.
1209
+ *
1210
+ * This source code is licensed under the MIT license found in the
1211
+ * LICENSE file in the root directory of this source tree.
1212
+ */
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.7.2
2
+ * @license @agilebot/eslint-config v0.7.4
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -16,7 +16,7 @@ import {
16
16
  VUE_GLOBS,
17
17
  __dirname,
18
18
  define_STANDARD_RULES_default
19
- } from "./chunk-R26PCKQR.mjs";
19
+ } from "./chunk-F5MZBDNJ.mjs";
20
20
 
21
21
  // src/factory/index.ts
22
22
  import assert from "node:assert";
@@ -401,7 +401,7 @@ function imports(opts) {
401
401
  position: "after"
402
402
  }
403
403
  ],
404
- "newlines-between": "never",
404
+ "newlines-between": "always",
405
405
  distinctGroup: false
406
406
  }
407
407
  ],
@@ -865,7 +865,21 @@ function agilebot(opts) {
865
865
  // src/configs/prettier.ts
866
866
  import prettierRecommended from "eslint-plugin-prettier/recommended";
867
867
  import pluginPrettier from "eslint-plugin-prettier";
868
- function prettier() {
868
+
869
+ // ../prettier-config/dist/index.mjs
870
+ var config = {
871
+ tabWidth: 2,
872
+ singleQuote: true,
873
+ trailingComma: "none",
874
+ bracketSpacing: true,
875
+ bracketSameLine: true,
876
+ useTabs: false,
877
+ arrowParens: "avoid"
878
+ };
879
+ var src_default = config;
880
+
881
+ // src/configs/prettier.ts
882
+ function prettier(opts) {
869
883
  return {
870
884
  name: "agilebot/prettier",
871
885
  files: DEFAULT_GLOBS,
@@ -881,7 +895,12 @@ function prettier() {
881
895
  "prettier/prettier": [
882
896
  "error",
883
897
  {
884
- endOfLine: "auto"
898
+ endOfLine: "auto",
899
+ ...src_default,
900
+ ...opts
901
+ },
902
+ {
903
+ usePrettierrc: !opts
885
904
  }
886
905
  ]
887
906
  }
@@ -985,11 +1004,15 @@ function factory(root, options) {
985
1004
  );
986
1005
  }
987
1006
  if (options.prettier) {
988
- commonConfigs.push(prettier());
1007
+ commonConfigs.push(
1008
+ prettier(
1009
+ typeof options.prettier === "object" ? options.prettier : void 0
1010
+ )
1011
+ );
989
1012
  }
990
- const config = [];
1013
+ const config2 = [];
991
1014
  if (options.godaddy) {
992
- config.push({
1015
+ config2.push({
993
1016
  name: "agilebot/parser",
994
1017
  files: DEFAULT_GLOBS,
995
1018
  languageOptions: {
@@ -999,18 +1022,18 @@ function factory(root, options) {
999
1022
  }
1000
1023
  }
1001
1024
  });
1002
- config.push(env());
1025
+ config2.push(env());
1003
1026
  if (options.jsdoc) {
1004
- config.push(
1027
+ config2.push(
1005
1028
  jsdoc({
1006
1029
  ts: false
1007
1030
  })
1008
1031
  );
1009
1032
  }
1010
- config.push(...commonConfigs);
1011
- config.push(godaddy());
1033
+ config2.push(...commonConfigs);
1034
+ config2.push(godaddy());
1012
1035
  } else {
1013
- config.push({
1036
+ config2.push({
1014
1037
  name: "agilebot/parser",
1015
1038
  files: DEFAULT_GLOBS,
1016
1039
  languageOptions: {
@@ -1028,45 +1051,45 @@ function factory(root, options) {
1028
1051
  }
1029
1052
  }
1030
1053
  });
1031
- config.push(env());
1032
- config.push(standard());
1033
- config.push(ts());
1034
- config.push(jsOnly());
1035
- config.push(dts());
1036
- config.push(tsOnly());
1054
+ config2.push(env());
1055
+ config2.push(standard());
1056
+ config2.push(ts());
1057
+ config2.push(jsOnly());
1058
+ config2.push(dts());
1059
+ config2.push(tsOnly());
1037
1060
  if (options.react) {
1038
- config.push(react({ version: options.react }));
1039
- config.push(reactJsOnly());
1061
+ config2.push(react({ version: options.react }));
1062
+ config2.push(reactJsOnly());
1040
1063
  }
1041
1064
  if (options.vue) {
1042
- config.push(
1065
+ config2.push(
1043
1066
  vue({
1044
1067
  version: options.vue
1045
1068
  })
1046
1069
  );
1047
1070
  }
1048
1071
  if (options.lodash) {
1049
- config.push(lodash());
1072
+ config2.push(lodash());
1050
1073
  }
1051
1074
  if (options.cspell) {
1052
- config.push(cspell(options.cspell));
1075
+ config2.push(cspell(options.cspell));
1053
1076
  }
1054
1077
  if (options.jsdoc) {
1055
- config.push({
1078
+ config2.push({
1056
1079
  ...jsdoc({
1057
1080
  ts: true
1058
1081
  }),
1059
1082
  files: TS_GLOBS
1060
1083
  });
1061
- config.push({
1084
+ config2.push({
1062
1085
  ...jsdoc({
1063
1086
  ts: false
1064
1087
  }),
1065
1088
  files: JS_GLOBS
1066
1089
  });
1067
1090
  }
1068
- config.push(...commonConfigs);
1069
- config.push(
1091
+ config2.push(...commonConfigs);
1092
+ config2.push(
1070
1093
  agilebot({
1071
1094
  root: rootDir,
1072
1095
  monorepoScope: options.monorepoScope
@@ -1074,30 +1097,38 @@ function factory(root, options) {
1074
1097
  );
1075
1098
  }
1076
1099
  if (options.config) {
1077
- config.push({
1100
+ config2.push({
1078
1101
  name: "agilebot/custom",
1079
1102
  files: DEFAULT_GLOBS,
1080
1103
  ...options.config
1081
1104
  });
1082
1105
  }
1083
- config.push({
1106
+ config2.push({
1084
1107
  name: "agilebot/ignores",
1085
1108
  ignores: [...IGNORE_GLOBS, ...options.ignores ?? []]
1086
1109
  });
1087
1110
  const allPlugins = {};
1088
- config.forEach((configItem) => {
1111
+ config2.forEach((configItem) => {
1089
1112
  if (configItem.plugins) {
1090
1113
  Object.assign(allPlugins, configItem.plugins);
1091
1114
  delete configItem.plugins;
1092
1115
  }
1093
1116
  });
1094
- config.unshift({
1117
+ config2.unshift({
1095
1118
  name: "agilebot/plugins",
1096
1119
  files: DEFAULT_GLOBS,
1097
1120
  plugins: allPlugins
1098
1121
  });
1099
- return config;
1122
+ return config2;
1100
1123
  }
1101
1124
  export {
1102
1125
  factory as agilebot
1103
1126
  };
1127
+ /**
1128
+ * @license @agilebot/prettier-config v0.7.4
1129
+ *
1130
+ * Copyright (c) Agilebot, Inc. and its affiliates.
1131
+ *
1132
+ * This source code is licensed under the MIT license found in the
1133
+ * LICENSE file in the root directory of this source tree.
1134
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilebot/eslint-config",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "description": "Agilebot's ESLint config",
5
5
  "bin": {
6
6
  "eslint-agilebot": "bin/eslint-agilebot"
@@ -31,8 +31,8 @@
31
31
  "@eslint-react/eslint-plugin": "^1.17.1",
32
32
  "@eslint/js": "^9.15.0",
33
33
  "@stylistic/eslint-plugin": "^2.11.0",
34
- "@typescript-eslint/eslint-plugin": "~8.15.0",
35
- "@typescript-eslint/parser": "~8.15.0",
34
+ "@typescript-eslint/eslint-plugin": "~8.25.0",
35
+ "@typescript-eslint/parser": "~8.25.0",
36
36
  "eslint-config-godaddy": "^6.0.0",
37
37
  "eslint-config-prettier": "^9.1.0",
38
38
  "eslint-import-resolver-oxc": "^0.4.0",
@@ -58,7 +58,7 @@
58
58
  "picocolors": "^1.1.0",
59
59
  "vue-eslint-parser": "^9.4.3",
60
60
  "yargs": "^17.7.2",
61
- "@agilebot/eslint-utils": "0.7.2"
61
+ "@agilebot/eslint-utils": "0.7.4"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/yargs": "^17.0.33",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "peerDependencies": {
68
68
  "eslint": "^8.57.0 || ^9.0.0",
69
- "@agilebot/eslint-plugin": "0.7.2"
69
+ "@agilebot/eslint-plugin": "0.7.4"
70
70
  },
71
71
  "files": [
72
72
  "bin",