@darksheep/eslint 4.4.19 → 4.4.20

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +10 -10
  3. package/types/src/configs/eslint-base.d.ts +1 -1
  4. package/types/src/configs/eslint-complexity.d.ts +1 -1
  5. package/types/src/configs/eslint-ignores.d.ts +1 -1
  6. package/types/src/configs/eslint-recommended.d.ts +1 -1
  7. package/types/src/configs/eslint-style.d.ts +1 -1
  8. package/types/src/custom/instance-of-array.d.ts +1 -1
  9. package/types/src/custom/loose-types.d.ts +1 -1
  10. package/types/src/custom/no-useless-expression.d.ts +1 -1
  11. package/types/src/custom/sequence-expression.d.ts +1 -1
  12. package/types/src/index.d.ts +1 -2
  13. package/types/src/plugins/eslint-comments.d.ts +1 -1
  14. package/types/src/plugins/jest.d.ts +1 -1
  15. package/types/src/plugins/jsdoc.d.ts +1 -1
  16. package/types/src/plugins/json.d.ts +1 -1
  17. package/types/src/plugins/jsx-a11y.d.ts +1 -1
  18. package/types/src/plugins/node.d.ts +1 -1
  19. package/types/src/plugins/package-json.d.ts +1 -1
  20. package/types/src/plugins/promise.d.ts +1 -1
  21. package/types/src/plugins/react.d.ts +1 -1
  22. package/types/src/plugins/regexp.d.ts +1 -1
  23. package/types/src/plugins/sca.d.ts +1 -1
  24. package/types/src/plugins/security.d.ts +1 -1
  25. package/types/src/plugins/sonarjs.d.ts +1 -1
  26. package/types/src/plugins/style.d.ts +1 -1
  27. package/types/src/plugins/typescript.d.ts +1 -1
  28. package/types/src/plugins/unicorn.d.ts +1 -1
  29. package/types/src/plugins/unused-imports.d.ts +1 -1
  30. package/types/src/utilities/editorconfig.d.ts +16 -1
  31. package/types/src/utilities/eslint-files.d.ts +2 -2
  32. package/types/src/utilities/make-compat.d.ts +1 -1
  33. package/types/src/utilities/package.d.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.4.20](https://github.com/DarkSheepSoftware/eslint/compare/v4.4.19...v4.4.20) (2024-07-01)
4
+
5
+
6
+ ### 📦 Dependencies
7
+
8
+ * **deps:** update yarn to v4.3.1 ([#491](https://github.com/DarkSheepSoftware/eslint/issues/491)) ([7392999](https://github.com/DarkSheepSoftware/eslint/commit/739299949f9208cfb612e9845e283f3836484ce4))
9
+ * **dev:** update dependency @types/node to v20.14.7 ([#490](https://github.com/DarkSheepSoftware/eslint/issues/490)) ([9c2c55e](https://github.com/DarkSheepSoftware/eslint/commit/9c2c55ece63dc2f3f3e982b2d169843e4a3f047c))
10
+ * **dev:** update dependency @types/node to v20.14.9 ([#492](https://github.com/DarkSheepSoftware/eslint/issues/492)) ([a0f553d](https://github.com/DarkSheepSoftware/eslint/commit/a0f553d870c625874f4c0670921aa0c88d34782d))
11
+ * **dev:** update dependency typescript to ~5.5.0 ([#488](https://github.com/DarkSheepSoftware/eslint/issues/488)) ([c6a1bfa](https://github.com/DarkSheepSoftware/eslint/commit/c6a1bfa76e0e96f817a6ff5effd821cb59d28d1f))
12
+ * **lock:** lock file maintenance ([#494](https://github.com/DarkSheepSoftware/eslint/issues/494)) ([4a5ceb6](https://github.com/DarkSheepSoftware/eslint/commit/4a5ceb6bfdcb3e1ae9e5f954fa74efc5d7929179))
13
+ * **pkg:** update dependency @eslint/js to v9.6.0 ([#497](https://github.com/DarkSheepSoftware/eslint/issues/497)) ([c49946c](https://github.com/DarkSheepSoftware/eslint/commit/c49946ccce2c85e8839223d81d8be8f51a7de7db))
14
+ * **pkg:** update dependency @stylistic/eslint-plugin to v2.3.0 ([#496](https://github.com/DarkSheepSoftware/eslint/issues/496)) ([5dd3839](https://github.com/DarkSheepSoftware/eslint/commit/5dd3839c512b062cc80043d4cd36c83cb3538298))
15
+ * **pkg:** update dependency eslint to v9 ([#499](https://github.com/DarkSheepSoftware/eslint/issues/499)) ([6bacdf0](https://github.com/DarkSheepSoftware/eslint/commit/6bacdf0a4528895d71797167273dafb10f88b6a1))
16
+ * **pkg:** update dependency eslint-plugin-jsdoc to v48.5.0 ([#493](https://github.com/DarkSheepSoftware/eslint/issues/493)) ([0ab6279](https://github.com/DarkSheepSoftware/eslint/commit/0ab6279371d5ba708113de72512fd0a5f27d1a10))
17
+ * **pkg:** update dependency eslint-plugin-promise to v6.4.0 ([#498](https://github.com/DarkSheepSoftware/eslint/issues/498)) ([c595f7b](https://github.com/DarkSheepSoftware/eslint/commit/c595f7be95980ade23b897fd5bc31bd89baee685))
18
+ * **pkg:** update typescript-eslint monorepo to v7.14.1 ([#495](https://github.com/DarkSheepSoftware/eslint/issues/495)) ([b75fa7a](https://github.com/DarkSheepSoftware/eslint/commit/b75fa7ac822967686900a80412b51bf7afff0460))
19
+
3
20
  ## [4.4.19](https://github.com/DarkSheepSoftware/eslint/compare/v4.4.18...v4.4.19) (2024-06-20)
4
21
 
5
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darksheep/eslint",
3
- "version": "4.4.19",
3
+ "version": "4.4.20",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/DarkSheepSoftware/eslint"
@@ -24,19 +24,19 @@
24
24
  "dependencies": {
25
25
  "@eslint-community/eslint-plugin-eslint-comments": "4.3.0",
26
26
  "@eslint/eslintrc": "3.1.0",
27
- "@eslint/js": "9.5.0",
28
- "@stylistic/eslint-plugin": "2.2.2",
29
- "@typescript-eslint/eslint-plugin": "7.13.1",
30
- "@typescript-eslint/parser": "7.13.1",
27
+ "@eslint/js": "9.6.0",
28
+ "@stylistic/eslint-plugin": "2.3.0",
29
+ "@typescript-eslint/eslint-plugin": "7.14.1",
30
+ "@typescript-eslint/parser": "7.14.1",
31
31
  "editorconfig": "2.0.0",
32
- "eslint": "8.57.0",
32
+ "eslint": "9.6.0",
33
33
  "eslint-plugin-jest": "28.6.0",
34
- "eslint-plugin-jsdoc": "48.2.12",
34
+ "eslint-plugin-jsdoc": "48.5.0",
35
35
  "eslint-plugin-jsonc": "2.16.0",
36
36
  "eslint-plugin-jsx-a11y": "6.9.0",
37
37
  "eslint-plugin-n": "17.9.0",
38
38
  "eslint-plugin-package-json": "0.15.0",
39
- "eslint-plugin-promise": "6.2.0",
39
+ "eslint-plugin-promise": "6.4.0",
40
40
  "eslint-plugin-react": "7.34.3",
41
41
  "eslint-plugin-regexp": "2.6.0",
42
42
  "eslint-plugin-security": "3.0.1",
@@ -53,14 +53,14 @@
53
53
  "@types/estree": "~1.0.2",
54
54
  "@types/node": "~20.14.0",
55
55
  "type-fest": "~4.20.0",
56
- "typescript": "~5.4.0"
56
+ "typescript": "~5.5.0"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "typescript": {
60
60
  "optional": true
61
61
  }
62
62
  },
63
- "packageManager": "yarn@4.3.0",
63
+ "packageManager": "yarn@4.3.1",
64
64
  "engines": {
65
65
  "node": "^20 || ^21"
66
66
  }
@@ -2,4 +2,4 @@
2
2
  * Get the ESLint base config
3
3
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
4
4
  */
5
- export function createEslintBaseConfig(): Promise<import('eslint').Linter.FlatConfig[]>;
5
+ export function createEslintBaseConfig(): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -2,4 +2,4 @@
2
2
  * Get the ESLint config for complexity checks
3
3
  * @returns {import('eslint').Linter.FlatConfig[]}
4
4
  */
5
- export function createEslintComplexityConfig(): import('eslint').Linter.FlatConfig[];
5
+ export function createEslintComplexityConfig(): import("eslint").Linter.FlatConfig[];
@@ -3,4 +3,4 @@
3
3
  * @param {import('node:url').URL} root root url
4
4
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
5
5
  */
6
- export function createEslintIgnoresConfig(root: import('node:url').URL): Promise<import('eslint').Linter.FlatConfig[]>;
6
+ export function createEslintIgnoresConfig(root: import("node:url").URL): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -2,4 +2,4 @@
2
2
  * Get recommended ESLint config
3
3
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
4
4
  */
5
- export function createEslintRecommendsConfig(): Promise<import('eslint').Linter.FlatConfig[]>;
5
+ export function createEslintRecommendsConfig(): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -3,4 +3,4 @@
3
3
  * @param {import('node:url').URL} root root url
4
4
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
5
5
  */
6
- export function createStyleConfigs(root: import('node:url').URL): Promise<import('eslint').Linter.FlatConfig[]>;
6
+ export function createStyleConfigs(root: import("node:url").URL): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -1,3 +1,3 @@
1
1
  export default rule;
2
2
  /** @type {import('eslint').Rule.RuleModule} */
3
- declare const rule: import('eslint').Rule.RuleModule;
3
+ declare const rule: import("eslint").Rule.RuleModule;
@@ -1,3 +1,3 @@
1
1
  export default rule;
2
2
  /** @type {import('eslint').Rule.RuleModule} */
3
- declare const rule: import('eslint').Rule.RuleModule;
3
+ declare const rule: import("eslint").Rule.RuleModule;
@@ -1,3 +1,3 @@
1
1
  export default rule;
2
2
  /** @type {import('eslint').Rule.RuleModule} */
3
- declare const rule: import('eslint').Rule.RuleModule;
3
+ declare const rule: import("eslint").Rule.RuleModule;
@@ -1,3 +1,3 @@
1
1
  export default rule;
2
2
  /** @type {import('eslint').Rule.RuleModule} */
3
- declare const rule: import('eslint').Rule.RuleModule;
3
+ declare const rule: import("eslint").Rule.RuleModule;
@@ -1,8 +1,7 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
1
  /**
3
2
  * @param {string | URL} root root url
4
3
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
5
4
  */
6
- export function createConfig(root: string | URL): Promise<import('eslint').Linter.FlatConfig[]>;
5
+ export function createConfig(root: string | URL): Promise<import("eslint").Linter.FlatConfig[]>;
7
6
  export * from "eslint";
8
7
  import { URL } from 'node:url';
@@ -2,4 +2,4 @@
2
2
  * Get ESLint config for comments check
3
3
  * @returns {import('eslint').Linter.FlatConfig[]}
4
4
  */
5
- export function createEslintCommentsConfig(): import('eslint').Linter.FlatConfig[];
5
+ export function createEslintCommentsConfig(): import("eslint").Linter.FlatConfig[];
@@ -3,4 +3,4 @@
3
3
  * @param {import('node:url').URL} root root url
4
4
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
5
5
  */
6
- export function createEslintJestConfig(root: import('node:url').URL): Promise<import('eslint').Linter.FlatConfig[]>;
6
+ export function createEslintJestConfig(root: import("node:url").URL): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -3,4 +3,4 @@
3
3
  * @param {URL} root The root of the package being linted
4
4
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
5
5
  */
6
- export function createEslintJSDocConfig(root: URL): Promise<import('eslint').Linter.FlatConfig[]>;
6
+ export function createEslintJSDocConfig(root: URL): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -2,4 +2,4 @@
2
2
  * Get ESLint config for imports check
3
3
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
4
4
  */
5
- export function createEslintJsonConfig(): Promise<import('eslint').Linter.FlatConfig[]>;
5
+ export function createEslintJsonConfig(): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -2,4 +2,4 @@
2
2
  * Get ESLint config for imports check
3
3
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
4
4
  */
5
- export function createEslintJsxA11yConfig(): Promise<import('eslint').Linter.FlatConfig[]>;
5
+ export function createEslintJsxA11yConfig(): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -3,4 +3,4 @@
3
3
  * @param {URL} root root url
4
4
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
5
5
  */
6
- export function createEslintNodeConfigs(root: URL): Promise<import('eslint').Linter.FlatConfig[]>;
6
+ export function createEslintNodeConfigs(root: URL): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -2,4 +2,4 @@
2
2
  * Get ESLint config for the regexp plugin
3
3
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
4
4
  */
5
- export function createEslintPackageJsonConfig(): Promise<import('eslint').Linter.FlatConfig[]>;
5
+ export function createEslintPackageJsonConfig(): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -2,4 +2,4 @@
2
2
  * Get ESLint config for the promise plugin
3
3
  * @returns {import('eslint').Linter.FlatConfig[]}
4
4
  */
5
- export function createEslintPromiseConfig(): import('eslint').Linter.FlatConfig[];
5
+ export function createEslintPromiseConfig(): import("eslint").Linter.FlatConfig[];
@@ -3,4 +3,4 @@
3
3
  * @param {URL} root The root of the package being linted
4
4
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
5
5
  */
6
- export function createEslintReactConfig(root: URL): Promise<import('eslint').Linter.FlatConfig[]>;
6
+ export function createEslintReactConfig(root: URL): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -3,4 +3,4 @@
3
3
  * @param {import('node:url').URL} root root url
4
4
  * @returns {import('eslint').Linter.FlatConfig[]}
5
5
  */
6
- export function createEslintRegexpConfig(root: import('node:url').URL): import('eslint').Linter.FlatConfig[];
6
+ export function createEslintRegexpConfig(root: import("node:url").URL): import("eslint").Linter.FlatConfig[];
@@ -3,4 +3,4 @@
3
3
  * @param {URL} root The root url of the package we are linting
4
4
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
5
5
  */
6
- export function createEslintSCAConfig(root: URL): Promise<import('eslint').Linter.FlatConfig[]>;
6
+ export function createEslintSCAConfig(root: URL): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -2,4 +2,4 @@
2
2
  * Get ESLint config for the security plugin
3
3
  * @returns {import('eslint').Linter.FlatConfig[]}
4
4
  */
5
- export function createEslintSecurityConfig(): import('eslint').Linter.FlatConfig[];
5
+ export function createEslintSecurityConfig(): import("eslint").Linter.FlatConfig[];
@@ -2,4 +2,4 @@
2
2
  * Get ESLint config for the sonar plugin
3
3
  * @returns {import('eslint').Linter.FlatConfig[]}
4
4
  */
5
- export function createEslintSonarJSConfig(): import('eslint').Linter.FlatConfig[];
5
+ export function createEslintSonarJSConfig(): import("eslint").Linter.FlatConfig[];
@@ -2,4 +2,4 @@
2
2
  * Get ESLint config for the sonar plugin
3
3
  * @returns {import('eslint').Linter.FlatConfig[]}
4
4
  */
5
- export function createEslintStyleConfig(): import('eslint').Linter.FlatConfig[];
5
+ export function createEslintStyleConfig(): import("eslint").Linter.FlatConfig[];
@@ -3,4 +3,4 @@
3
3
  * @param {import('node:url').URL} root root url
4
4
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
5
5
  */
6
- export function createEslintTypescriptConfig(root: import('node:url').URL): Promise<import('eslint').Linter.FlatConfig[]>;
6
+ export function createEslintTypescriptConfig(root: import("node:url").URL): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -3,4 +3,4 @@
3
3
  * @param {import('node:url').URL} root root url
4
4
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
5
5
  */
6
- export function createEslintUnicornConfig(root: import('node:url').URL): Promise<import('eslint').Linter.FlatConfig[]>;
6
+ export function createEslintUnicornConfig(root: import("node:url").URL): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -3,4 +3,4 @@
3
3
  * @param {import('node:url').URL} root root url
4
4
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
5
5
  */
6
- export function createEslintUnusedImportsConfig(root: import('node:url').URL): Promise<import('eslint').Linter.FlatConfig[]>;
6
+ export function createEslintUnusedImportsConfig(root: import("node:url").URL): Promise<import("eslint").Linter.FlatConfig[]>;
@@ -2,24 +2,39 @@
2
2
  * @param {import('node:url').URL} root root url
3
3
  * @returns {Promise<import('eslint').Linter.FlatConfig[]>}
4
4
  */
5
- export function createEditorOverrides(root: import('node:url').URL): Promise<import('eslint').Linter.FlatConfig[]>;
5
+ export function createEditorOverrides(root: import("node:url").URL): Promise<import("eslint").Linter.FlatConfig[]>;
6
6
  export type RuleSet = {
7
+ /**
8
+ * end of line
9
+ */
7
10
  /**
8
11
  * end of line
9
12
  */
10
13
  EOL: string;
14
+ /**
15
+ * line feed
16
+ */
11
17
  /**
12
18
  * line feed
13
19
  */
14
20
  LF: string;
21
+ /**
22
+ * trailing spaces
23
+ */
15
24
  /**
16
25
  * trailing spaces
17
26
  */
18
27
  TRAIL: string;
28
+ /**
29
+ * indent size
30
+ */
19
31
  /**
20
32
  * indent size
21
33
  */
22
34
  INDENT: string;
35
+ /**
36
+ * indent binary ops size
37
+ */
23
38
  /**
24
39
  * indent binary ops size
25
40
  */
@@ -8,13 +8,13 @@ export function getJsonFiles(): Promise<string[]>;
8
8
  * @param {import('node:url').URL} root root url
9
9
  * @returns {Promise<string[]>}
10
10
  */
11
- export function getCommonFiles(root: import('node:url').URL): Promise<string[]>;
11
+ export function getCommonFiles(root: import("node:url").URL): Promise<string[]>;
12
12
  /**
13
13
  * Get a list of globs for module files
14
14
  * @param {import('node:url').URL} root root url
15
15
  * @returns {Promise<string[]>}
16
16
  */
17
- export function getModuleFiles(root: import('node:url').URL): Promise<string[]>;
17
+ export function getModuleFiles(root: import("node:url").URL): Promise<string[]>;
18
18
  /**
19
19
  * Get a list of globs for typescript files
20
20
  * @returns {string[]}
@@ -2,4 +2,4 @@
2
2
  * @param {import('node:url').URL} root root url
3
3
  * @returns {import('@eslint/eslintrc').FlatCompat}
4
4
  */
5
- export function makeCompat(root: import('node:url').URL): import('@eslint/eslintrc').FlatCompat;
5
+ export function makeCompat(root: import("node:url").URL): import("@eslint/eslintrc").FlatCompat;
@@ -4,4 +4,4 @@
4
4
  * @param {string} [packageName] The name of the npm package
5
5
  * @returns {Promise<import('type-fest').PackageJson | null>}
6
6
  */
7
- export function getPackageJson(root: import('node:url').URL, packageName?: string | undefined): Promise<import('type-fest').PackageJson | null>;
7
+ export function getPackageJson(root: import("node:url").URL, packageName?: string | undefined): Promise<import("type-fest").PackageJson | null>;