@agilebot/eslint-config 0.8.2 → 0.8.3

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
@@ -39,79 +39,14 @@ This will automatically apply the default configurations provided by `agilebot`.
39
39
 
40
40
  ### Advanced Customization
41
41
 
42
- If you want more control, you can customize individual integrations using the `FactoryOptions` interface. For example:
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
43
 
44
44
  ```js
45
45
  // eslint.config.mjs
46
46
  import { agilebot } from '@agilebot/eslint-config';
47
47
 
48
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
- }
49
+ ...
50
+ // Other options
116
51
  });
117
52
  ```
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.8.2
2
+ * @license @agilebot/eslint-config v0.8.3
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -7,7 +7,7 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
 
10
- const require_constants = require('./constants-uP0zspUv.js');
10
+ const require_constants = require('./constants-Bk8Ms2lP.js');
11
11
  const yargs = require_constants.__toESM(require("yargs"));
12
12
  const yargs_helpers = require_constants.__toESM(require("yargs/helpers"));
13
13
  const ansis = require_constants.__toESM(require("ansis"));
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.8.2
2
+ * @license @agilebot/eslint-config v0.8.3
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -7,7 +7,7 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
 
10
- import { CLI_NAME } from "./constants-zSSLGYP3.mjs";
10
+ import { CLI_NAME } from "./constants-CBuCoUir.mjs";
11
11
  import { createRequire } from "node:module";
12
12
  import yargs from "yargs";
13
13
  import { hideBin } from "yargs/helpers";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.8.2
2
+ * @license @agilebot/eslint-config v0.8.3
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.8.2
2
+ * @license @agilebot/eslint-config v0.8.3
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.8.2
2
+ * @license @agilebot/eslint-config v0.8.3
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -38,11 +38,6 @@ interface ImportsOptions {
38
38
  * @default undefiend
39
39
  */
40
40
  coreModules?: string[];
41
- /**
42
- * 解析器
43
- * @default 'typescript'
44
- */
45
- resolver?: 'typescript' | 'oxc';
46
41
  /**
47
42
  * 是否允许相对路径
48
43
  * @default false
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.8.2
2
+ * @license @agilebot/eslint-config v0.8.3
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -38,11 +38,6 @@ interface ImportsOptions {
38
38
  * @default undefiend
39
39
  */
40
40
  coreModules?: string[];
41
- /**
42
- * 解析器
43
- * @default 'typescript'
44
- */
45
- resolver?: 'typescript' | 'oxc';
46
41
  /**
47
42
  * 是否允许相对路径
48
43
  * @default false
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.8.2
2
+ * @license @agilebot/eslint-config v0.8.3
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -7,7 +7,7 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
 
10
- const require_constants = require('./constants-uP0zspUv.js');
10
+ const require_constants = require('./constants-Bk8Ms2lP.js');
11
11
  const __agilebot_eslint_utils = require_constants.__toESM(require("@agilebot/eslint-utils"));
12
12
  const node_path = require_constants.__toESM(require("node:path"));
13
13
  const node_assert = require_constants.__toESM(require("node:assert"));
@@ -700,7 +700,7 @@ function imports(packageDir, opts) {
700
700
  },
701
701
  settings: {
702
702
  "import-x/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"] },
703
- "import-x/resolver": opts.resolver === "oxc" ? { oxc: true } : { typescript: { alwaysTryTypes: true } },
703
+ "import-x/resolver": { typescript: { alwaysTryTypes: true } },
704
704
  "import-x/internal-regex": opts.monorepoScope ? `^${opts.monorepoScope.replace(/\//g, "")}/` : void 0,
705
705
  "import-x/core-modules": opts.coreModules ?? void 0
706
706
  }
@@ -949,7 +949,7 @@ function agilebot(opts) {
949
949
  //#region ../prettier-config/dist/index.mjs
950
950
  /**
951
951
 
952
- * @license @agilebot/prettier-config v0.8.2
952
+ * @license @agilebot/prettier-config v0.8.3
953
953
 
954
954
  *
955
955
 
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @agilebot/eslint-config v0.8.2
2
+ * @license @agilebot/eslint-config v0.8.3
3
3
  *
4
4
  * Copyright (c) Agilebot, Inc. and its affiliates.
5
5
  *
@@ -7,7 +7,7 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
 
10
- import { DEFAULT_GLOBS, DTS_GLOBS, IGNORE_GLOBS, JS_GLOBS, TS_GLOBS, VUE_GLOBS } from "./constants-zSSLGYP3.mjs";
10
+ import { DEFAULT_GLOBS, DTS_GLOBS, IGNORE_GLOBS, JS_GLOBS, TS_GLOBS, VUE_GLOBS } from "./constants-CBuCoUir.mjs";
11
11
  import { findCacheDir, findRootDir, findTsconfigFiles, isInEditor } from "@agilebot/eslint-utils";
12
12
  import path from "node:path";
13
13
  import assert from "node:assert";
@@ -707,7 +707,7 @@ function imports(packageDir, opts) {
707
707
  },
708
708
  settings: {
709
709
  "import-x/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"] },
710
- "import-x/resolver": opts.resolver === "oxc" ? { oxc: true } : { typescript: { alwaysTryTypes: true } },
710
+ "import-x/resolver": { typescript: { alwaysTryTypes: true } },
711
711
  "import-x/internal-regex": opts.monorepoScope ? `^${opts.monorepoScope.replace(/\//g, "")}/` : void 0,
712
712
  "import-x/core-modules": opts.coreModules ?? void 0
713
713
  }
@@ -956,7 +956,7 @@ function agilebot(opts) {
956
956
  //#region ../prettier-config/dist/index.mjs
957
957
  /**
958
958
 
959
- * @license @agilebot/prettier-config v0.8.2
959
+ * @license @agilebot/prettier-config v0.8.3
960
960
 
961
961
  *
962
962
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilebot/eslint-config",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Agilebot's ESLint config",
5
5
  "bin": {
6
6
  "eslint-agilebot": "bin/eslint-agilebot"
@@ -27,40 +27,39 @@
27
27
  "homepage": "https://github.com/sh-agilebot/frontend-toolkit/tree/master/packages/eslint-config#readme",
28
28
  "dependencies": {
29
29
  "@cspell/eslint-plugin": "^8.17.5",
30
- "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
31
- "@eslint-react/eslint-plugin": "^1.29.0",
30
+ "@eslint-community/eslint-plugin-eslint-comments": "~4.4.1",
31
+ "@eslint-react/eslint-plugin": "~1.29.0",
32
32
  "@eslint/compat": "^1.2.7",
33
33
  "@eslint/js": "^9.21.0",
34
- "@stylistic/eslint-plugin": "^4.1.0",
34
+ "@stylistic/eslint-plugin": "~4.1.0",
35
35
  "@typescript-eslint/eslint-plugin": "~8.25.0",
36
36
  "@typescript-eslint/parser": "~8.25.0",
37
37
  "ansis": "^3.17.0",
38
38
  "eslint-config-godaddy": "^6.0.0",
39
- "eslint-config-prettier": "^9.1.0",
40
- "eslint-import-resolver-oxc": "^0.12.0",
41
- "eslint-import-resolver-typescript": "^3.8.3",
42
- "eslint-plugin-file-progress": "^3.0.1",
43
- "eslint-plugin-import-x": "^4.6.1",
44
- "eslint-plugin-jsdoc": "^50.6.3",
45
- "eslint-plugin-jsx-a11y": "^6.10.2",
46
- "eslint-plugin-mocha": "^10.5.0",
47
- "eslint-plugin-n": "^17.16.1",
48
- "eslint-plugin-no-relative-import-paths": "^1.6.1",
49
- "eslint-plugin-prefer-arrow-functions": "^3.6.2",
50
- "eslint-plugin-prettier": "^5.2.1",
51
- "eslint-plugin-promise": "^7.2.1",
39
+ "eslint-config-prettier": "~9.1.0",
40
+ "eslint-import-resolver-typescript": "^4.4.3",
41
+ "eslint-plugin-file-progress": "~3.0.1",
42
+ "eslint-plugin-import-x": "~4.6.1",
43
+ "eslint-plugin-jsdoc": "~50.6.3",
44
+ "eslint-plugin-jsx-a11y": "~6.10.2",
45
+ "eslint-plugin-mocha": "~10.5.0",
46
+ "eslint-plugin-n": "~17.16.1",
47
+ "eslint-plugin-no-relative-import-paths": "~1.6.1",
48
+ "eslint-plugin-prefer-arrow-functions": "~3.6.2",
49
+ "eslint-plugin-prettier": "~5.2.1",
50
+ "eslint-plugin-promise": "~7.2.1",
52
51
  "eslint-plugin-react": "^7.37.2",
53
52
  "eslint-plugin-react-edge": "^0.1.2",
54
53
  "eslint-plugin-react-hooks": "^5.0.0",
55
54
  "eslint-plugin-unicorn": "^56.0.1",
56
- "eslint-plugin-unused-imports": "^4.1.4",
57
- "eslint-plugin-vue": "^9.32.0",
58
- "eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0",
55
+ "eslint-plugin-unused-imports": "~4.1.4",
56
+ "eslint-plugin-vue": "~9.32.0",
57
+ "eslint-plugin-you-dont-need-lodash-underscore": "~6.13.0",
59
58
  "find-up": "^5.0.0",
60
59
  "globals": "^16.0.0",
61
60
  "vue-eslint-parser": "^9.4.3",
62
61
  "yargs": "^17.7.2",
63
- "@agilebot/eslint-utils": "0.8.2"
62
+ "@agilebot/eslint-utils": "0.8.3"
64
63
  },
65
64
  "devDependencies": {
66
65
  "@types/yargs": "^17.0.33",
@@ -68,7 +67,7 @@
68
67
  },
69
68
  "peerDependencies": {
70
69
  "eslint": "^8.57.0 || ^9.0.0",
71
- "@agilebot/eslint-plugin": "0.8.2"
70
+ "@agilebot/eslint-plugin": "0.8.3"
72
71
  },
73
72
  "files": [
74
73
  "bin",