From 8df792fb59b9ab2f12521f8639d10dd9eb85e023 Mon Sep 17 00:00:00 2001 From: Daniel Jonathan <9982123+daniel-jonathan@users.noreply.github.com> Date: Wed, 13 Nov 2024 20:13:54 -0500 Subject: [PATCH] updated eslint --- .eslintrc.yml | 198 +++++++++++++++++++++++++------------------------- 1 file changed, 100 insertions(+), 98 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 7eaff38..55ab7a8 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -2,38 +2,42 @@ root: true env: node: true browser: true - es6: true -parser: '@typescript-eslint/parser' + es2021: true +parser: 'vue-eslint-parser' +parserOptions: + parser: '@typescript-eslint/parser' + ecmaVersion: 2021 + sourceType: module plugins: - '@typescript-eslint' + - 'import' + - 'vue' extends: - eslint:recommended - - plugin:@typescript-eslint/eslint-recommended + - plugin:vue/vue3-recommended - plugin:@typescript-eslint/recommended - - plugin:yml/standard + - plugin:import/errors + - plugin:import/warnings + - plugin:import/typescript overrides: - files: - - '**/*.js' + - '**/*.js' + - '**/*.ts' rules: - '@typescript-eslint/no-inferrable-types': - - 0 - '@typescript-eslint/explicit-function-return-type': - - 0 + '@typescript-eslint/no-inferrable-types': off + '@typescript-eslint/explicit-function-return-type': off rules: - '@typescript-eslint/no-empty-interface': - - error - '@typescript-eslint/no-inferrable-types': - - error - '@typescript-eslint/explicit-function-return-type': - - error - eqeqeq: - - error - camelcase: - - error - no-console: - - error - no-lonely-if: - - error + '@typescript-eslint/no-empty-interface': error + '@typescript-eslint/no-explicit-any': warn + '@typescript-eslint/explicit-module-boundary-types': error + '@typescript-eslint/no-unused-vars': + - error + - argsIgnorePattern: '^_' + varsIgnorePattern: '^_' + eqeqeq: error + camelcase: error + no-console: error + no-lonely-if: error comma-dangle: - error - arrays: never @@ -45,8 +49,7 @@ rules: - error - 4 - SwitchCase: 1 - no-tabs: - - error + no-tabs: error object-curly-spacing: - error - always @@ -56,17 +59,16 @@ rules: curly: - error - all - template-curly-spacing: - - error - no-trailing-spaces: - - error - no-spaced-func: - - error - space-before-blocks: - - error + template-curly-spacing: error + no-trailing-spaces: error + space-before-blocks: error semi: - error - never + quotes: + - error + - single + - avoidEscape: true object-curly-newline: - error - multiline: true @@ -74,75 +76,75 @@ rules: consistent: true object-property-newline: - error - object-shorthand: - - error + - allowAllPropertiesOnSameLine: true + object-shorthand: error no-param-reassign: - error - props: false - no-extra-parens: - - error - no-return-await: - - error - no-self-compare: - - error - no-template-curly-in-string: - - error - no-throw-literal: - - error - no-undef-init: - - error - no-unmodified-loop-condition: - - error - no-unneeded-ternary: - - error - no-unreachable-loop: - - error - no-unsafe-optional-chaining: - - error - no-unused-expressions: - - error + no-extra-parens: error + no-return-await: error + no-self-compare: error + no-template-curly-in-string: error + no-throw-literal: error + no-undef-init: error + no-unmodified-loop-condition: error + no-unneeded-ternary: error + no-unreachable-loop: error + no-unsafe-optional-chaining: error + no-unused-expressions: error no-use-before-define: - error - functions: false - no-useless-backreference: - - error - no-useless-call: - - error - no-useless-computed-key: - - error - no-useless-concat: - - error - no-useless-constructor: - - error - no-useless-rename: - - error - no-useless-return: - - error - no-var: - - error - nonblock-statement-body-position: - - error - one-var-declaration-per-line: - - error - prefer-arrow-callback: - - error - prefer-const: - - error - prefer-exponentiation-operator: - - error - prefer-numeric-literals: - - error - prefer-object-spread: - - error - prefer-promise-reject-errors: - - error - prefer-template: - - error - prefer-rest-params: - - error - rest-spread-spacing: - - error - require-atomic-updates: - - error - require-await: + classes: true + variables: true + no-useless-backreference: error + no-useless-call: error + no-useless-computed-key: error + no-useless-concat: error + no-useless-constructor: error + no-useless-rename: error + no-useless-return: error + no-var: error + nonblock-statement-body-position: error + one-var-declaration-per-line: error + prefer-arrow-callback: error + prefer-const: error + prefer-exponentiation-operator: error + prefer-numeric-literals: error + prefer-object-spread: error + prefer-promise-reject-errors: error + prefer-template: error + prefer-rest-params: error + rest-spread-spacing: error + require-atomic-updates: error + require-await: error + import/order: + - error + - groups: + - builtin + - external + - internal + - parent + - sibling + - index + newlines-between: always + alphabetize: + order: asc + caseInsensitive: true + vue/html-indent: - error + - 4 + vue/max-attributes-per-line: + - error + - singleline: 3 + multiline: 1 + vue/require-default-prop: off + vue/html-self-closing: + - error + - html: + void: never + normal: always + component: always +settings: + import/resolver: + typescript: {} \ No newline at end of file