@open-xchange/linter-presets 1.18.0 → 1.18.2
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,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## `1.18.2` – 2026-Mar-13
|
|
4
|
+
|
|
5
|
+
- fixed: (StyleLint) ignore patterns must point to files, not directories
|
|
6
|
+
|
|
7
|
+
## `1.18.1` – 2026-Mar-12
|
|
8
|
+
|
|
9
|
+
- fixed: (ESLint) added missing exports of some types
|
|
10
|
+
|
|
3
11
|
## `1.18.0` – 2026-Mar-12
|
|
4
12
|
|
|
5
13
|
- changed: (ESLint) default indentation for all file types is now 2
|
package/dist/eslint/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import eslint from "./env/eslint.js";
|
|
|
12
12
|
import project from "./env/project.js";
|
|
13
13
|
import tsconfig from "./env/tsconfig.js";
|
|
14
14
|
import decorators from "./env/decorators.js";
|
|
15
|
+
export type { ConfigObject, LanguageOptions, PackagesOptions, RulesConfig, StylisticOptions, VueOptions };
|
|
15
16
|
/**
|
|
16
17
|
* Configuration options for linting the entire project with ESLint.
|
|
17
18
|
*/
|
|
@@ -26,7 +26,8 @@ export interface ProjectOptions {
|
|
|
26
26
|
*/
|
|
27
27
|
root: string;
|
|
28
28
|
/**
|
|
29
|
-
* Glob patterns
|
|
29
|
+
* Glob patterns for all files to be ignored by StyleLint (the patterns must
|
|
30
|
+
* match files, plain directory names are not supported).
|
|
30
31
|
*/
|
|
31
32
|
ignores?: string[];
|
|
32
33
|
/**
|
package/dist/stylelint/index.js
CHANGED
|
@@ -12,11 +12,11 @@ import { PathResolver } from "../utils/resolver.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export function defineConfig(options) {
|
|
14
14
|
const ignoreFiles = [
|
|
15
|
-
'node_modules',
|
|
16
|
-
'dist',
|
|
17
|
-
'coverage', // Vitest
|
|
18
|
-
'.nuxt', // NuxtJS
|
|
19
|
-
'.output', // NuxtJS
|
|
15
|
+
'node_modules/**/*',
|
|
16
|
+
'dist/**/*',
|
|
17
|
+
'coverage/**/*', // Vitest
|
|
18
|
+
'.nuxt/**/*', // NuxtJS
|
|
19
|
+
'.output/**/*', // NuxtJS
|
|
20
20
|
...(options.ignores ?? []),
|
|
21
21
|
];
|
|
22
22
|
// resolve stylistic configuration options
|
package/docs/stylelint/README.md
CHANGED
|
@@ -27,7 +27,7 @@ function defineConfig(options?: ProjectOptions): Config
|
|
|
27
27
|
|
|
28
28
|
| Name | Type | Default | Description |
|
|
29
29
|
| - | - | - | - |
|
|
30
|
-
| `ignores` | `string[]` | `[]` | Glob patterns with all files
|
|
30
|
+
| `ignores` | `string[]` | `[]` | Glob patterns with all files to be ignored by StyleLint. |
|
|
31
31
|
| `license` | `string` | `''` | Full path to the template file containing the license header to be used in all source files. |
|
|
32
32
|
| `stylistic` | `StylisticOptions` | | Configuration options for code style. |
|
|
33
33
|
| `stylistic.indent` | `number` | `2` | Default indentation size (number of space characters). |
|
|
@@ -38,10 +38,10 @@ function defineConfig(options?: ProjectOptions): Config
|
|
|
38
38
|
|
|
39
39
|
This package defines ignore globs for the following files and directories:
|
|
40
40
|
|
|
41
|
-
- `node_modules
|
|
42
|
-
- `dist
|
|
43
|
-
- `coverage
|
|
44
|
-
- `.nuxt
|
|
41
|
+
- `node_modules/**/*`
|
|
42
|
+
- `dist/**/*` (standard build output directory)
|
|
43
|
+
- `coverage/**/*` (Vitest coverage results)
|
|
44
|
+
- `.nuxt/**/*` and `.output/**/*` (NuxtJS output directories)
|
|
45
45
|
|
|
46
46
|
#### `defineConfig` Example
|
|
47
47
|
|