@anolilab/lint-staged-config 11.0.0 → 11.0.1

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,15 @@
1
+ ## @anolilab/lint-staged-config [11.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/lint-staged-config@11.0.0...@anolilab/lint-staged-config@11.0.1) (2026-05-04)
2
+
3
+ ### Bug Fixes
4
+
5
+ * updated deps ([d98d102](https://github.com/anolilab/javascript-style-guide/commit/d98d102727966141f8a49adecf58d649159fd1a2))
6
+
7
+
8
+ ### Dependencies
9
+
10
+ * **@anolilab/eslint-config:** upgraded to 27.0.2
11
+ * **@anolilab/prettier-config:** upgraded to 10.0.1
12
+
1
13
  ## @anolilab/lint-staged-config [11.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/lint-staged-config@10.0.0...@anolilab/lint-staged-config@11.0.0) (2026-04-07)
2
14
 
3
15
  ### ⚠ BREAKING CHANGES
package/LICENSE.md CHANGED
@@ -27,134 +27,34 @@ SOFTWARE.
27
27
 
28
28
  # Licenses of bundled types
29
29
  The published @anolilab/lint-staged-config artifact additionally contains code with the following licenses:
30
- (MIT OR CC0-1.0)
30
+ MIT
31
31
 
32
32
  # Bundled types:
33
- ## type-fest
34
- License: (MIT OR CC0-1.0)
35
- By: Sindre Sorhus
36
- Repository: sindresorhus/type-fest
37
-
38
- > Creative Commons Legal Code
39
- >
40
- > CC0 1.0 Universal
41
- >
42
- > CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
43
- > LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
44
- > ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
45
- > INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
46
- > REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
47
- > PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
48
- > THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
49
- > HEREUNDER.
50
- >
51
- > Statement of Purpose
52
- >
53
- > The laws of most jurisdictions throughout the world automatically confer
54
- > exclusive Copyright and Related Rights (defined below) upon the creator
55
- > and subsequent owner(s) (each and all, an "owner") of an original work of
56
- > authorship and/or a database (each, a "Work").
57
- >
58
- > Certain owners wish to permanently relinquish those rights to a Work for
59
- > the purpose of contributing to a commons of creative, cultural and
60
- > scientific works ("Commons") that the public can reliably and without fear
61
- > of later claims of infringement build upon, modify, incorporate in other
62
- > works, reuse and redistribute as freely as possible in any form whatsoever
63
- > and for any purposes, including without limitation commercial purposes.
64
- > These owners may contribute to the Commons to promote the ideal of a free
65
- > culture and the further production of creative, cultural and scientific
66
- > works, or to gain reputation or greater distribution for their Work in
67
- > part through the use and efforts of others.
68
- >
69
- > For these and/or other purposes and motivations, and without any
70
- > expectation of additional consideration or compensation, the person
71
- > associating CC0 with a Work (the "Affirmer"), to the extent that he or she
72
- > is an owner of Copyright and Related Rights in the Work, voluntarily
73
- > elects to apply CC0 to the Work and publicly distribute the Work under its
74
- > terms, with knowledge of his or her Copyright and Related Rights in the
75
- > Work and the meaning and intended legal effect of CC0 on those rights.
76
- >
77
- > 1. Copyright and Related Rights. A Work made available under CC0 may be
78
- > protected by copyright and related or neighboring rights ("Copyright and
79
- > Related Rights"). Copyright and Related Rights include, but are not
80
- > limited to, the following:
81
- >
82
- > i. the right to reproduce, adapt, distribute, perform, display,
83
- > communicate, and translate a Work;
84
- > ii. moral rights retained by the original author(s) and/or performer(s);
85
- > iii. publicity and privacy rights pertaining to a person's image or
86
- > likeness depicted in a Work;
87
- > iv. rights protecting against unfair competition in regards to a Work,
88
- > subject to the limitations in paragraph 4(a), below;
89
- > v. rights protecting the extraction, dissemination, use and reuse of data
90
- > in a Work;
91
- > vi. database rights (such as those arising under Directive 96/9/EC of the
92
- > European Parliament and of the Council of 11 March 1996 on the legal
93
- > protection of databases, and under any national implementation
94
- > thereof, including any amended or successor version of such
95
- > directive); and
96
- > vii. other similar, equivalent or corresponding rights throughout the
97
- > world based on applicable law or treaty, and any national
98
- > implementations thereof.
99
- >
100
- > 2. Waiver. To the greatest extent permitted by, but not in contravention
101
- > of, applicable law, Affirmer hereby overtly, fully, permanently,
102
- > irrevocably and unconditionally waives, abandons, and surrenders all of
103
- > Affirmer's Copyright and Related Rights and associated claims and causes
104
- > of action, whether now known or unknown (including existing as well as
105
- > future claims and causes of action), in the Work (i) in all territories
106
- > worldwide, (ii) for the maximum duration provided by applicable law or
107
- > treaty (including future time extensions), (iii) in any current or future
108
- > medium and for any number of copies, and (iv) for any purpose whatsoever,
109
- > including without limitation commercial, advertising or promotional
110
- > purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
111
- > member of the public at large and to the detriment of Affirmer's heirs and
112
- > successors, fully intending that such Waiver shall not be subject to
113
- > revocation, rescission, cancellation, termination, or any other legal or
114
- > equitable action to disrupt the quiet enjoyment of the Work by the public
115
- > as contemplated by Affirmer's express Statement of Purpose.
116
- >
117
- > 3. Public License Fallback. Should any part of the Waiver for any reason
118
- > be judged legally invalid or ineffective under applicable law, then the
119
- > Waiver shall be preserved to the maximum extent permitted taking into
120
- > account Affirmer's express Statement of Purpose. In addition, to the
121
- > extent the Waiver is so judged Affirmer hereby grants to each affected
122
- > person a royalty-free, non transferable, non sublicensable, non exclusive,
123
- > irrevocable and unconditional license to exercise Affirmer's Copyright and
124
- > Related Rights in the Work (i) in all territories worldwide, (ii) for the
125
- > maximum duration provided by applicable law or treaty (including future
126
- > time extensions), (iii) in any current or future medium and for any number
127
- > of copies, and (iv) for any purpose whatsoever, including without
128
- > limitation commercial, advertising or promotional purposes (the
129
- > "License"). The License shall be deemed effective as of the date CC0 was
130
- > applied by Affirmer to the Work. Should any part of the License for any
131
- > reason be judged legally invalid or ineffective under applicable law, such
132
- > partial invalidity or ineffectiveness shall not invalidate the remainder
133
- > of the License, and in such case Affirmer hereby affirms that he or she
134
- > will not (i) exercise any of his or her remaining Copyright and Related
135
- > Rights in the Work or (ii) assert any associated claims and causes of
136
- > action with respect to the Work, in either case contrary to Affirmer's
137
- > express Statement of Purpose.
138
- >
139
- > 4. Limitations and Disclaimers.
140
- >
141
- > a. No trademark or patent rights held by Affirmer are waived, abandoned,
142
- > surrendered, licensed or otherwise affected by this document.
143
- > b. Affirmer offers the Work as-is and makes no representations or
144
- > warranties of any kind concerning the Work, express, implied,
145
- > statutory or otherwise, including without limitation warranties of
146
- > title, merchantability, fitness for a particular purpose, non
147
- > infringement, or the absence of latent or other defects, accuracy, or
148
- > the present or absence of errors, whether or not discoverable, all to
149
- > the greatest extent permissible under applicable law.
150
- > c. Affirmer disclaims responsibility for clearing rights of other persons
151
- > that may apply to the Work or any use thereof, including without
152
- > limitation any person's Copyright and Related Rights in the Work.
153
- > Further, Affirmer disclaims responsibility for obtaining any necessary
154
- > consents, permissions or other rights required for any use of the
155
- > Work.
156
- > d. Affirmer understands and acknowledges that Creative Commons is not a
157
- > party to this document and has no duty or obligation with respect to
158
- > this CC0 or use of the Work.
33
+ ## lint-staged
34
+ License: MIT
35
+ By: Andrey Okonetchnikov, Iiro Jäppinen <iiro@jappinen.fi> (https://iiro.fi)
36
+ Repository: git+https://github.com/lint-staged/lint-staged.git
37
+
38
+ > The MIT License (MIT)
39
+ >
40
+ > Copyright (c) 2016 Andrey Okonetchnikov
41
+ >
42
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
43
+ > of this software and associated documentation files (the "Software"), to deal
44
+ > in the Software without restriction, including without limitation the rights
45
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
46
+ > copies of the Software, and to permit persons to whom the Software is
47
+ > furnished to do so, subject to the following conditions:
48
+ >
49
+ > The above copyright notice and this permission notice shall be included in all
50
+ > copies or substantial portions of the Software.
51
+ >
52
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
54
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
55
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
56
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
57
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
58
+ > SOFTWARE.
159
59
 
160
60
  <!-- /TYPE_DEPENDENCIES -->
package/dist/index.d.ts CHANGED
@@ -1,34 +1,39 @@
1
- import { Configuration } from 'lint-staged';
2
-
1
+ import 'type-fest';
2
+ type SyncGenerateTask = (stagedFileNames: readonly string[]) => string | string[];
3
+ type AsyncGenerateTask = (stagedFileNames: readonly string[]) => Promise<string | string[]>;
4
+ type GenerateTask = SyncGenerateTask | AsyncGenerateTask;
5
+ type TaskFunction = {
6
+ title: string;
7
+ task: (stagedFileNames: readonly string[]) => void | Promise<void>;
8
+ };
9
+ type Configuration = Record<string, string | TaskFunction | GenerateTask | (string | GenerateTask)[]> | GenerateTask;
3
10
  interface EslintConfig {
4
- cache?: boolean;
5
- config?: string;
6
- extensions?: string[];
7
- "fix-type"?: string[];
8
- "max-warnings"?: number | string | false;
9
- rules?: string[];
11
+ cache?: boolean;
12
+ config?: string;
13
+ extensions?: string[];
14
+ "fix-type"?: string[];
15
+ "max-warnings"?: number | string | false;
16
+ rules?: string[];
10
17
  }
11
-
12
18
  interface StylesheetsConfig {
13
- extensions?: (typeof stylesheetsExtensions)[number][];
19
+ extensions?: (typeof stylesheetsExtensions)[number][];
14
20
  }
15
21
  interface TypescriptConfig {
16
- exclude?: string[];
17
- extensions?: (typeof typescriptExtensions)[number][];
22
+ exclude?: string[];
23
+ extensions?: (typeof typescriptExtensions)[number][];
18
24
  }
19
25
  declare const eslintExtensions: readonly ["cjs", "js", "mjs", "cts", "ts", "mts", "yml", "yaml", "jsx", "tsx", "mdx", "toml", "json", "json5", "jsonc"];
20
26
  declare const typescriptExtensions: readonly ["cts", "ts", "mts", "tsx", "ctsx"];
21
27
  declare const stylesheetsExtensions: readonly ["css", "scss", "sass", "less", "styl", "stylus", "pcss", "postcss", "sss"];
22
28
  declare const defineConfig: (options?: {
23
- cwd?: string;
24
- debug?: boolean;
25
- eslint?: EslintConfig | false;
26
- json?: false;
27
- markdown?: false;
28
- secretlint?: false;
29
- stylesheets?: StylesheetsConfig | false;
30
- tests?: false;
31
- typescript?: TypescriptConfig | false;
29
+ cwd?: string;
30
+ debug?: boolean;
31
+ eslint?: EslintConfig | false;
32
+ json?: false;
33
+ markdown?: false;
34
+ secretlint?: false;
35
+ stylesheets?: StylesheetsConfig | false;
36
+ tests?: false;
37
+ typescript?: TypescriptConfig | false;
32
38
  }) => Configuration;
33
-
34
39
  export { defineConfig, eslintExtensions, stylesheetsExtensions, typescriptExtensions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/lint-staged-config",
3
- "version": "11.0.0",
3
+ "version": "11.0.1",
4
4
  "description": "Shareable Lint-Staged Config for any project.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -63,15 +63,15 @@
63
63
  "@visulima/fs": "4.1.0",
64
64
  "@visulima/package": "^4.1.7",
65
65
  "shell-quote": "^1.8.3",
66
- "type-fest": "5.5.0"
66
+ "type-fest": "5.6.0"
67
67
  },
68
68
  "peerDependencies": {
69
- "eslint": "10.2.0",
69
+ "eslint": "10.3.0",
70
70
  "husky": "^9.x",
71
71
  "jest": "^29.0.0",
72
72
  "lint-staged": "^16.x",
73
- "nano-staged": "^0.9.0",
74
- "prettier": "3.8.1",
73
+ "nano-staged": "1.0.2",
74
+ "prettier": "3.8.3",
75
75
  "secretlint": "^11.0.0",
76
76
  "stylelint": "^16.x || ^17.x",
77
77
  "vitest": "^3.x || ^4.x"
@@ -102,7 +102,6 @@
102
102
  "optional": true
103
103
  }
104
104
  },
105
- "optionalDependencies": {},
106
105
  "engines": {
107
106
  "node": ">=22.12.0 <=25.*"
108
107
  },