From e848e09149cddb995d554b95d493b87454169b33 Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Sat, 2 Nov 2024 12:26:08 -0700 Subject: [PATCH] fix: eslint --- .github/dependabot.yml | 1 - eslint.config.mjs | 17 +++++++---------- tsconfig.json | 2 +- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 68ebbd3..ee967d4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,7 +9,6 @@ updates: # Node.js updates require changes to .nvmrc - dependency-name: "@types/node" - groups: patch-deps-updates-main: update-types: diff --git a/eslint.config.mjs b/eslint.config.mjs index 1624dcf..62f676d 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -4,6 +4,7 @@ import globals from 'globals' import tsParser from '@typescript-eslint/parser' export default [{ + files: ['**/*.ts'], plugins: { '@typescript-eslint': typescriptEslint, unicorn, @@ -13,6 +14,7 @@ export default [{ 'dist/**', 'build/**', 'example/.nuxt/**', + 'example/.output/**', ], languageOptions: { @@ -64,6 +66,10 @@ export default [{ skipBlankLines: false, ignoreComments: false, }], + 'no-unused-vars': 'off', + 'no-undef': 'off', + 'no-redeclare': 'off', + 'dot-notation': 'off', 'no-var': 'error', 'unicode-bom': ['error', 'never'], @@ -77,14 +83,5 @@ export default [{ 'unicorn/prefer-node-protocol': ['error'], 'no-restricted-syntax': ['error', 'IfStatement > ExpressionStatement > AssignmentExpression'], 'unicorn/prefer-ternary': 'error', - }, -}, { - files: ['**/*.ts'], - ignores: ['node_modules/**', 'dist/**', 'build/**'], - rules: { - 'no-unused-vars': 'off', - 'no-undef': 'off', - 'no-redeclare': 'off', - 'dot-notation': 'off', - }, + } }] diff --git a/tsconfig.json b/tsconfig.json index c605033..588c693 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,5 +22,5 @@ "src/**/*", "src/cjs/package.json" ], - "ignore": ["node_modules", "dist"] + "ignore": ["node_modules", "dist", "example/.nuxt"] }