summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md11
-rw-r--r--package.json2
-rw-r--r--src/javascript.ts4
-rw-r--r--src/rules/eslint-comments.json1
-rw-r--r--yarn.lock13
5 files changed, 31 insertions, 0 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index c0f1368..d39625a 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -281,6 +281,17 @@
- [ ] "yield-star-spacing"
- [X] "yoda"
+## ESLint Comments
+
+- [ ] "disable-enable-pair"
+- [ ] "no-aggregating-enable"
+- [ ] "no-duplicate-disable"
+- [ ] "no-restricted-disable"
+- [ ] "no-unlimited-disable"
+- [ ] "no-unused-disable"
+- [ ] "no-unused-enable"
+- [ ] "no-use"
+
## Import
- [ ] "default"
diff --git a/package.json b/package.json
index a7fa345..e93d241 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
"@typescript-eslint/eslint-plugin": "^2.19.2",
"@typescript-eslint/parser": "^2.19.2",
"eslint": "^6.8.0",
+ "eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-sonarjs": "^0.5.0",
@@ -29,6 +30,7 @@
"@typescript-eslint/eslint-plugin": "^2.19.0",
"@typescript-eslint/parser": "^2.19.0",
"eslint": "^6.8.0",
+ "eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-sonarjs": "^0.5.0",
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 @@
+{}
diff --git a/yarn.lock b/yarn.lock
index 132fae4..9f25d6e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -393,6 +393,14 @@ eslint-module-utils@^2.4.1:
debug "^2.6.9"
pkg-dir "^2.0.0"
+eslint-plugin-eslint-comments@^3.1.2:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.1.2.tgz#4ef6c488dbe06aa1627fea107b3e5d059fc8a395"
+ integrity sha512-QexaqrNeteFfRTad96W+Vi4Zj1KFbkHHNMMaHZEYcovKav6gdomyGzaxSDSL3GoIyUOo078wRAdYlu1caiauIQ==
+ dependencies:
+ escape-string-regexp "^1.0.5"
+ ignore "^5.0.5"
+
eslint-plugin-import@^2.20.1:
version "2.20.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.20.1.tgz#802423196dcb11d9ce8435a5fc02a6d3b46939b3"
@@ -712,6 +720,11 @@ ignore@^4.0.6:
resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==
+ignore@^5.0.5:
+ version "5.1.4"
+ resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.4.tgz#84b7b3dbe64552b6ef0eca99f6743dbec6d97adf"
+ integrity sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A==
+
import-fresh@^3.0.0:
version "3.2.1"
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66"