From d7fbade96c19c663c4440805665d1aba26c1ccfd Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 12:39:05 +0400 Subject: feat(comments): Initial ESLint Comments plugin Signed-off-by: Valentin Popov --- src/javascript.ts | 4 ++++ src/rules/eslint-comments.json | 1 + 2 files changed, 5 insertions(+) create mode 100644 src/rules/eslint-comments.json (limited to 'src') diff --git a/src/javascript.ts b/src/javascript.ts index 403ebdb..294380e 100644 --- a/src/javascript.ts +++ b/src/javascript.ts @@ -1,3 +1,4 @@ +import rComments from "./rules/eslint-comments.json"; import rDefault from "./rules/default.json"; import rImport from "./rules/import.json"; import rSecurity from "./rules/security.json"; @@ -7,6 +8,7 @@ import rUnicorn from "./rules/unicorn.json"; module.exports = { "extends": [ "eslint:recommended", + "plugin:eslint-comments/recommended", "plugin:import/errors", "plugin:import/recommended", "plugin:import/warnings", @@ -15,12 +17,14 @@ module.exports = { "plugin:unicorn/recommended", ], "plugins": [ + "eslint-comments", "import", "security", "sonarjs", "unicorn", ], "rules": { + ...rComments, ...rDefault, ...rImport, ...rSecurity, diff --git a/src/rules/eslint-comments.json b/src/rules/eslint-comments.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/src/rules/eslint-comments.json @@ -0,0 +1 @@ +{} -- cgit v1.2.3