panku-app/eslint.config.js

1import js from '@eslint/js' 2import globals from 'globals' 3import reactHooks from 'eslint-plugin-react-hooks' 4import reactRefresh from 'eslint-plugin-react-refresh' 5import { defineConfig, globalIgnores } from 'eslint/config' 6 7export default defineConfig([ 8 globalIgnores(['dist']), 9 { 10 files: ['**/*.{js,jsx}'], 11 extends: [ 12 js.configs.recommended, 13 reactHooks.configs.flat.recommended, 14 reactRefresh.configs.vite, 15 ], 16 languageOptions: { 17 ecmaVersion: 2020, 18 globals: globals.browser, 19 parserOptions: { 20 ecmaVersion: 'latest', 21 ecmaFeatures: { jsx: true }, 22 sourceType: 'module', 23 }, 24 }, 25 rules: { 26 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], 27 }, 28 }, 29])