@open-xchange/linter-presets 0.1.11 → 0.1.13
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 +10 -0
- package/dist/eslint/env/node.d.ts +18 -1
- package/dist/eslint/env/node.js +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.13] - 2024-07-31
|
|
4
|
+
|
|
5
|
+
- change: disable rule `no-console` in environment `env.node`
|
|
6
|
+
- chore: add renovate bot
|
|
7
|
+
- chore: bump dependencies
|
|
8
|
+
|
|
9
|
+
## [0.1.12] - 2024-07-30
|
|
10
|
+
|
|
11
|
+
- chore: bump `eslint-plugin-jsdoc` dependency
|
|
12
|
+
|
|
3
13
|
## [0.1.11] - 2024-07-30
|
|
4
14
|
|
|
5
15
|
- chore: bump dependencies
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
+
import type ts from "typescript";
|
|
2
3
|
import type { LanguageOptions, EnvRestrictedOptions } from "../shared/env-utils.js";
|
|
4
|
+
export type EnvNodeConvertPathPattern = [pattern: string, replacement: string];
|
|
5
|
+
export type EnvNodeConvertPathObject = Record<string, EnvNodeConvertPathPattern>;
|
|
6
|
+
export interface EnvNodeConvertPathArray {
|
|
7
|
+
include: string[];
|
|
8
|
+
exclude?: string[];
|
|
9
|
+
replace: EnvNodeConvertPathPattern;
|
|
10
|
+
}
|
|
11
|
+
export interface EnvNodeSharedSettings {
|
|
12
|
+
version?: string;
|
|
13
|
+
allowModules?: string[];
|
|
14
|
+
resolvePaths?: string[];
|
|
15
|
+
convertPath?: EnvNodeConvertPathObject | EnvNodeConvertPathArray[];
|
|
16
|
+
tryExtensions?: string[];
|
|
17
|
+
tsconfigPath?: string[];
|
|
18
|
+
typescriptExtensionMap?: ts.server.protocol.JsxEmit | Array<[string, string]>;
|
|
19
|
+
}
|
|
3
20
|
/**
|
|
4
21
|
* Configuration options for the environment preset "env.node".
|
|
5
22
|
*/
|
|
@@ -12,7 +29,7 @@ export interface EnvNodeOptions extends EnvRestrictedOptions {
|
|
|
12
29
|
* Shared settings for the plugin `eslint-plugin-n`. Will be merged into
|
|
13
30
|
* the settings object with the key "n".
|
|
14
31
|
*/
|
|
15
|
-
settings?:
|
|
32
|
+
settings?: EnvNodeSharedSettings;
|
|
16
33
|
}
|
|
17
34
|
/**
|
|
18
35
|
* Creates configuration objects with global symbols and linter rules for
|
package/dist/eslint/env/node.js
CHANGED
|
@@ -32,6 +32,7 @@ export default function node(envOptions) {
|
|
|
32
32
|
restrictedRules(envOptions),
|
|
33
33
|
// custom rules
|
|
34
34
|
customRules(envOptions, {
|
|
35
|
+
"no-console": "off",
|
|
35
36
|
"n/no-unsupported-features/node-builtins": ["error", { allowExperimental: true }],
|
|
36
37
|
"n/prefer-node-protocol": "error",
|
|
37
38
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/linter-presets",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "Configuration presets for ESLint and StyleLint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://gitlab.open-xchange.com/fspd/npm-packages/linter-presets"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"eslint-plugin-import": "2.29.1",
|
|
41
41
|
"eslint-plugin-jest": "28.6.0",
|
|
42
42
|
"eslint-plugin-jest-dom": "5.4.0",
|
|
43
|
-
"eslint-plugin-jsdoc": "48.
|
|
43
|
+
"eslint-plugin-jsdoc": "48.10.2",
|
|
44
44
|
"eslint-plugin-jsonc": "2.16.0",
|
|
45
45
|
"eslint-plugin-jsx-a11y": "6.9.0",
|
|
46
46
|
"eslint-plugin-jsx-expressions": "1.3.2",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"eslint": "9.8.0",
|
|
72
72
|
"husky": "9.1.4",
|
|
73
73
|
"jest": "29.7.0",
|
|
74
|
-
"stylelint": "16.8.
|
|
74
|
+
"stylelint": "16.8.1",
|
|
75
75
|
"typescript": "5.5.4"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|