@anolilab/lint-staged-config 3.0.30 → 3.0.31

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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## @anolilab/lint-staged-config [3.0.31](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/lint-staged-config@3.0.30...@anolilab/lint-staged-config@3.0.31) (2025-09-11)
2
+
3
+ ### Bug Fixes
4
+
5
+ * update lint-staged-config to exclude additional unused dependency ([24e7611](https://github.com/anolilab/javascript-style-guide/commit/24e7611181112f5b383ceb98d315da7e99485bc4))
6
+ * update lint-staged-config with new dependencies and ESLint rules ([37c51b6](https://github.com/anolilab/javascript-style-guide/commit/37c51b63c58858e96be3215d007e2169d206de30))
7
+
8
+ ### Miscellaneous Chores
9
+
10
+ * update ESLint configuration to disable specific rules ([e9fbe12](https://github.com/anolilab/javascript-style-guide/commit/e9fbe12c553b46cc9cb1068e57ae42c35f04a7cd))
11
+
12
+
13
+ ### Dependencies
14
+
15
+ * **@anolilab/eslint-config:** upgraded to 16.3.0
16
+
1
17
  ## @anolilab/lint-staged-config [3.0.30](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/lint-staged-config@3.0.29...@anolilab/lint-staged-config@3.0.30) (2025-09-11)
2
18
 
3
19
  ### Bug Fixes
package/dist/index.d.cts CHANGED
@@ -1,5 +1,14 @@
1
- import type { Configuration } from "lint-staged";
2
- import type { EslintConfig } from "./types.d.cts";
1
+ import { Configuration } from 'lint-staged';
2
+
3
+ interface EslintConfig {
4
+ cache?: boolean;
5
+ config?: string;
6
+ extensions?: string[];
7
+ "fix-type"?: string[];
8
+ "max-warnings"?: number | string | false;
9
+ rules?: string[];
10
+ }
11
+
3
12
  interface StylesheetsConfig {
4
13
  extensions?: (typeof stylesheetsExtensions)[number][];
5
14
  }
@@ -7,10 +16,10 @@ interface TypescriptConfig {
7
16
  exclude?: string[];
8
17
  extensions?: (typeof typescriptExtensions)[number][];
9
18
  }
10
- export declare const eslintExtensions: readonly ["cjs", "js", "mjs", "cts", "ts", "mts", "yml", "yaml", "jsx", "tsx", "mdx", "toml", "json", "json5", "jsonc"];
11
- export declare const typescriptExtensions: readonly ["cts", "ts", "mts", "tsx", "ctsx"];
12
- export declare const stylesheetsExtensions: readonly ["css", "scss", "sass", "less", "styl", "stylus", "pcss", "postcss", "sss"];
13
- export declare const defineConfig: (options?: {
19
+ declare const eslintExtensions: readonly ["cjs", "js", "mjs", "cts", "ts", "mts", "yml", "yaml", "jsx", "tsx", "mdx", "toml", "json", "json5", "jsonc"];
20
+ declare const typescriptExtensions: readonly ["cts", "ts", "mts", "tsx", "ctsx"];
21
+ declare const stylesheetsExtensions: readonly ["css", "scss", "sass", "less", "styl", "stylus", "pcss", "postcss", "sss"];
22
+ declare const defineConfig: (options?: {
14
23
  cwd?: string;
15
24
  debug?: boolean;
16
25
  eslint?: EslintConfig | false;
@@ -21,4 +30,5 @@ export declare const defineConfig: (options?: {
21
30
  tests?: false;
22
31
  typescript?: TypescriptConfig | false;
23
32
  }) => Configuration;
24
- export {};
33
+
34
+ export { defineConfig, eslintExtensions, stylesheetsExtensions, typescriptExtensions };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,14 @@
1
- import type { Configuration } from "lint-staged";
2
- import type { EslintConfig } from "./types.d.mts";
1
+ import { Configuration } from 'lint-staged';
2
+
3
+ interface EslintConfig {
4
+ cache?: boolean;
5
+ config?: string;
6
+ extensions?: string[];
7
+ "fix-type"?: string[];
8
+ "max-warnings"?: number | string | false;
9
+ rules?: string[];
10
+ }
11
+
3
12
  interface StylesheetsConfig {
4
13
  extensions?: (typeof stylesheetsExtensions)[number][];
5
14
  }
@@ -7,10 +16,10 @@ interface TypescriptConfig {
7
16
  exclude?: string[];
8
17
  extensions?: (typeof typescriptExtensions)[number][];
9
18
  }
10
- export declare const eslintExtensions: readonly ["cjs", "js", "mjs", "cts", "ts", "mts", "yml", "yaml", "jsx", "tsx", "mdx", "toml", "json", "json5", "jsonc"];
11
- export declare const typescriptExtensions: readonly ["cts", "ts", "mts", "tsx", "ctsx"];
12
- export declare const stylesheetsExtensions: readonly ["css", "scss", "sass", "less", "styl", "stylus", "pcss", "postcss", "sss"];
13
- export declare const defineConfig: (options?: {
19
+ declare const eslintExtensions: readonly ["cjs", "js", "mjs", "cts", "ts", "mts", "yml", "yaml", "jsx", "tsx", "mdx", "toml", "json", "json5", "jsonc"];
20
+ declare const typescriptExtensions: readonly ["cts", "ts", "mts", "tsx", "ctsx"];
21
+ declare const stylesheetsExtensions: readonly ["css", "scss", "sass", "less", "styl", "stylus", "pcss", "postcss", "sss"];
22
+ declare const defineConfig: (options?: {
14
23
  cwd?: string;
15
24
  debug?: boolean;
16
25
  eslint?: EslintConfig | false;
@@ -21,4 +30,5 @@ export declare const defineConfig: (options?: {
21
30
  tests?: false;
22
31
  typescript?: TypescriptConfig | false;
23
32
  }) => Configuration;
24
- export {};
33
+
34
+ export { defineConfig, eslintExtensions, stylesheetsExtensions, typescriptExtensions };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,14 @@
1
- import type { Configuration } from "lint-staged";
2
- import type { EslintConfig } from "./types.d.ts";
1
+ import { Configuration } from 'lint-staged';
2
+
3
+ interface EslintConfig {
4
+ cache?: boolean;
5
+ config?: string;
6
+ extensions?: string[];
7
+ "fix-type"?: string[];
8
+ "max-warnings"?: number | string | false;
9
+ rules?: string[];
10
+ }
11
+
3
12
  interface StylesheetsConfig {
4
13
  extensions?: (typeof stylesheetsExtensions)[number][];
5
14
  }
@@ -7,10 +16,10 @@ interface TypescriptConfig {
7
16
  exclude?: string[];
8
17
  extensions?: (typeof typescriptExtensions)[number][];
9
18
  }
10
- export declare const eslintExtensions: readonly ["cjs", "js", "mjs", "cts", "ts", "mts", "yml", "yaml", "jsx", "tsx", "mdx", "toml", "json", "json5", "jsonc"];
11
- export declare const typescriptExtensions: readonly ["cts", "ts", "mts", "tsx", "ctsx"];
12
- export declare const stylesheetsExtensions: readonly ["css", "scss", "sass", "less", "styl", "stylus", "pcss", "postcss", "sss"];
13
- export declare const defineConfig: (options?: {
19
+ declare const eslintExtensions: readonly ["cjs", "js", "mjs", "cts", "ts", "mts", "yml", "yaml", "jsx", "tsx", "mdx", "toml", "json", "json5", "jsonc"];
20
+ declare const typescriptExtensions: readonly ["cts", "ts", "mts", "tsx", "ctsx"];
21
+ declare const stylesheetsExtensions: readonly ["css", "scss", "sass", "less", "styl", "stylus", "pcss", "postcss", "sss"];
22
+ declare const defineConfig: (options?: {
14
23
  cwd?: string;
15
24
  debug?: boolean;
16
25
  eslint?: EslintConfig | false;
@@ -21,4 +30,5 @@ export declare const defineConfig: (options?: {
21
30
  tests?: false;
22
31
  typescript?: TypescriptConfig | false;
23
32
  }) => Configuration;
24
- export {};
33
+
34
+ export { defineConfig, eslintExtensions, stylesheetsExtensions, typescriptExtensions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/lint-staged-config",
3
- "version": "3.0.30",
3
+ "version": "3.0.31",
4
4
  "description": "Shareable Lint-Staged Config for any project.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -76,7 +76,8 @@
76
76
  "dependencies": {
77
77
  "@visulima/fs": "3.1.6",
78
78
  "@visulima/package": "^3.5.9",
79
- "shell-quote": "^1.8.3"
79
+ "shell-quote": "^1.8.3",
80
+ "type-fest": "^4.41.0"
80
81
  },
81
82
  "peerDependencies": {
82
83
  "eslint": "^9.5",
package/dist/bin.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import type { NormalizedPackageJson, PackageManager } from "@visulima/package";
2
- import type { EslintConfig } from "../types.d.cts";
3
- declare const createEslintCommands: (packageManager: PackageManager, packageJson: NormalizedPackageJson, eslintConfig: EslintConfig, filenames: string[]) => Promise<string[]>;
4
- export = createEslintCommands;
@@ -1,4 +0,0 @@
1
- import type { NormalizedPackageJson, PackageManager } from "@visulima/package";
2
- import type { EslintConfig } from "../types.d.mts";
3
- declare const createEslintCommands: (packageManager: PackageManager, packageJson: NormalizedPackageJson, eslintConfig: EslintConfig, filenames: string[]) => Promise<string[]>;
4
- export default createEslintCommands;
@@ -1,4 +0,0 @@
1
- import type { NormalizedPackageJson, PackageManager } from "@visulima/package";
2
- import type { EslintConfig } from "../types.d.ts";
3
- declare const createEslintCommands: (packageManager: PackageManager, packageJson: NormalizedPackageJson, eslintConfig: EslintConfig, filenames: string[]) => Promise<string[]>;
4
- export = createEslintCommands;
@@ -1,2 +0,0 @@
1
- declare const groupFilePathsByDirectoryName: (filePaths: string[]) => Record<string, string[]>;
2
- export = groupFilePathsByDirectoryName;
@@ -1,2 +0,0 @@
1
- declare const groupFilePathsByDirectoryName: (filePaths: string[]) => Record<string, string[]>;
2
- export default groupFilePathsByDirectoryName;
@@ -1,2 +0,0 @@
1
- declare const groupFilePathsByDirectoryName: (filePaths: string[]) => Record<string, string[]>;
2
- export = groupFilePathsByDirectoryName;
@@ -1,3 +0,0 @@
1
- import { ESLint } from "eslint";
2
- declare const removeIgnoredFiles: (filenames: string[], eslint?: ESLint) => Promise<string[]>;
3
- export = removeIgnoredFiles;
@@ -1,3 +0,0 @@
1
- import { ESLint } from "eslint";
2
- declare const removeIgnoredFiles: (filenames: string[], eslint?: ESLint) => Promise<string[]>;
3
- export default removeIgnoredFiles;
@@ -1,3 +0,0 @@
1
- import { ESLint } from "eslint";
2
- declare const removeIgnoredFiles: (filenames: string[], eslint?: ESLint) => Promise<string[]>;
3
- export = removeIgnoredFiles;
package/dist/types.d.cts DELETED
@@ -1,11 +0,0 @@
1
- import type { Join } from ".//index.d.d.cts";
2
- export type AbsolutePath = `/${string}`;
3
- export type ConfigPath<A extends AbsolutePath, N extends string> = Join<[A, N], "/">;
4
- export interface EslintConfig {
5
- cache?: boolean;
6
- config?: string;
7
- extensions?: string[];
8
- "fix-type"?: string[];
9
- "max-warnings"?: number | string | false;
10
- rules?: string[];
11
- }
package/dist/types.d.mts DELETED
@@ -1,11 +0,0 @@
1
- import type { Join } from ".//index.d.d.mts";
2
- export type AbsolutePath = `/${string}`;
3
- export type ConfigPath<A extends AbsolutePath, N extends string> = Join<[A, N], "/">;
4
- export interface EslintConfig {
5
- cache?: boolean;
6
- config?: string;
7
- extensions?: string[];
8
- "fix-type"?: string[];
9
- "max-warnings"?: number | string | false;
10
- rules?: string[];
11
- }
package/dist/types.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import type { Join } from ".//index.d.d.ts";
2
- export type AbsolutePath = `/${string}`;
3
- export type ConfigPath<A extends AbsolutePath, N extends string> = Join<[A, N], "/">;
4
- export interface EslintConfig {
5
- cache?: boolean;
6
- config?: string;
7
- extensions?: string[];
8
- "fix-type"?: string[];
9
- "max-warnings"?: number | string | false;
10
- rules?: string[];
11
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * Concatenate and escape a list of filenames that can be passed as args to prettier cli.
3
- *
4
- * Prettier and Stylelint have an issue with special characters in filenames,
5
- * such as the ones uses for Next.js dynamic routes (ie: [id].tsx...)
6
- * @link https://github.com/okonet/lint-staged/issues/676
7
- *
8
- * The @ type shouldn't be quoted, but it is.
9
- * If a folder name contains a @, it will be escaped as \@ (example test/@types), which is wrong.
10
- * @param filenames
11
- * @returns Return concatenated and escaped filenames
12
- */
13
- declare const concatFiles: (filenames: string[]) => string;
14
- export = concatFiles;
@@ -1,14 +0,0 @@
1
- /**
2
- * Concatenate and escape a list of filenames that can be passed as args to prettier cli.
3
- *
4
- * Prettier and Stylelint have an issue with special characters in filenames,
5
- * such as the ones uses for Next.js dynamic routes (ie: [id].tsx...)
6
- * @link https://github.com/okonet/lint-staged/issues/676
7
- *
8
- * The @ type shouldn't be quoted, but it is.
9
- * If a folder name contains a @, it will be escaped as \@ (example test/@types), which is wrong.
10
- * @param filenames
11
- * @returns Return concatenated and escaped filenames
12
- */
13
- declare const concatFiles: (filenames: string[]) => string;
14
- export default concatFiles;
@@ -1,14 +0,0 @@
1
- /**
2
- * Concatenate and escape a list of filenames that can be passed as args to prettier cli.
3
- *
4
- * Prettier and Stylelint have an issue with special characters in filenames,
5
- * such as the ones uses for Next.js dynamic routes (ie: [id].tsx...)
6
- * @link https://github.com/okonet/lint-staged/issues/676
7
- *
8
- * The @ type shouldn't be quoted, but it is.
9
- * If a folder name contains a @, it will be escaped as \@ (example test/@types), which is wrong.
10
- * @param filenames
11
- * @returns Return concatenated and escaped filenames
12
- */
13
- declare const concatFiles: (filenames: string[]) => string;
14
- export = concatFiles;
@@ -1,3 +0,0 @@
1
- import type { AbsolutePath, ConfigPath } from "../types.d.cts";
2
- declare const getNearestConfigPath: <N extends string = string, A extends AbsolutePath = AbsolutePath>(fileName: N, cwd?: A) => ConfigPath<A, N>;
3
- export = getNearestConfigPath;
@@ -1,3 +0,0 @@
1
- import type { AbsolutePath, ConfigPath } from "../types.d.mts";
2
- declare const getNearestConfigPath: <N extends string = string, A extends AbsolutePath = AbsolutePath>(fileName: N, cwd?: A) => ConfigPath<A, N>;
3
- export default getNearestConfigPath;
@@ -1,3 +0,0 @@
1
- import type { AbsolutePath, ConfigPath } from "../types.d.ts";
2
- declare const getNearestConfigPath: <N extends string = string, A extends AbsolutePath = AbsolutePath>(fileName: N, cwd?: A) => ConfigPath<A, N>;
3
- export = getNearestConfigPath;
@@ -1,2 +0,0 @@
1
- declare const isWindows: boolean;
2
- export = isWindows;
@@ -1,2 +0,0 @@
1
- declare const isWindows: boolean;
2
- export default isWindows;
@@ -1,2 +0,0 @@
1
- declare const isWindows: boolean;
2
- export = isWindows;