From 7d280d88090760a064106304013d300550f014f3 Mon Sep 17 00:00:00 2001 From: Daniel Jonathan Date: Fri, 16 Aug 2024 06:45:01 -0400 Subject: [PATCH] fixed eslint rules --- .eslintrc.yml | 113 ++++++++++++++++++++++++---------------------- package-lock.json | 12 ++--- tsconfig.json | 6 +-- 3 files changed, 67 insertions(+), 64 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 5567d2f..7eaff38 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -21,125 +21,128 @@ overrides: - 0 rules: '@typescript-eslint/no-empty-interface': - - 2 + - error '@typescript-eslint/no-inferrable-types': - - 2 + - error '@typescript-eslint/explicit-function-return-type': - - 2 + - error eqeqeq: - - 2 + - error camelcase: - - 2 + - error no-console: - - 2 + - error no-lonely-if: - - 2 + - error comma-dangle: - - 2 + - error - arrays: never objects: always-multiline imports: always-multiline exports: always-multiline functions: never indent: - - 2 - - 2 + - error + - 4 + - SwitchCase: 1 + no-tabs: + - error object-curly-spacing: - - 2 + - error - always array-bracket-spacing: - - 2 + - error - always curly: - - 2 + - error - all template-curly-spacing: - - 2 + - error no-trailing-spaces: - - 2 + - error no-spaced-func: - - 2 + - error space-before-blocks: - - 2 + - error semi: - - 2 + - error - never object-curly-newline: - - 2 + - error - multiline: true minProperties: 2 consistent: true object-property-newline: - - 2 + - error object-shorthand: - - 2 + - error no-param-reassign: - - 2 + - error - props: false no-extra-parens: - - 2 + - error no-return-await: - - 2 + - error no-self-compare: - - 2 + - error no-template-curly-in-string: - - 2 + - error no-throw-literal: - - 2 + - error no-undef-init: - - 2 + - error no-unmodified-loop-condition: - - 2 + - error no-unneeded-ternary: - - 2 + - error no-unreachable-loop: - - 2 + - error no-unsafe-optional-chaining: - - 2 + - error no-unused-expressions: - - 2 + - error no-use-before-define: - - 2 + - error - functions: false no-useless-backreference: - - 2 + - error no-useless-call: - - 2 + - error no-useless-computed-key: - - 2 + - error no-useless-concat: - - 2 + - error no-useless-constructor: - - 2 + - error no-useless-rename: - - 2 + - error no-useless-return: - - 2 + - error no-var: - - 2 + - error nonblock-statement-body-position: - - 2 + - error one-var-declaration-per-line: - - 2 + - error prefer-arrow-callback: - - 2 + - error prefer-const: - - 2 + - error prefer-exponentiation-operator: - - 2 + - error prefer-numeric-literals: - - 2 + - error prefer-object-spread: - - 2 + - error prefer-promise-reject-errors: - - 2 + - error prefer-template: - - 2 + - error prefer-rest-params: - - 2 + - error rest-spread-spacing: - - 2 + - error require-atomic-updates: - - 2 + - error require-await: - - 2 + - error diff --git a/package-lock.json b/package-lock.json index 390ff77..8851d42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1524,9 +1524,9 @@ "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==" }, "node_modules/@types/node": { - "version": "20.14.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.14.tgz", - "integrity": "sha512-d64f00982fS9YoOgJkAMolK7MN8Iq3TDdVjchbYHdEmjth/DHowx82GnoA+tVUAN+7vxfYUgAzi+JXbKNd2SDQ==", + "version": "20.14.15", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.15.tgz", + "integrity": "sha512-Fz1xDMCF/B00/tYSVMlmK7hVeLh7jE5f3B7X1/hmV0MJBwE27KlS7EvD/Yp+z1lm8mVhwV5w+n8jOZG8AfTlKw==", "dependencies": { "undici-types": "~5.26.4" } @@ -5033,9 +5033,9 @@ } }, "node_modules/terser": { - "version": "5.31.4", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.31.4.tgz", - "integrity": "sha512-3OU03GgblDgu0g+sdnsVzhBPxnjV+WJuMmocN1qBBZDQ3ia7jZQSAkePeKbPlYAejGXUTYe1CmSaUeV51mvaIw==", + "version": "5.31.5", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.31.5.tgz", + "integrity": "sha512-YPmas0L0rE1UyLL/llTWA0SiDOqIcAQYLeUj7cJYzXHlRTAnMSg9pPe4VJ5PlKvTrPQsdVFuiRiwyeNlYgwh2Q==", "dependencies": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.8.2", diff --git a/tsconfig.json b/tsconfig.json index 4529bfc..02e62e0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,8 +5,8 @@ "node", "vite/client" ], - "target": "esnext", - "module": "esnext", + "target": "ESNext", + "module": "ESNext", "strict": true, "importHelpers": true, "moduleResolution": "node", @@ -29,7 +29,7 @@ "removeComments": true, "isolatedModules": true, "lib": [ - "esnext" + "ESNext" ], "rootDir": ".", "baseUrl": ".",