feat(comments): Initial ESLint Comments plugin
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
92d87f46c8
commit
d7fbade96c
11
ROADMAP.md
11
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"
|
||||
|
@ -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",
|
||||
|
@ -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,
|
||||
|
1
src/rules/eslint-comments.json
Normal file
1
src/rules/eslint-comments.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
13
yarn.lock
13
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user