diff --git a/api/.eslintrc.cjs b/api/.eslintrc.cjs index 8abee7f7e49..350dd336ccf 100644 --- a/api/.eslintrc.cjs +++ b/api/.eslintrc.cjs @@ -22,7 +22,7 @@ module.exports = { globals: { include: true, }, - plugins: ['knex', 'unicorn', 'local-rules'], + plugins: ['knex', 'unicorn'], rules: { 'no-console': 'error', 'mocha/no-hooks-for-single-case': 'off', @@ -67,6 +67,5 @@ module.exports = { ], }, ], - 'local-rules/no-sinon-stub-with-args-oneliner': 'error', }, }; diff --git a/api/eslint-local-rules.cjs b/api/eslint-local-rules.cjs deleted file mode 100644 index 7008bfcc1b3..00000000000 --- a/api/eslint-local-rules.cjs +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -const noSinonStubWithArgsOneliner = require("@1024pix/eslint-plugin-no-sinon-stub-with-args-oneliner"); - -module.exports = { - "no-sinon-stub-with-args-oneliner": noSinonStubWithArgsOneliner, -}; diff --git a/api/package-lock.json b/api/package-lock.json index e9bd02f8d42..e2ae70326ff 100644 --- a/api/package-lock.json +++ b/api/package-lock.json @@ -79,8 +79,8 @@ "yargs": "^17.5.1" }, "devDependencies": { - "@1024pix/eslint-config": "^1.0.3", - "@1024pix/eslint-plugin-no-sinon-stub-with-args-oneliner": "^0.2.0", + "@1024pix/eslint-config": "^1.1.0", + "@1024pix/eslint-plugin": "^1.0.0", "@babel/eslint-parser": "^7.18.2", "@babel/plugin-syntax-import-assertions": "^7.20.0", "@ls-lint/ls-lint": "^2.0.0", @@ -94,7 +94,6 @@ "eslint-plugin-i18n-json": "^4.0.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-knex": "https://github.com/1024pix/eslint-plugin-knex#master", - "eslint-plugin-local-rules": "^2.0.0", "eslint-plugin-mocha": "^10.0.5", "eslint-plugin-n": "^16.0.0", "eslint-plugin-prettier": "^5.0.0", @@ -118,11 +117,12 @@ } }, "node_modules/@1024pix/eslint-config": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@1024pix/eslint-config/-/eslint-config-1.0.3.tgz", - "integrity": "sha512-in7swJbHlAXZK/7q2/ZWBGfMWBJxdq1OU3nN1pSGRYxhpcuL3Rsxg9MrKtGQ4XsukOLOCqQALunfWc8vq3+NsQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@1024pix/eslint-config/-/eslint-config-1.1.0.tgz", + "integrity": "sha512-FzSvSmif9kA2J7mqw7VmNd88BmrIYJDDyd5QFT7G6iCHvm46LyuMZocy02IqzZpx0kgjy2wV4NTGRF5FY1AM/w==", "dev": true, "dependencies": { + "@1024pix/eslint-config": "^1.0.3", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-i18n-json": "^4.0.0", "eslint-plugin-yml": "^1.8.0" @@ -131,10 +131,10 @@ "eslint": ">=8.0.0" } }, - "node_modules/@1024pix/eslint-plugin-no-sinon-stub-with-args-oneliner": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@1024pix/eslint-plugin-no-sinon-stub-with-args-oneliner/-/eslint-plugin-no-sinon-stub-with-args-oneliner-0.2.0.tgz", - "integrity": "sha512-cPmR+jhMEU0g4ROrjqmT5bjcA0HAvDHFSqoOta32G+mT8j4eRG3X8bA5lVS++mjCrqfX2L2BZXIsgVwLV4OCJA==", + "node_modules/@1024pix/eslint-plugin": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@1024pix/eslint-plugin/-/eslint-plugin-1.0.0.tgz", + "integrity": "sha512-jjNmwbnTQ2G9NxYxHWQTWxpxBmkG7VqBLBgwaka+i/xfXWLC6zoAzuhNJYlfzWCOZ1fw3Di+PiPZ3t8lAtu7aw==", "dev": true }, "node_modules/@aashutoshrathi/word-wrap": { @@ -5209,12 +5209,6 @@ "dev": true, "license": "MIT" }, - "node_modules/eslint-plugin-local-rules": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-local-rules/-/eslint-plugin-local-rules-2.0.0.tgz", - "integrity": "sha512-sWueme0kUcP0JC1+6OBDQ9edBDVFJR92WJHSRbhiRExlenMEuUisdaVBPR+ItFBFXo2Pdw6FD2UfGZWkz8e93g==", - "dev": true - }, "node_modules/eslint-plugin-mocha": { "version": "10.2.0", "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.2.0.tgz", diff --git a/api/package.json b/api/package.json index 3267340df18..0ad3cc2c5fe 100644 --- a/api/package.json +++ b/api/package.json @@ -85,8 +85,8 @@ "yargs": "^17.5.1" }, "devDependencies": { - "@1024pix/eslint-config": "^1.0.3", - "@1024pix/eslint-plugin-no-sinon-stub-with-args-oneliner": "^0.2.0", + "@1024pix/eslint-config": "^1.1.0", + "@1024pix/eslint-plugin": "^1.0.0", "@babel/eslint-parser": "^7.18.2", "@babel/plugin-syntax-import-assertions": "^7.20.0", "@ls-lint/ls-lint": "^2.0.0", @@ -100,7 +100,6 @@ "eslint-plugin-i18n-json": "^4.0.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-knex": "https://github.com/1024pix/eslint-plugin-knex#master", - "eslint-plugin-local-rules": "^2.0.0", "eslint-plugin-mocha": "^10.0.5", "eslint-plugin-n": "^16.0.0", "eslint-plugin-prettier": "^5.0.0", diff --git a/api/tests/unit/scripts/helpers/organizations-by-external-id-helper_test.js b/api/tests/unit/scripts/helpers/organizations-by-external-id-helper_test.js index 0c6d7be6e14..95634484211 100644 --- a/api/tests/unit/scripts/helpers/organizations-by-external-id-helper_test.js +++ b/api/tests/unit/scripts/helpers/organizations-by-external-id-helper_test.js @@ -45,7 +45,7 @@ describe('Unit | Scripts | organizations-by-external-id-helper.js', function () ]; // TODO: Fix this the next time the file is edited. - // eslint-disable-next-line local-rules/no-sinon-stub-with-args-oneliner + // eslint-disable-next-line @1024pix/no-sinon-stub-with-args-oneliner const findByExternalIdsFetchingIdsOnlyStub = sinon.stub().withArgs(['A100', 'B200']).resolves([]); const organizationRepository = { findByExternalIdsFetchingIdsOnly: findByExternalIdsFetchingIdsOnlyStub };