From f1414cfae0cbe73ad38f5e368db08e008e385e2c Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Sun, 24 Oct 2021 13:07:25 -0400 Subject: [PATCH] [Dev Deps] add `eslint-plugin-eslint-plugin` --- .eslintrc | 19 ++++++++++++++++++- package.json | 1 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index b3ebbdc1e..79b5a60c3 100644 --- a/.eslintrc +++ b/.eslintrc @@ -10,5 +10,22 @@ rules: { 'max-len': 'off', 'no-template-curly-in-string': 'off', - } + }, + "overrides": [ + { + "files": ["src/rules/*.js"], + "extends": ["plugin:eslint-plugin/rules-recommended"], + "rules": { + "eslint-plugin/require-meta-docs-url": [ + "error", + { "pattern": "https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/{{name}}.md" } + ], + "eslint-plugin/require-meta-type": "off" + } + }, + { + "files": ["__tests__/src/rules/*.js"], + "extends": ["plugin:eslint-plugin/tests-recommended"] + } + ] } diff --git a/package.json b/package.json index 015822d85..f57bf143c 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "babel-preset-airbnb": "^5.0.0", "eslint": "^3 || ^4 || ^5 || ^6 || ^7", "eslint-config-airbnb-base": "^14.2.1", + "eslint-plugin-eslint-plugin": "^4.0.2", "eslint-plugin-flowtype": "^5.8.0", "eslint-plugin-import": "^2.25.2", "estraverse": "^5.3.0",