diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index efd4fa2..0000000 --- a/.eslintrc +++ /dev/null @@ -1,37 +0,0 @@ -{ - "env": { - "es6": true, - "node": true - }, - "plugins": ["node"], - "parserOptions": { - "ecmaVersion": 6 - }, - "rules": { - "node/no-unsupported-features": [2, { - "version": 6 - } - ], - "arrow-parens": ["error", "always"], - "no-shadow": 0, - "radix": 0, - "keyword-spacing": 0, - "consistent-return": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "quotes": [ - "error", - "single", - { - "avoidEscape": true - } - ], - "semi": ["error", "always"], - "one-var": [ - "error", - { - "uninitialized": "always" - } - ] - } -} diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..09092c0 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,10 @@ +{ + "env": { + "commonjs": true, + "es2021": true, + "node": true + }, + "extends": "eslint:recommended", + "rules": { + } +} diff --git a/package-lock.json b/package-lock.json index fe3dc81..999341d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "license": "MIT", "devDependencies": { "eslint": "8.57.0", - "eslint-plugin-node": "11.1.0", "jest": "29.7.0" } }, @@ -2012,45 +2011,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-plugin-es": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz", - "integrity": "sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==", - "dev": true, - "dependencies": { - "eslint-utils": "^2.0.0", - "regexpp": "^3.0.0" - }, - "engines": { - "node": ">=8.10.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=4.19.1" - } - }, - "node_modules/eslint-plugin-node": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz", - "integrity": "sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==", - "dev": true, - "dependencies": { - "eslint-plugin-es": "^3.0.0", - "eslint-utils": "^2.0.0", - "ignore": "^5.1.1", - "minimatch": "^3.0.4", - "resolve": "^1.10.1", - "semver": "^6.1.0" - }, - "engines": { - "node": ">=8.10.0" - }, - "peerDependencies": { - "eslint": ">=5.16.0" - } - }, "node_modules/eslint-scope": { "version": "7.2.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", @@ -2067,30 +2027,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^1.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/eslint-visitor-keys": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", @@ -3948,18 +3884,6 @@ "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", diff --git a/package.json b/package.json index d91852b..463a121 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "dependencies": {}, "devDependencies": { "eslint": "8.57.0", - "eslint-plugin-node": "11.1.0", "jest": "29.7.0" } } diff --git a/test/.eslintrc b/test/.eslintrc deleted file mode 100644 index c6ff3a1..0000000 --- a/test/.eslintrc +++ /dev/null @@ -1,24 +0,0 @@ -{ - "extends": "../.eslintrc", - "env": { - "es6": true, - "mocha": true, - "node": true, - "jasmine": true - }, - "globals": { - "sinon": true, - "injector": true, - "testServer": true, - "nock": true, - "_": true - }, - "rules": { - "no-unused-expressions": 0, - "max-len": 0, - "arrow-body-style": 0, - "no-console": 0, - "import/no-extraneous-dependencies": 0, - "import/no-unresolved": 0 - } -} diff --git a/test/.eslintrc.json b/test/.eslintrc.json new file mode 100644 index 0000000..d525306 --- /dev/null +++ b/test/.eslintrc.json @@ -0,0 +1,9 @@ +{ + "extends": "../.eslintrc.json", + "env": { + "jest": true + }, + "rules": { + "no-unused-vars": 0 + } +}