From 5acd6a3a61b6434a5db7b690b190d3190778e5ba Mon Sep 17 00:00:00 2001 From: Navy Date: Mon, 7 Oct 2024 15:18:55 +0300 Subject: [PATCH] cleanup --- .eslintrc.json | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index d92d088..4dbd3fc 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,6 +1,8 @@ { - // "parser": "@typescript-eslint/parser", - "plugins": [], + "parser": "@typescript-eslint/parser", + "plugins": [ + "@typescript-eslint/eslint-plugin" + ], "env": { "es6": true, "node": true, @@ -8,7 +10,7 @@ }, "extends": [ "eslint:recommended", - // "plugin:@typescript-eslint/recommended" + "plugin:@typescript-eslint/recommended" ], "globals": { "Atomics": "readonly", @@ -18,18 +20,18 @@ "parserOptions": { "ecmaVersion": 2022, "sourceType": "module", - // "project": "./tsconfig.json" + "project": "./tsconfig.json" }, "rules": { - // "@typescript-eslint/no-unused-vars": "off", - // "@typescript-eslint/no-non-null-assertion": "off", - // "@typescript-eslint/no-misused-promises": ["error", { - // "checksVoidReturn": { - // "arguments": false - // } - // }], - // "@typescript-eslint/no-shadow": "error", - // "@typescript-eslint/no-use-before-define": "error", + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-misused-promises": ["error", { + "checksVoidReturn": { + "arguments": false + } + }], + "@typescript-eslint/no-shadow": "error", + "@typescript-eslint/no-use-before-define": "error", "accessor-pairs": "warn", "array-callback-return": "warn", "array-bracket-newline": [ @@ -294,7 +296,6 @@ "prefer-regex-literals": "warn", "prefer-rest-params": "warn", "prefer-spread": "warn", - "require-jsdoc": "warn", "require-unicode-regexp": "warn", "rest-spread-spacing": "warn", "semi": "error",