@odg/eslint-config 3.0.2 → 3.0.4

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.
Files changed (2) hide show
  1. package/index.d.ts +25 -0
  2. package/package.json +9 -5
package/index.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ import type { Linter } from 'eslint';
2
+
3
+ /**
4
+ * ODG ESLint Configuration
5
+ *
6
+ * A comprehensive ESLint configuration for JavaScript, TypeScript, JSON, YAML, and other file types.
7
+ * This configuration includes support for:
8
+ * - JavaScript/TypeScript linting
9
+ * - JSON/JSONC configuration files
10
+ * - YAML files (including GitHub Actions)
11
+ * - PHP files with HTML markup
12
+ * - Test files with Vitest globals
13
+ * - Various file formats (INI, TOML, Markdown, etc.)
14
+ *
15
+ * @example
16
+ * // Using this configuration in eslint.config.js
17
+ * import config from '@odg/eslint-config';
18
+ *
19
+ * export default [
20
+ * ...config
21
+ * ];
22
+ */
23
+ declare const config: Linter.Config[];
24
+
25
+ export default config;
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "@odg/eslint-config",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "Linter for JavaScript And Typescript project",
5
5
  "type": "module",
6
6
  "main": "index.mjs",
7
+ "types": "index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "import": "./index.mjs"
12
+ }
13
+ },
7
14
  "author": "Dragons Gamers <https://www.linkedin.com/in/victor-alves-odgodinho>",
8
15
  "scripts": {
9
16
  "lint": "eslint",
@@ -22,10 +29,6 @@
22
29
  "@types/node": ">=24",
23
30
  "typescript": "*"
24
31
  },
25
- "peerDependencies": {
26
- "@typescript-eslint/parser": "*",
27
- "eslint": "^9"
28
- },
29
32
  "dependencies": {
30
33
  "@babel/core": "*",
31
34
  "@odg/eslint-plugin": "*",
@@ -63,6 +66,7 @@
63
66
  "yaml-eslint-parser": "^2.0.0"
64
67
  },
65
68
  "files": [
69
+ "./index.d.ts",
66
70
  "./index.mjs",
67
71
  "./rules/"
68
72
  ],