@open-xchange/linter-presets 0.1.8 → 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,10 @@
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
+
3
8
  ## [0.1.8] - 2024-07-23
4
9
 
5
10
  - fixed: [ESLint] type error in rule `env-project/no-invalid-modules`
@@ -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
@@ -22,8 +22,9 @@ export default function node(envOptions) {
22
22
  createConfig(envOptions, {
23
23
  ...nodePlugin.configs[configKey],
24
24
  settings: {
25
- node: {
25
+ n: {
26
26
  tryExtensions: [".js", ".ts", ".d.ts"], // automatically add missing extensions in imports
27
+ ...envOptions.settings,
27
28
  },
28
29
  },
29
30
  }),
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.8",
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": ">=18"
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": "6.6.0",
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.1",
73
+ "husky": "9.1.2",
74
74
  "jest": "29.7.0",
75
75
  "stylelint": "16.7.0",
76
76
  "typescript": "5.5.4"