@odg/eslint-config 3.0.1 → 3.0.3

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/README.md CHANGED
@@ -549,7 +549,9 @@ npm install @odg/eslint-config
549
549
  yarn add -D @odg/eslint-config
550
550
  ```
551
551
 
552
- Create the `eslint.config.js` file in the root directory of your project.
552
+ Create the `eslint.config.mjs` file in the root directory of your project.
553
+
554
+ > Use .mjs file to avoid warn errors
553
555
 
554
556
  ```js
555
557
  import odgLinter from "@odg/eslint-config";
@@ -567,6 +569,9 @@ Add script in your `package.json` file
567
569
  "scripts": {
568
570
  "lint": "eslint",
569
571
  "lint:fix": "eslint --fix",
572
+ },
573
+ "engines": {
574
+ "node": ">=24"
570
575
  }
571
576
  }
572
577
  ```
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/index.mjs CHANGED
@@ -128,6 +128,9 @@ export default [
128
128
  hideFileName: false, // Use this to hide the file name, would simply show "Linting..."
129
129
  successMessage: "Lint done...",
130
130
  },
131
+ "node": {
132
+ "version": ">=24.0.0",
133
+ },
131
134
  },
132
135
  rules: {
133
136
  ...globalBase.rules,
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "@odg/eslint-config",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
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",
@@ -63,6 +70,7 @@
63
70
  "yaml-eslint-parser": "^2.0.0"
64
71
  },
65
72
  "files": [
73
+ "./index.d.ts",
66
74
  "./index.mjs",
67
75
  "./rules/"
68
76
  ],