@abinnovision/eslint-config-typescript 2.2.0 → 2.2.2

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.2.2](https://github.com/abinnovision/js-commons/compare/eslint-config-typescript-v2.2.1...eslint-config-typescript-v2.2.2) (2025-11-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * mark eslint-config-typescript as deprecated and update README ([8618bf9](https://github.com/abinnovision/js-commons/commit/8618bf9fd5395f9bc971e6db3100fa242d0936b6))
9
+ * migrate eslint configs to use defineConfig ([#541](https://github.com/abinnovision/js-commons/issues/541)) ([eb24dca](https://github.com/abinnovision/js-commons/commit/eb24dca423b594711b727da84f4c4026f781c9e4))
10
+
11
+ ## [2.2.1](https://github.com/abinnovision/js-commons/compare/eslint-config-typescript-v2.2.0...eslint-config-typescript-v2.2.1) (2024-12-11)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * upgrade [@typescript-eslint](https://github.com/typescript-eslint) dependencies ([#387](https://github.com/abinnovision/js-commons/issues/387)) ([195cc68](https://github.com/abinnovision/js-commons/commit/195cc682a29fcc31a15b30ef6e982faad4cfae88))
17
+
3
18
  ## [2.2.0](https://github.com/abinnovision/js-commons/compare/eslint-config-typescript-v2.1.1...eslint-config-typescript-v2.2.0) (2024-10-24)
4
19
 
5
20
 
package/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # @abinnovision/eslint-config-typescript
2
2
 
3
+ > **⚠️ DEPRECATED**: This package has been merged into
4
+ > [@abinnovision/eslint-config-base](../eslint-config-base). Please use that
5
+ > package instead, which now includes TypeScript support by default.
6
+
3
7
  ESLint config specifically for Typescript related projects. This config **must
4
8
  be used in conjunction with the
5
- [@abinnovision/eslint-config-base](https://github.com/abinnovision/js-commons/tree/master/packages/eslint-config-base)
9
+ [@abinnovision/eslint-config-base](https://github.com/abinnovision/js-commons/tree/main/packages/eslint-config-base)
6
10
  ESLint config**. This config is based on the
7
11
  [AlloyTeam ESLint Config](https://github.com/AlloyTeam/eslint-config-alloy) with
8
12
  some additional goodies on top.
package/package.json CHANGED
@@ -1,21 +1,27 @@
1
1
  {
2
2
  "name": "@abinnovision/eslint-config-typescript",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
+ "deprecated": "This package has been merged into @abinnovision/eslint-config-base. Please use that package instead.",
5
+ "publishConfig": {
6
+ "npm": true,
7
+ "ghpr": true,
8
+ "npmAccess": "public"
9
+ },
4
10
  "type": "module",
5
11
  "repository": {
6
12
  "url": "https://github.com/abinnovision/js-commons"
7
13
  },
8
14
  "license": "Apache-2.0",
9
15
  "author": {
10
- "name": "AB INNOVISION GmbH",
11
- "email": "info@abinnovision.com",
12
- "url": "https://abinnovision.com/"
16
+ "name": "abi group GmbH",
17
+ "email": "info@abigroup.io",
18
+ "url": "https://abigroup.io/"
13
19
  },
14
20
  "exports": {
15
21
  ".": {
22
+ "types": "./dist/index.d.ts",
16
23
  "import": "./dist/index.js",
17
- "require": "./dist/index.cjs",
18
- "types": "./dist/index.d.ts"
24
+ "require": "./dist/index.cjs"
19
25
  }
20
26
  },
21
27
  "main": "./dist/index.cjs",
@@ -42,18 +48,17 @@
42
48
  },
43
49
  "prettier": "@abinnovision/prettier-config",
44
50
  "dependencies": {
45
- "@typescript-eslint/eslint-plugin": "^8.10.0",
46
- "@typescript-eslint/parser": "^8.10.0",
51
+ "@typescript-eslint/eslint-plugin": "^8.28.0",
52
+ "@typescript-eslint/parser": "^8.28.0",
47
53
  "eslint-config-alloy": "^5.1.2"
48
54
  },
49
55
  "devDependencies": {
50
- "@abinnovision/prettier-config": "^2.1.3",
51
- "@types/eslint": "^9.6.1",
52
- "eslint": "^9.13.0",
53
- "globals": "^15.11.0",
54
- "prettier": "^3.3.3",
55
- "tsup": "^8.3.0",
56
- "typescript": "^5.6.3"
56
+ "@abinnovision/eslint-config-base": "^3.0.0",
57
+ "@abinnovision/prettier-config": "^2.1.4",
58
+ "eslint": "^9.39.1",
59
+ "prettier": "^3.4.2",
60
+ "tsup": "^8.3.6",
61
+ "typescript": "^5.9.3"
57
62
  },
58
63
  "peerDependencies": {
59
64
  "eslint": "^9.0.0"
package/dist/index.cjs DELETED
@@ -1,76 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
33
- default: () => src_default
34
- });
35
- module.exports = __toCommonJS(src_exports);
36
- var import_eslint_plugin = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
37
- var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
38
- var import_typescript = __toESM(require("eslint-config-alloy/typescript.js"), 1);
39
- var config = [
40
- {
41
- files: ["**/*.{ts,tsx}"],
42
- plugins: {
43
- "@typescript-eslint": import_eslint_plugin.default
44
- },
45
- languageOptions: {
46
- parser: import_parser.default,
47
- parserOptions: {
48
- project: "./tsconfig.json"
49
- }
50
- },
51
- rules: {
52
- /**
53
- * Use the rules from the base config as defaults.
54
- *
55
- * @see https://alloyteam.github.io/eslint-config-alloy/?hideOff=1&rule=typescript
56
- */
57
- ...import_typescript.default.rules ?? {},
58
- /**
59
- * Enforce to use `return await` for async functions.
60
- * This rule is set to "always" because it's a good practice to use
61
- * `return await` for async functions.
62
- *
63
- * NOTE: This is overridden from the base config.
64
- *
65
- * @see https://typescript-eslint.io/rules/return-await/
66
- * @see https://stackoverflow.com/questions/43353087/are-there-performance-concerns-with-return-await/70979225#70979225
67
- */
68
- "@typescript-eslint/return-await": ["warn", "always"],
69
- /**
70
- * Disable no-unused-vars due to unused-imports plugin
71
- */
72
- "@typescript-eslint/no-unused-vars": "off"
73
- }
74
- }
75
- ];
76
- var src_default = config;
package/dist/index.d.cts DELETED
@@ -1,33 +0,0 @@
1
- import TypescriptEslintParser from '@typescript-eslint/parser';
2
-
3
- declare const config: {
4
- files: string[];
5
- plugins: {
6
- "@typescript-eslint": any;
7
- };
8
- languageOptions: {
9
- parser: typeof TypescriptEslintParser;
10
- parserOptions: {
11
- project: string;
12
- };
13
- };
14
- rules: {
15
- /**
16
- * Enforce to use `return await` for async functions.
17
- * This rule is set to "always" because it's a good practice to use
18
- * `return await` for async functions.
19
- *
20
- * NOTE: This is overridden from the base config.
21
- *
22
- * @see https://typescript-eslint.io/rules/return-await/
23
- * @see https://stackoverflow.com/questions/43353087/are-there-performance-concerns-with-return-await/70979225#70979225
24
- */
25
- "@typescript-eslint/return-await": ["warn", string];
26
- /**
27
- * Disable no-unused-vars due to unused-imports plugin
28
- */
29
- "@typescript-eslint/no-unused-vars": "off";
30
- };
31
- }[];
32
-
33
- export { config as default };
package/dist/index.d.ts DELETED
@@ -1,33 +0,0 @@
1
- import TypescriptEslintParser from '@typescript-eslint/parser';
2
-
3
- declare const config: {
4
- files: string[];
5
- plugins: {
6
- "@typescript-eslint": any;
7
- };
8
- languageOptions: {
9
- parser: typeof TypescriptEslintParser;
10
- parserOptions: {
11
- project: string;
12
- };
13
- };
14
- rules: {
15
- /**
16
- * Enforce to use `return await` for async functions.
17
- * This rule is set to "always" because it's a good practice to use
18
- * `return await` for async functions.
19
- *
20
- * NOTE: This is overridden from the base config.
21
- *
22
- * @see https://typescript-eslint.io/rules/return-await/
23
- * @see https://stackoverflow.com/questions/43353087/are-there-performance-concerns-with-return-await/70979225#70979225
24
- */
25
- "@typescript-eslint/return-await": ["warn", string];
26
- /**
27
- * Disable no-unused-vars due to unused-imports plugin
28
- */
29
- "@typescript-eslint/no-unused-vars": "off";
30
- };
31
- }[];
32
-
33
- export { config as default };
package/dist/index.js DELETED
@@ -1,45 +0,0 @@
1
- // src/index.ts
2
- import TypescriptEslintPlugin from "@typescript-eslint/eslint-plugin";
3
- import TypescriptEslintParser from "@typescript-eslint/parser";
4
- import AlloyTypescript from "eslint-config-alloy/typescript.js";
5
- var config = [
6
- {
7
- files: ["**/*.{ts,tsx}"],
8
- plugins: {
9
- "@typescript-eslint": TypescriptEslintPlugin
10
- },
11
- languageOptions: {
12
- parser: TypescriptEslintParser,
13
- parserOptions: {
14
- project: "./tsconfig.json"
15
- }
16
- },
17
- rules: {
18
- /**
19
- * Use the rules from the base config as defaults.
20
- *
21
- * @see https://alloyteam.github.io/eslint-config-alloy/?hideOff=1&rule=typescript
22
- */
23
- ...AlloyTypescript.rules ?? {},
24
- /**
25
- * Enforce to use `return await` for async functions.
26
- * This rule is set to "always" because it's a good practice to use
27
- * `return await` for async functions.
28
- *
29
- * NOTE: This is overridden from the base config.
30
- *
31
- * @see https://typescript-eslint.io/rules/return-await/
32
- * @see https://stackoverflow.com/questions/43353087/are-there-performance-concerns-with-return-await/70979225#70979225
33
- */
34
- "@typescript-eslint/return-await": ["warn", "always"],
35
- /**
36
- * Disable no-unused-vars due to unused-imports plugin
37
- */
38
- "@typescript-eslint/no-unused-vars": "off"
39
- }
40
- }
41
- ];
42
- var src_default = config;
43
- export {
44
- src_default as default
45
- };