From 360db7424611d70e9d84b5f06c1b6a04bf91c703 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Fri, 9 Jun 2023 14:07:46 +0200 Subject: [PATCH 1/2] enable eslint comments --- dht-node/.eslintrc.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dht-node/.eslintrc.js b/dht-node/.eslintrc.js index 64f5a9051..1cb259970 100644 --- a/dht-node/.eslintrc.js +++ b/dht-node/.eslintrc.js @@ -13,7 +13,7 @@ module.exports = { // 'plugin:import/recommended', // 'plugin:import/typescript', // 'plugin:security/recommended', - // 'plugin:@eslint-community/eslint-comments/recommended', + 'plugin:@eslint-community/eslint-comments/recommended', ], settings: { 'import/parsers': { @@ -155,10 +155,10 @@ module.exports = { // 'promise/prefer-await-to-callbacks': 'error', // 'promise/no-multiple-resolved': 'error', // eslint comments - // '@eslint-community/eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }], - // '@eslint-community/eslint-comments/no-restricted-disable': 'error', - // '@eslint-community/eslint-comments/no-use': 'off', - // '@eslint-community/eslint-comments/require-description': 'off', + '@eslint-community/eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }], + '@eslint-community/eslint-comments/no-restricted-disable': 'error', + '@eslint-community/eslint-comments/no-use': 'off', + '@eslint-community/eslint-comments/require-description': 'off', }, overrides: [ // only for ts files From 30b980eb54f847df15157948d1f53a9e35af6992 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Fri, 9 Jun 2023 14:08:06 +0200 Subject: [PATCH 2/2] exclude coverage folder from linting --- dht-node/.eslintignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dht-node/.eslintignore b/dht-node/.eslintignore index f6b255e92..1ae86fe5e 100644 --- a/dht-node/.eslintignore +++ b/dht-node/.eslintignore @@ -1,3 +1,4 @@ node_modules **/*.min.js -build \ No newline at end of file +build +coverage \ No newline at end of file