@agilebot/eslint-config 0.7.0-beta.1 → 0.7.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
package/LICENSE CHANGED
@@ -1,9 +1,9 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2024 Agilebot, Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Agilebot, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/LICENSE.tpl CHANGED
@@ -1,8 +1,8 @@
1
- /**
2
- * @license %(name)s v%(version)s
3
- *
4
- * Copyright (c) Agilebot, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
1
+ /**
2
+ * @license %(name)s v%(version)s
3
+ *
4
+ * Copyright (c) Agilebot, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
package/README.md CHANGED
@@ -10,7 +10,7 @@ npm install --save-dev eslint \
10
10
  ```
11
11
 
12
12
  ```js
13
- // .eslintrc.js
13
+ // eslint.config.js
14
14
  const { agilebot } = require('@agilebot/eslint-config');
15
15
 
16
16
  module.exports = agilebot(__dirname);
@@ -1,2 +1,2 @@
1
- #!/usr/bin/env node
2
- require('../dist/cli');
1
+ #!/usr/bin/env node
2
+ require('../dist/cli');
@@ -1,11 +1,11 @@
1
- /**
2
- * @license @agilebot/eslint-config v0.7.0-beta.1
3
- *
4
- * Copyright (c) Agilebot, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
1
+ /**
2
+ * @license @agilebot/eslint-config v0.7.0-beta.2
3
+ *
4
+ * Copyright (c) Agilebot, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
9
 
10
10
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
11
11
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
package/dist/cli.js CHANGED
@@ -1,11 +1,11 @@
1
- /**
2
- * @license @agilebot/eslint-config v0.7.0-beta.1
3
- *
4
- * Copyright (c) Agilebot, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
1
+ /**
2
+ * @license @agilebot/eslint-config v0.7.0-beta.2
3
+ *
4
+ * Copyright (c) Agilebot, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
9
 
10
10
  "use strict";
11
11
  var __create = Object.create;
package/dist/cli.mjs CHANGED
@@ -1,16 +1,16 @@
1
- /**
2
- * @license @agilebot/eslint-config v0.7.0-beta.1
3
- *
4
- * Copyright (c) Agilebot, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
1
+ /**
2
+ * @license @agilebot/eslint-config v0.7.0-beta.2
3
+ *
4
+ * Copyright (c) Agilebot, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
9
 
10
10
  import {
11
11
  CLI_NAME,
12
12
  __require
13
- } from "./chunk-XQZGZMJY.mjs";
13
+ } from "./chunk-6UXOQCYC.mjs";
14
14
 
15
15
  // src/cli/index.ts
16
16
  import { isCI } from "@agilebot/eslint-utils";
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- /**
2
- * @license @agilebot/eslint-config v0.7.0-beta.1
3
- *
4
- * Copyright (c) Agilebot, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
1
+ /**
2
+ * @license @agilebot/eslint-config v0.7.0-beta.2
3
+ *
4
+ * Copyright (c) Agilebot, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
9
 
10
10
  "use strict";
11
11
  var __create = Object.create;
@@ -1151,18 +1151,14 @@ function factory(root, options) {
1151
1151
  name: "agilebot/ignores",
1152
1152
  ignores: [...IGNORE_GLOBS, ...options.ignores ?? []]
1153
1153
  });
1154
- const includedPlugins = /* @__PURE__ */ new Set();
1154
+ const allPlugins = {};
1155
1155
  config.forEach((configItem) => {
1156
1156
  if (configItem.plugins) {
1157
- Object.keys(configItem.plugins).forEach((pluginName) => {
1158
- if (includedPlugins.has(pluginName)) {
1159
- delete configItem.plugins[pluginName];
1160
- } else {
1161
- includedPlugins.add(pluginName);
1162
- }
1163
- });
1157
+ Object.assign(allPlugins, configItem.plugins);
1158
+ delete configItem.plugins;
1164
1159
  }
1165
1160
  });
1161
+ config[0].plugins = allPlugins;
1166
1162
  return config;
1167
1163
  }
1168
1164
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
- /**
2
- * @license @agilebot/eslint-config v0.7.0-beta.1
3
- *
4
- * Copyright (c) Agilebot, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
1
+ /**
2
+ * @license @agilebot/eslint-config v0.7.0-beta.2
3
+ *
4
+ * Copyright (c) Agilebot, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
9
 
10
10
  import {
11
11
  DEFAULT_GLOBS,
@@ -16,7 +16,7 @@ import {
16
16
  VUE_GLOBS,
17
17
  __dirname,
18
18
  define_STANDARD_RULES_default
19
- } from "./chunk-XQZGZMJY.mjs";
19
+ } from "./chunk-6UXOQCYC.mjs";
20
20
 
21
21
  // src/factory/index.ts
22
22
  import assert from "node:assert";
@@ -1074,18 +1074,14 @@ function factory(root, options) {
1074
1074
  name: "agilebot/ignores",
1075
1075
  ignores: [...IGNORE_GLOBS, ...options.ignores ?? []]
1076
1076
  });
1077
- const includedPlugins = /* @__PURE__ */ new Set();
1077
+ const allPlugins = {};
1078
1078
  config.forEach((configItem) => {
1079
1079
  if (configItem.plugins) {
1080
- Object.keys(configItem.plugins).forEach((pluginName) => {
1081
- if (includedPlugins.has(pluginName)) {
1082
- delete configItem.plugins[pluginName];
1083
- } else {
1084
- includedPlugins.add(pluginName);
1085
- }
1086
- });
1080
+ Object.assign(allPlugins, configItem.plugins);
1081
+ delete configItem.plugins;
1087
1082
  }
1088
1083
  });
1084
+ config[0].plugins = allPlugins;
1089
1085
  return config;
1090
1086
  }
1091
1087
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilebot/eslint-config",
3
- "version": "0.7.0-beta.1",
3
+ "version": "0.7.0-beta.2",
4
4
  "description": "Agilebot's ESLint config",
5
5
  "bin": {
6
6
  "eslint-agilebot": "bin/eslint-agilebot"
@@ -59,15 +59,15 @@
59
59
  "picocolors": "^1.1.0",
60
60
  "vue-eslint-parser": "^9.4.3",
61
61
  "yargs": "^17.7.2",
62
- "@agilebot/eslint-utils": "0.7.0-beta.1"
62
+ "@agilebot/eslint-utils": "0.7.0-beta.2"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@types/yargs": "^17.0.33",
66
66
  "eslint-config-love": "^89.0.1"
67
67
  },
68
68
  "peerDependencies": {
69
- "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0",
70
- "@agilebot/eslint-plugin": "0.7.0-beta.1"
69
+ "eslint": "^8.57.0 || ^9.0.0",
70
+ "@agilebot/eslint-plugin": "0.7.0-beta.2"
71
71
  },
72
72
  "files": [
73
73
  "bin",