@addev-be/framework-utils 2.6.0 → 2.7.1

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.
@@ -0,0 +1,33 @@
1
+ import { defineConfig } from 'eslint/config';
2
+ import globals from 'globals';
3
+ import js from '@eslint/js';
4
+ import tseslint from 'typescript-eslint';
5
+
6
+ /**
7
+ * ESLint configuration for TypeScript libraries
8
+ * Suitable for pure TypeScript packages without React or Node-specific dependencies
9
+ */
10
+ export const eslintLibConfig = defineConfig([
11
+ {
12
+ files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
13
+ plugins: { js },
14
+ extends: ['js/recommended'],
15
+ },
16
+ {
17
+ files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
18
+ languageOptions: {
19
+ globals: {
20
+ ...globals.node,
21
+ ...globals.es2021,
22
+ },
23
+ },
24
+ },
25
+ ...tseslint.configs.recommended,
26
+ {
27
+ rules: {
28
+ '@typescript-eslint/no-empty-function': 'off',
29
+ '@typescript-eslint/no-empty-object-type': 'off',
30
+ '@typescript-eslint/no-explicit-any': 'warn',
31
+ },
32
+ },
33
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@addev-be/framework-utils",
3
- "version": "2.6.0",
3
+ "version": "2.7.1",
4
4
  "type": "module",
5
5
  "export": {
6
6
  "node": {