This is an automated email from the ASF dual-hosted git repository. ocket8888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficcontrol-trafficops-types.git
commit e230351573b5272270d69f4b0f9f94b6cb6b133a Author: ocket8888 <[email protected]> AuthorDate: Wed Apr 27 20:49:02 2022 -0600 Stricter linting --- .eslintrc.json | 46 +++++++++++++++++++++++++++++++++++++++++++--- src/index.ts | 4 ++-- 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index a3213b0..50be6ad 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -6,7 +6,9 @@ ], "parser": "@typescript-eslint/parser", "parserOptions": { - "project": ["tsconfig.json"] + "project": [ + "tsconfig.json" + ] }, "plugins": [ "@typescript-eslint", @@ -52,7 +54,7 @@ { "accessibility": "explicit", "overrides": { - "constructors": "no-public" + "constructors": "off" } } ], @@ -160,6 +162,8 @@ "error" ], "@typescript-eslint/typedef": "off", + "jsdoc/no-types": "error", + "jsdoc/require-description": "error", "jsdoc/require-jsdoc": [ "error", { @@ -192,7 +196,35 @@ "1tbs" ], "class-methods-use-this": "off", - "import/order": "error", + "import/export": "error", + "import/first": "error", + "import/newline-after-import": "error", + "import/no-cycle": "error", + "import/no-self-import": "error", + "import/no-useless-path-segments": [ + "error", + { + "commonjs": true, + "noUselessIndex": true + } + ], + "import/order": [ + "error", + { + "alphabetize": { + "order": "asc" + }, + "groups": [ + "builtin", + "external", + "internal", + "parent", + "sibling" + ], + "newlines-between": "always", + "warnOnUnassignedImports": true + } + ], "linebreak-style": [ "error", "unix" @@ -209,6 +241,14 @@ "capIsConstructor": false } ], + "no-multiple-empty-lines": [ + "error", + { + "max": 1, + "maxBOF": 0, + "maxEOF": 0 + } + ], "no-new-func": "error", "no-redeclare": "off", "no-return-await": "error", diff --git a/src/index.ts b/src/index.ts index 8b4549c..5971cec 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,5 @@ +import type { Alert } from "./alert"; + export * from "./about"; export * from "./acme"; export * from "./alert"; @@ -32,8 +34,6 @@ export * from "./uri.signing"; export * from "./user"; export * from "./vault"; -import type { Alert } from "./alert"; - /** * Represents a version of the Traffic Ops API for which this library was made. */
