From 38203d2223f61a8806eabee4224935fc067f66db Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 11 Jul 2022 15:46:23 +0300 Subject: ESLint: move "reportUnusedDisableDirectives" to config --- .eslintrc.json | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 22b0547..5f5e7af 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,6 +8,7 @@ "ecmaVersion": 2019 }, "extends": "eslint:recommended", + "reportUnusedDisableDirectives": true, "rules": { "comma-dangle": [ "error", diff --git a/package.json b/package.json index 632b173..ee508dc 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "stylelint": "^14.9.1" }, "scripts": { - "lint": "eslint --ignore-path .gitignore --report-unused-disable-directives .", + "lint": "eslint --ignore-path .gitignore .", "test": "npm run lint", "test-ci": "stylelint \"(bootstrap|bootstrap-4)/scss/**/*.scss\" --config index.js --ignore-pattern \"**/vendor/\" --formatter verbose" } -- cgit v1.2.3