@agilebot/eslint-config 0.9.0 → 0.9.2

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/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/README.md CHANGED
@@ -1,52 +1,52 @@
1
- # @agilebot/eslint-config
2
-
3
- [![npm](https://img.shields.io/npm/v/@agilebot/eslint-config?color=444&label=)](https://npmjs.com/package/@agilebot/eslint-config)
4
-
5
- ## Usage
6
-
7
- ### Manual Install
8
-
9
- ```bash
10
- npm install --save-dev eslint \
11
- @agilebot/eslint-config
12
- ```
13
-
14
- And create `eslint.config.mjs` in your project root:
15
-
16
- ```js
17
- // eslint.config.mjs
18
- import { agilebot } from '@agilebot/eslint-config';
19
-
20
- export default agilebot(import.meta);
21
- ```
22
-
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:
30
-
31
- ```js
32
- // eslint.config.mjs
33
- import { agilebot } from '@agilebot/eslint-config';
34
-
35
- export default agilebot(import.meta);
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](https://github.com/sh-agilebot/frontend-toolkit/blob/master/packages/eslint-config/src/factory/options.ts) 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
- ...
50
- // Other options
51
- });
52
- ```
1
+ # @agilebot/eslint-config
2
+
3
+ [![npm](https://img.shields.io/npm/v/@agilebot/eslint-config?color=444&label=)](https://npmjs.com/package/@agilebot/eslint-config)
4
+
5
+ ## Usage
6
+
7
+ ### Manual Install
8
+
9
+ ```bash
10
+ npm install --save-dev eslint \
11
+ @agilebot/eslint-config
12
+ ```
13
+
14
+ And create `eslint.config.mjs` in your project root:
15
+
16
+ ```js
17
+ // eslint.config.mjs
18
+ import { agilebot } from '@agilebot/eslint-config';
19
+
20
+ export default agilebot(import.meta);
21
+ ```
22
+
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:
30
+
31
+ ```js
32
+ // eslint.config.mjs
33
+ import { agilebot } from '@agilebot/eslint-config';
34
+
35
+ export default agilebot(import.meta);
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](https://github.com/sh-agilebot/frontend-toolkit/blob/master/packages/eslint-config/src/factory/options.ts) 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
+ ...
50
+ // Other options
51
+ });
52
+ ```
@@ -1,2 +1,2 @@
1
- #!/usr/bin/env node
2
- import '../dist/cli.js';
1
+ #!/usr/bin/env node
2
+ import '../dist/cli.mjs';
@@ -1,10 +1,10 @@
1
- import { CLI_NAME } from "./constants-D6y7pnqv.js";
1
+ import { t as CLI_NAME } from "./constants-DnH_FaAF.mjs";
2
2
  import { createRequire } from "node:module";
3
+ import path from "node:path";
4
+ import { isCI } from "@agilebot/eslint-utils";
3
5
  import yargs from "yargs";
4
6
  import { hideBin } from "yargs/helpers";
5
7
  import ansis from "ansis";
6
- import { isCI } from "@agilebot/eslint-utils";
7
- import path from "node:path";
8
8
 
9
9
  //#region src/cli/stages/eslint.ts
10
10
  const require = createRequire(import.meta.url);
@@ -19,8 +19,7 @@ function patch() {
19
19
  }
20
20
  function runBinary() {
21
21
  const pkg = require.resolve("eslint/package.json");
22
- const bin = path.join(pkg, "..", "bin", "eslint.js");
23
- require(bin);
22
+ require(path.join(pkg, "..", "bin", "eslint.js"));
24
23
  }
25
24
 
26
25
  //#endregion
@@ -67,4 +67,4 @@ const IGNORE_GLOBS = [
67
67
  const CLI_NAME = "eslint-agilebot";
68
68
 
69
69
  //#endregion
70
- export { CLI_NAME, DEFAULT_GLOBS, DTS_GLOBS, IGNORE_GLOBS, JS_GLOBS, TS_GLOBS, VUE_GLOBS };
70
+ export { JS_GLOBS as a, IGNORE_GLOBS as i, DEFAULT_GLOBS as n, TS_GLOBS as o, DTS_GLOBS as r, VUE_GLOBS as s, CLI_NAME as t };
@@ -1,10 +1,10 @@
1
- import { DEFAULT_GLOBS, DTS_GLOBS, IGNORE_GLOBS, JS_GLOBS, TS_GLOBS, VUE_GLOBS } from "./constants-D6y7pnqv.js";
2
- import { findCacheDir, findRootDir, findTsconfigFiles, isInEditor } from "@agilebot/eslint-utils";
3
- import path from "node:path";
1
+ import { a as JS_GLOBS, i as IGNORE_GLOBS, n as DEFAULT_GLOBS, o as TS_GLOBS, r as DTS_GLOBS, s as VUE_GLOBS } from "./constants-DnH_FaAF.mjs";
4
2
  import assert from "node:assert";
5
3
  import { fileURLToPath } from "node:url";
4
+ import path from "node:path";
6
5
  import * as parserTs from "@typescript-eslint/parser";
7
6
  import * as parserVue from "vue-eslint-parser";
7
+ import { findCacheDir, findRootDir, findTsconfigFiles, isInEditor } from "@agilebot/eslint-utils";
8
8
  import globals from "globals";
9
9
  import pluginImport from "eslint-plugin-import-x";
10
10
  import pluginNode from "eslint-plugin-n";
@@ -630,7 +630,7 @@ function imports(packageDir, opts) {
630
630
  if (!fs.existsSync(tmpPkgDir)) fs.mkdirSync(tmpPkgDir, { recursive: true });
631
631
  const tmpPkgJson = JSON.stringify(tmpPkg, null, 2);
632
632
  fs.writeFileSync(path.join(tmpPkgDir, "package.json"), tmpPkgJson);
633
- const ignorePatterns = [String.raw`\?(react|raw|url|inline|worker|worker&inline|worker&url|sharedworker|sharedworker&inline|sharedworker&url)$`];
633
+ const ignorePatterns = [String.raw`\?(react|raw|url|inline|worker|worker&inline|worker&url|sharedworker|sharedworker&inline|sharedworker&url)$`, String.raw`^bun(:\w+)?$`];
634
634
  return {
635
635
  name: "agilebot/imports",
636
636
  files: DEFAULT_GLOBS,
@@ -950,7 +950,7 @@ function agilebot(opts) {
950
950
  }
951
951
 
952
952
  //#endregion
953
- //#region ../prettier-config/dist/index.js
953
+ //#region ../prettier-config/dist/index.mjs
954
954
  var src_default = {
955
955
  tabWidth: 2,
956
956
  singleQuote: true,
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@agilebot/eslint-config",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "type": "module",
5
5
  "description": "Agilebot's ESLint config",
6
6
  "bin": {
7
7
  "eslint-agilebot": "bin/eslint-agilebot"
8
8
  },
9
- "main": "./dist/index.js",
10
- "types": "./dist/index.d.ts",
9
+ "main": "./dist/index.mjs",
10
+ "types": "./dist/index.d.mts",
11
11
  "exports": {
12
12
  ".": {
13
- "types": "./dist/index.d.ts",
14
- "import": "./dist/index.js"
13
+ "types": "./dist/index.d.mts",
14
+ "import": "./dist/index.mjs"
15
15
  }
16
16
  },
17
17
  "license": "MIT",
@@ -58,7 +58,7 @@
58
58
  "globals": "^16.2.0",
59
59
  "vue-eslint-parser": "^10.1.3",
60
60
  "yargs": "^17.7.2",
61
- "@agilebot/eslint-utils": "0.9.0"
61
+ "@agilebot/eslint-utils": "0.9.2"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/yargs": "^17.0.33",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "peerDependencies": {
68
68
  "eslint": "^9.0.0",
69
- "@agilebot/eslint-plugin": "0.9.0"
69
+ "@agilebot/eslint-plugin": "0.9.2"
70
70
  },
71
71
  "files": [
72
72
  "bin",
File without changes
File without changes