From 16440bf76b2ff30733519769c4cee3e8b3cf59e8 Mon Sep 17 00:00:00 2001 From: Coding-Dev-Tools Date: Wed, 1 Jul 2026 04:15:02 -0400 Subject: [PATCH] improve: fix eslint config sourceType, add devDependencies, add node_modules to gitignore --- .gitignore | 1 + eslint.config.mjs | 2 +- package.json | 107 +++++++++++++++++++++++----------------------- 3 files changed, 56 insertions(+), 54 deletions(-) diff --git a/.gitignore b/.gitignore index e069b39..4c23f47 100644 --- a/.gitignore +++ b/.gitignore @@ -71,4 +71,5 @@ Thumbs.db research/ fixtures/generated/ .ruff_cache/ +node_modules/ nul diff --git a/eslint.config.mjs b/eslint.config.mjs index 58db3ac..e7fb9a5 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -6,7 +6,7 @@ export default [ { languageOptions: { ecmaVersion: 2023, - sourceType: "commonjs", + sourceType: "module", globals: { ...globals.node }, }, rules: { diff --git a/package.json b/package.json index 82cec8a..1c78902 100644 --- a/package.json +++ b/package.json @@ -1,54 +1,55 @@ { - "name": "configdrift", - "version": "0.1.0", - "description": "Detect configuration drift across your infrastructure. Monitor and alert on config changes in real-time.", - "author": "Revenue Holdings \u003cengineering@revenueholdings.dev\u003e", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/Coding-Dev-Tools/configdrift.git" - }, - "homepage": "https://github.com/Coding-Dev-Tools/configdrift#readme", - "bugs": { - "url": "https://github.com/Coding-Dev-Tools/configdrift/issues" - }, - "bin": { - "configdrift": "cli.js" - }, - "keywords": [ - "configuration-drift", - "config-management", - "devops", - "infrastructure", - "monitoring", - "drift-detection", - "kubernetes", - "terraform", - "ansible", - "compliance", - "cli", - "site-reliability", - "gitops", - "developer-tools", - "audit" - ], - "files": [ - "cli.js" - ], - "engines": { - "node": "\u003e=16.0.0" - }, - "preferGlobal": true, - "publishConfig": { - "access": "public" - }, - "scripts": { - "test": "node --test tests/*.test.js", - "lint": "eslint .", - "test:py": "pytest" - }, - "devDependencies": { - "@eslint/js": "^9.0.0", - "eslint": "^9.0.0" - } -} \ No newline at end of file + "name": "configdrift", + "version": "0.1.0", + "description": "Detect configuration drift across your infrastructure. Monitor and alert on config changes in real-time.", + "author": "Revenue Holdings ", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/Coding-Dev-Tools/configdrift.git" + }, + "homepage": "https://github.com/Coding-Dev-Tools/configdrift#readme", + "bugs": { + "url": "https://github.com/Coding-Dev-Tools/configdrift/issues" + }, + "bin": { + "configdrift": "cli.js" + }, + "keywords": [ + "configuration-drift", + "config-management", + "devops", + "infrastructure", + "monitoring", + "drift-detection", + "kubernetes", + "terraform", + "ansible", + "compliance", + "cli", + "site-reliability", + "gitops", + "developer-tools", + "audit" + ], + "files": [ + "cli.js" + ], + "engines": { + "node": ">=16.0.0" + }, + "preferGlobal": true, + "devDependencies": { + "@eslint/js": "^9.0.0", + "eslint": "^9.0.0", + "globals": "^15.0.0" + }, + "publishConfig": { + "access": "public" + }, + "scripts": { + "test": "node --test tests/*.test.js", + "lint": "eslint .", + "test:py": "pytest" + } +}