diff --git a/.eslintrc.js b/.eslintrc.js index 4946416..0feb469 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,6 +7,7 @@ module.exports = { }, extends: [ "airbnb-base", + "plugin:@eslint-community/eslint-comments/recommended", "plugin:jsdoc/recommended", "plugin:promise/recommended", "plugin:regexp/recommended", @@ -49,6 +50,9 @@ module.exports = { ], root: true, rules: { + "@eslint-community/eslint-comments/disable-enable-pair": "off", + "@eslint-community/eslint-comments/no-unused-disable": "error", + "@eslint-community/eslint-comments/require-description": "error", "import/no-extraneous-dependencies": "error", "jsdoc/check-syntax": "error", "jsdoc/require-hyphen-before-param-description": "error", @@ -56,6 +60,7 @@ module.exports = { "prefer-destructuring": ["error", { object: true, array: false }], "promise/prefer-await-to-callbacks": "warn", "promise/prefer-await-to-then": "warn", + "security/detect-object-injection": "off", strict: ["error", "global"], }, }; diff --git a/package.json b/package.json index 1a5702b..08344d5 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ "devDependencies": { "@commitlint/cli": "^17.7.1", "@commitlint/config-conventional": "^17.7.0", + "@eslint-community/eslint-plugin-eslint-comments": "^4.1.0", "@types/jest": "^29.5.3", "eslint": "^8.47.0", "eslint-config-airbnb-base": "^15.0.0", diff --git a/scripts/license-checker.js b/scripts/license-checker.js index 08ad25b..f503de6 100644 --- a/scripts/license-checker.js +++ b/scripts/license-checker.js @@ -1,6 +1,3 @@ -/* eslint-disable security/detect-object-injection */ -/* eslint-disable security-node/detect-crlf */ - "use strict"; const { promisify } = require("node:util");