@open-xchange/linter-presets 0.1.7 → 0.1.9
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,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.9] - 2024-07-26
|
|
4
|
+
|
|
5
|
+
- added: [ESLint] `env.node`: option `settings` with shared settings for `eslint-plugin-n`
|
|
6
|
+
- chore: bump dependencies
|
|
7
|
+
|
|
8
|
+
## [0.1.8] - 2024-07-23
|
|
9
|
+
|
|
10
|
+
- fixed: [ESLint] type error in rule `env-project/no-invalid-modules`
|
|
11
|
+
|
|
3
12
|
## [0.1.7] - 2024-07-23
|
|
4
13
|
|
|
5
14
|
- changed: [ESLint] reverted option `modules` for `env.project` (introduced in 0.1.6)
|
|
@@ -8,6 +8,11 @@ export interface EnvNodeOptions extends EnvRestrictedOptions {
|
|
|
8
8
|
* The module mode used by the linted files. Default value is "module".
|
|
9
9
|
*/
|
|
10
10
|
sourceType?: LanguageOptions["sourceType"];
|
|
11
|
+
/**
|
|
12
|
+
* Shared settings for the plugin `eslint-plugin-n`. Will be merged into
|
|
13
|
+
* the settings object with the key "n".
|
|
14
|
+
*/
|
|
15
|
+
settings?: Record<string, unknown>;
|
|
11
16
|
}
|
|
12
17
|
/**
|
|
13
18
|
* Creates configuration objects with global symbols and linter rules for
|
package/dist/eslint/env/node.js
CHANGED
|
@@ -22,8 +22,9 @@ export default function node(envOptions) {
|
|
|
22
22
|
createConfig(envOptions, {
|
|
23
23
|
...nodePlugin.configs[configKey],
|
|
24
24
|
settings: {
|
|
25
|
-
|
|
25
|
+
n: {
|
|
26
26
|
tryExtensions: [".js", ".ts", ".d.ts"], // automatically add missing extensions in imports
|
|
27
|
+
...envOptions.settings,
|
|
27
28
|
},
|
|
28
29
|
},
|
|
29
30
|
}),
|
|
@@ -34,7 +34,7 @@ export default function project(envOptions) {
|
|
|
34
34
|
// custom rules
|
|
35
35
|
customRules(envOptions, {
|
|
36
36
|
"env-project/no-amd-module-directive": "error",
|
|
37
|
-
"env-project/no-invalid-modules": ["error", { external: envOptions.external }],
|
|
37
|
+
"env-project/no-invalid-modules": ["error", { external: envOptions.external ?? [] }],
|
|
38
38
|
"env-project/no-invalid-hierarchy": envOptions.hierarchy ? ["error", envOptions.hierarchy] : "off",
|
|
39
39
|
}));
|
|
40
40
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@open-xchange/linter-presets",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.9",
|
|
5
5
|
"description": "Configuration presets for ESLint and StyleLint",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://gitlab.open-xchange.com/fspd/npm-packages/linter-presets"
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
11
|
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
12
12
|
},
|
|
13
13
|
"packageManager": "yarn@4.3.1",
|
|
14
14
|
"type": "module",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"eslint-plugin-jsx-expressions": "1.3.2",
|
|
48
48
|
"eslint-plugin-license-header": "0.6.1",
|
|
49
49
|
"eslint-plugin-n": "17.9.0",
|
|
50
|
-
"eslint-plugin-promise": "
|
|
50
|
+
"eslint-plugin-promise": "7.0.0",
|
|
51
51
|
"eslint-plugin-react": "7.35.0",
|
|
52
52
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
53
53
|
"eslint-plugin-react-hooks-static-deps": "1.0.7",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@types/picomatch": "3.0.0",
|
|
71
71
|
"@typescript-eslint/utils": "7.17.0",
|
|
72
72
|
"eslint": "9.7.0",
|
|
73
|
-
"husky": "9.1.
|
|
73
|
+
"husky": "9.1.2",
|
|
74
74
|
"jest": "29.7.0",
|
|
75
75
|
"stylelint": "16.7.0",
|
|
76
76
|
"typescript": "5.5.4"
|