aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 11:39:05 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 11:39:05 +0300
commitd7fbade96c19c663c4440805665d1aba26c1ccfd (patch)
tree0fef375ac90402ac8daacc0ea4a9d061b0c6d61b /src
parent92d87f46c8c7b6519aff38912b9c4cb13d113236 (diff)
downloadeslint-config-d7fbade96c19c663c4440805665d1aba26c1ccfd.tar.xz
eslint-config-d7fbade96c19c663c4440805665d1aba26c1ccfd.zip
feat(comments): Initial ESLint Comments plugin
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src')
-rw-r--r--src/javascript.ts4
-rw-r--r--src/rules/eslint-comments.json1
2 files changed, 5 insertions, 0 deletions
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 @@
+{}