@open-xchange/linter-presets 1.18.2 → 1.18.3
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 +4 -0
- package/dist/eslint/core/directives.js +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## `1.18.3` – 2026-Mar-13
|
|
4
|
+
|
|
5
|
+
- changed: (ESLint) rule `@eslint-community/eslint-comments/disable-enable-pair` allows to disable rules for whole file
|
|
6
|
+
|
|
3
7
|
## `1.18.2` – 2026-Mar-13
|
|
4
8
|
|
|
5
9
|
- fixed: (StyleLint) ignore patterns must point to files, not directories
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import commentsPluginConfigs from '@eslint-community/eslint-plugin-eslint-comments/configs';
|
|
2
|
-
import { SRC_GLOB, VUE_GLOB } from "../shared/env-utils.js";
|
|
2
|
+
import { SRC_GLOB, VUE_GLOB, createConfig } from "../shared/env-utils.js";
|
|
3
3
|
// functions ==================================================================
|
|
4
4
|
/**
|
|
5
5
|
* Checks inline linter directives.
|
|
@@ -12,9 +12,9 @@ import { SRC_GLOB, VUE_GLOB } from "../shared/env-utils.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export default function directives() {
|
|
14
14
|
// register rule implementations and recommended rules
|
|
15
|
-
return {
|
|
15
|
+
return createConfig('core.directives.recommended', {
|
|
16
16
|
files: [...SRC_GLOB, ...VUE_GLOB],
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
17
|
+
}, commentsPluginConfigs.recommended, {
|
|
18
|
+
'@eslint-community/eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
|
|
19
|
+
});
|
|
20
20
|
}
|