Browse Source

lint: remove tslint and @typescript-eslint/tslint modules

doesn't seem necessary, and tslint is deprecated now.
sschmid 4 years ago
parent
commit
93f1f593f1
2 changed files with 26 additions and 27 deletions
  1. 26 25
      .eslintrc.js
  2. 0 2
      package.json

+ 26 - 25
.eslintrc.js

@@ -26,7 +26,7 @@ module.exports = {
         "eslint-plugin-jsdoc",
         "eslint-plugin-no-null",
         "@typescript-eslint",
-        "@typescript-eslint/tslint"
+        //"@typescript-eslint/tslint"
     ],
     "rules": {
         "@typescript-eslint/dot-notation": "error",
@@ -179,29 +179,30 @@ module.exports = {
                 ]
             }
         ],
-        "@typescript-eslint/tslint/config": [
-            "error",
-            {
-                "rules": {
-                    "object-literal-sort-keys": true,
-                    "typedef": [
-                        true,
-                        "call-signature",
-                        "parameter",
-                        "property-declaration",
-                        "variable-declaration",
-                        "member-variable-declaration"
-                    ],
-                    "whitespace": [
-                        true,
-                        "check-branch",
-                        "check-decl",
-                        "check-operator",
-                        "check-separator",
-                        "check-type"
-                    ]
-                }
-            }
-        ]
+        // using this requires two extra modules: tslint and @typescript-eslint/tslint.
+        // "@typescript-eslint/tslint/config": [
+        //     "error",
+        //     {
+        //         "rules": {
+        //             "object-literal-sort-keys": true,
+        //             "typedef": [
+        //                 true,
+        //                 "call-signature",
+        //                 "parameter",
+        //                 "property-declaration",
+        //                 "variable-declaration",
+        //                 "member-variable-declaration"
+        //             ],
+        //             "whitespace": [
+        //                 true,
+        //                 "check-branch",
+        //                 "check-decl",
+        //                 "check-operator",
+        //                 "check-separator",
+        //                 "check-type"
+        //             ]
+        //         }
+        //     }
+        // ]
     }
 };

+ 0 - 2
package.json

@@ -74,7 +74,6 @@
     "@types/mocha": "^7.0.2",
     "@types/node": "^14.0.9",
     "@typescript-eslint/eslint-plugin": "^4.14.0",
-    "@typescript-eslint/eslint-plugin-tslint": "^4.14.0",
     "@typescript-eslint/parser": "^4.14.0",
     "canvas": "^2.6.1",
     "chai": "^4.1.0",
@@ -109,7 +108,6 @@
     "pre-commit": "^1.2.2",
     "svg2pdf.js": "^1.5.0",
     "ts-loader": "^4.1.0",
-    "tslint": "^5.14.0",
     "typedoc": "^0.17.3",
     "typescript": "^3.9.5",
     "webpack": "^4.43.0",