An in-browser wisp.place site explorer
at main 33 lines 899 B view raw
1import js from '@eslint/js'; 2import globals from 'globals'; 3import reactHooks from 'eslint-plugin-react-hooks'; 4import reactRefresh from 'eslint-plugin-react-refresh'; 5import tseslint from 'typescript-eslint'; 6 7export default tseslint.config( 8 { ignores: ['dist'] }, 9 { 10 extends: [js.configs.recommended, ...tseslint.configs.recommended], 11 files: ['**/*.{ts,tsx}'], 12 languageOptions: { 13 ecmaVersion: 2020, 14 globals: globals.browser, 15 }, 16 plugins: { 17 'react-hooks': reactHooks, 18 'react-refresh': reactRefresh, 19 }, 20 rules: { 21 ...reactHooks.configs.recommended.rules, 22 'react-refresh/only-export-components': [ 23 'warn', 24 { allowConstantExport: true }, 25 ], 26 '@typescript-eslint/no-explicit-any': 'warn', 27 '@typescript-eslint/no-unused-vars': [ 28 'error', 29 { argsIgnorePattern: '^_' }, 30 ], 31 }, 32 } 33);