@chanyuxi/eslint-waltz 1.3.2 → 1.4.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.
- package/dist/index.js +6 -0
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1115,6 +1115,12 @@ async function waltz(options = {}, ...orders) {
|
|
|
1115
1115
|
const isEnableReact = !!options.react;
|
|
1116
1116
|
const { scriptScope } = resolveFileScopes(options);
|
|
1117
1117
|
const configs = [];
|
|
1118
|
+
if (options.globalIgnores) {
|
|
1119
|
+
configs.push({
|
|
1120
|
+
ignores: options.globalIgnores,
|
|
1121
|
+
name: 'waltz/global-ignores',
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1118
1124
|
if (options.gitignore) {
|
|
1119
1125
|
configs.push(gitignore(options.gitignore));
|
|
1120
1126
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -88,6 +88,13 @@ interface WaltzOptions {
|
|
|
88
88
|
* @see https://github.com/antfu/eslint-config-flat-gitignore
|
|
89
89
|
*/
|
|
90
90
|
gitignore?: boolean | FlatGitignoreOptions;
|
|
91
|
+
/**
|
|
92
|
+
* Glob patterns to ignore globally.
|
|
93
|
+
*
|
|
94
|
+
* These patterns are applied by ESLint before any of Waltz's file-scoped
|
|
95
|
+
* configurations.
|
|
96
|
+
*/
|
|
97
|
+
globalIgnores?: Linter.Config['ignores'];
|
|
91
98
|
/**
|
|
92
99
|
* Enable rules for validating imports and exports. Import ordering is
|
|
93
100
|
* provided by Perfectionist when enabled, and by `imports/order` otherwise.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chanyuxi/eslint-waltz",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"packageManager": "pnpm@10.4.1",
|
|
6
6
|
"description": "A composable ESLint flat config for JavaScript, TypeScript, JSONC, imports, React, Tailwind CSS, Perfectionist, and Vitest.",
|
|
7
7
|
"author": "chanyuxi <2438149743@qq.com> (https://github.com/chanyuxi)",
|