@darksheep/eslint 6.4.3 → 6.5.0

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 (62) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/package.json +12 -13
  3. package/src/configs/eslint-base.js +3 -3
  4. package/src/configs/eslint-complexity.js +2 -2
  5. package/src/configs/eslint-ignores.js +5 -5
  6. package/src/configs/eslint-recommended.js +2 -2
  7. package/src/configs/eslint-style.js +3 -3
  8. package/src/custom-logger/index.js +20 -11
  9. package/src/custom-rules/instance-of-array.js +4 -4
  10. package/src/custom-rules/loose-types.js +52 -52
  11. package/src/custom-rules/no-useless-expression.js +1 -1
  12. package/src/custom-rules/sequence-expression.js +1 -1
  13. package/src/index.js +14 -10
  14. package/src/plugins/eslint-comments.js +4 -4
  15. package/src/plugins/jsdoc.js +40 -12
  16. package/src/plugins/json.js +10 -2
  17. package/src/plugins/node.js +18 -24
  18. package/src/plugins/package-json.js +5 -9
  19. package/src/plugins/perfectionist.js +12 -3
  20. package/src/plugins/promise.js +6 -2
  21. package/src/plugins/react.js +3 -3
  22. package/src/plugins/regexp.js +96 -3
  23. package/src/plugins/sca.js +3 -3
  24. package/src/plugins/security.js +2 -2
  25. package/src/plugins/style.js +61 -208
  26. package/src/plugins/typescript.js +4 -4
  27. package/src/plugins/unicorn.js +142 -51
  28. package/src/plugins/unused-imports.js +3 -3
  29. package/src/plugins/yml.js +8 -2
  30. package/src/utilities/editorconfig.js +18 -18
  31. package/src/utilities/eslint-files.js +10 -10
  32. package/src/utilities/expand-glob.js +8 -8
  33. package/src/utilities/filesystem.js +16 -16
  34. package/src/utilities/package.js +5 -5
  35. package/types/eslint.config.d.ts +5 -1
  36. package/types/src/configs/eslint-base.d.ts +3 -3
  37. package/types/src/configs/eslint-complexity.d.ts +3 -3
  38. package/types/src/configs/eslint-ignores.d.ts +4 -4
  39. package/types/src/configs/eslint-recommended.d.ts +3 -3
  40. package/types/src/configs/eslint-style.d.ts +4 -4
  41. package/types/src/index.d.ts +3 -3
  42. package/types/src/plugins/eslint-comments.d.ts +3 -3
  43. package/types/src/plugins/jsdoc.d.ts +4 -4
  44. package/types/src/plugins/json.d.ts +3 -3
  45. package/types/src/plugins/node.d.ts +4 -4
  46. package/types/src/plugins/package-json.d.ts +3 -3
  47. package/types/src/plugins/perfectionist.d.ts +4 -4
  48. package/types/src/plugins/promise.d.ts +3 -3
  49. package/types/src/plugins/react.d.ts +4 -4
  50. package/types/src/plugins/regexp.d.ts +3 -3
  51. package/types/src/plugins/sca.d.ts +4 -4
  52. package/types/src/plugins/security.d.ts +3 -3
  53. package/types/src/plugins/style.d.ts +3 -3
  54. package/types/src/plugins/typescript.d.ts +4 -4
  55. package/types/src/plugins/unicorn.d.ts +4 -3
  56. package/types/src/plugins/unused-imports.d.ts +4 -4
  57. package/types/src/plugins/yml.d.ts +3 -3
  58. package/types/src/utilities/editorconfig.d.ts +10 -10
  59. package/types/src/utilities/eslint-files.d.ts +7 -7
  60. package/types/src/utilities/expand-glob.d.ts +1 -1
  61. package/types/src/utilities/filesystem.d.ts +16 -16
  62. package/types/src/utilities/package.d.ts +3 -3
@@ -1,34 +1,34 @@
1
1
  /**
2
- * @param {string} path The absolute path to the file to check
2
+ * @param {string} path - The absolute path to the file to check.
3
3
  * @returns {Promise<boolean>}
4
4
  */
5
5
  export function exists(path: string): Promise<boolean>;
6
6
  /**
7
- * Does {filePath} exist in {projectPath}
8
- * @param {string} [filePath] The path of the file to check
9
- * @param {string} [projectPath] The path to the project root
7
+ * Does {filePath} exist in {projectPath}.
8
+ * @param {string} [filePath] - The path of the file to check.
9
+ * @param {string} [projectPath] - The path to the project root.
10
10
  * @returns {boolean}
11
11
  */
12
12
  export function descendsFrom(filePath?: string | undefined, projectPath?: string | undefined): boolean;
13
13
  /**
14
- * Create a list of parent directories from {filepath} to {stopDirectory}
15
- * @param {string} filepath The file to start from
16
- * @param {string} [stopDirectory] The directory to stop at
14
+ * Create a list of parent directories from {filepath} to {stopDirectory}.
15
+ * @param {string} filepath - The file to start from.
16
+ * @param {string} [stopDirectory] - The directory to stop at.
17
17
  * @returns {string[]}
18
18
  */
19
19
  export function listParents(filepath: string, stopDirectory?: string | undefined): string[];
20
20
  /**
21
- * Find the closest {filename} starting from {rootFilePath}
22
- * @param {string[]} paths The paths to search in
23
- * @param {string} filename The filename to find
24
- * @returns {Promise<string|null>} Returns absolute path to the closest {filename} if found
21
+ * Find the closest {filename} starting from {rootFilePath}.
22
+ * @param {string[]} paths - The paths to search in.
23
+ * @param {string} filename - The filename to find.
24
+ * @returns {Promise<string|null>} Returns absolute path to the closest {filename} if found.
25
25
  */
26
26
  export function findInPaths(paths: string[], filename: string): Promise<string | null>;
27
27
  /**
28
- * Find the closest {filename} starting from {rootFilePath}
29
- * @param {string} rootFilePath The file to start the search from
30
- * @param {string} filename The filename to find
31
- * @param {string} [stopDirectory] The directory to stop searching at
32
- * @returns {Promise<string|null>} Returns absolute path to the closest {filename} if found
28
+ * Find the closest {filename} starting from {rootFilePath}.
29
+ * @param {string} rootFilePath - The file to start the search from.
30
+ * @param {string} filename - The filename to find.
31
+ * @param {string} [stopDirectory] - The directory to stop searching at.
32
+ * @returns {Promise<string|null>} Returns absolute path to the closest {filename} if found.
33
33
  */
34
34
  export function findUp(rootFilePath: string, filename: string, stopDirectory?: string | undefined): Promise<string | null>;
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Get the path of the eslint package json
3
- * @param {import('node:url').URL} rootUrl The root url of the module
4
- * @param {string} [packageName] The name of the npm package
2
+ * Get the path of the eslint package json.
3
+ * @param {import('node:url').URL} rootUrl - The root url of the module.
4
+ * @param {string} [packageName] - The name of the npm package.
5
5
  * @returns {Promise<import('type-fest').PackageJson | null>}
6
6
  */
7
7
  export function getPackageJson(rootUrl: import("node:url").URL, packageName?: string | undefined): Promise<import("type-fest").PackageJson | null>;