Skip to content

Commit

Permalink
fix: no-unused-vars eslint rule has been moved to a global rule set.
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-crowell authored Jul 3, 2024
1 parent e9a976f commit d086f5a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/eslint-config/src/configs/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import stylistic from '@stylistic/eslint-plugin';
import tailwind from 'eslint-plugin-tailwindcss';
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import reactCompiler from 'eslint-plugin-react-compiler';
import reactCompiler, { rules } from 'eslint-plugin-react-compiler';
import { fixupPluginRules } from '@eslint/compat';
import globals from 'globals';

Expand All @@ -17,6 +17,12 @@ export const recommended: Record<string, unknown>[] = [
files: [ '**/tailwind.config.{ts,js}', '**/postcss.config.{ts,js}' ],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'no-undef': 'off',
}
},

{
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{
Expand All @@ -29,7 +35,6 @@ export const recommended: Record<string, unknown>[] = [
'ignoreRestSiblings': true
}
],
'no-undef': 'off',
}
},

Expand Down

0 comments on commit d086f5a

Please sign in to comment.