@open-xchange/linter-presets 0.1.8 → 0.1.10
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,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.10] - 2024-07-26
|
|
4
|
+
|
|
5
|
+
- chore: bump dependencies
|
|
6
|
+
- chore: remove old license headers
|
|
7
|
+
|
|
8
|
+
## [0.1.9] - 2024-07-26
|
|
9
|
+
|
|
10
|
+
- added: [ESLint] `env.node`: option `settings` with shared settings for `eslint-plugin-n`
|
|
11
|
+
- chore: bump dependencies
|
|
12
|
+
|
|
3
13
|
## [0.1.8] - 2024-07-23
|
|
4
14
|
|
|
5
15
|
- fixed: [ESLint] type error in rule `env-project/no-invalid-modules`
|
package/dist/eslint/config/ts.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) Open-Xchange GmbH, Germany <info@open-xchange.com>
|
|
3
|
-
*
|
|
4
|
-
* This program is proprietary software and licensed to you under Open-Xchange
|
|
5
|
-
* GmbH's Software License Agreement.
|
|
6
|
-
*/
|
|
7
1
|
import typescriptEslint from "typescript-eslint";
|
|
8
2
|
import { NO_UNUSED_VARS_OPTIONS } from "../shared/env-utils.js";
|
|
9
3
|
// functions ==================================================================
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) Open-Xchange GmbH, Germany <info@open-xchange.com>
|
|
3
|
-
*
|
|
4
|
-
* This program is proprietary software and licensed to you under Open-Xchange
|
|
5
|
-
* GmbH's Software License Agreement.
|
|
6
|
-
*/
|
|
7
1
|
import codeceptPlugin from "eslint-plugin-codeceptjs";
|
|
8
2
|
import chaiExpectPlugin from "eslint-plugin-chai-expect";
|
|
9
3
|
import { concatConfigs, createConfig, customRules } from "../shared/env-utils.js";
|
|
@@ -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
|
}),
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/package",
|
|
3
2
|
"name": "@open-xchange/linter-presets",
|
|
4
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
5
4
|
"description": "Configuration presets for ESLint and StyleLint",
|
|
6
5
|
"repository": {
|
|
7
6
|
"url": "https://gitlab.open-xchange.com/fspd/npm-packages/linter-presets"
|
|
8
7
|
},
|
|
9
8
|
"license": "MIT",
|
|
10
9
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
10
|
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
12
11
|
},
|
|
13
12
|
"packageManager": "yarn@4.3.1",
|
|
14
13
|
"type": "module",
|
|
@@ -46,8 +45,8 @@
|
|
|
46
45
|
"eslint-plugin-jsx-a11y": "6.9.0",
|
|
47
46
|
"eslint-plugin-jsx-expressions": "1.3.2",
|
|
48
47
|
"eslint-plugin-license-header": "0.6.1",
|
|
49
|
-
"eslint-plugin-n": "17.
|
|
50
|
-
"eslint-plugin-promise": "
|
|
48
|
+
"eslint-plugin-n": "17.10.1",
|
|
49
|
+
"eslint-plugin-promise": "7.0.0",
|
|
51
50
|
"eslint-plugin-react": "7.35.0",
|
|
52
51
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
53
52
|
"eslint-plugin-react-hooks-static-deps": "1.0.7",
|
|
@@ -70,7 +69,7 @@
|
|
|
70
69
|
"@types/picomatch": "3.0.0",
|
|
71
70
|
"@typescript-eslint/utils": "7.17.0",
|
|
72
71
|
"eslint": "9.7.0",
|
|
73
|
-
"husky": "9.1.
|
|
72
|
+
"husky": "9.1.2",
|
|
74
73
|
"jest": "29.7.0",
|
|
75
74
|
"stylelint": "16.7.0",
|
|
76
75
|
"typescript": "5.5.4"
|