mirror of
https://github.com/chenasraf/stimvisor.git
synced 2026-05-17 17:38:11 +00:00
34 lines
761 B
JavaScript
34 lines
761 B
JavaScript
import eslint from '@eslint/js'
|
|
import tseslint from 'typescript-eslint'
|
|
import reactPlugin from 'eslint-plugin-react'
|
|
import hooksPlugin from 'eslint-plugin-react-hooks'
|
|
|
|
export default [
|
|
...tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
reactPlugin.configs.flat.recommended,
|
|
),
|
|
{
|
|
plugins: {
|
|
'react-hooks': hooksPlugin,
|
|
},
|
|
rules: {
|
|
'react/react-in-jsx-scope': 'off',
|
|
...hooksPlugin.configs.recommended.rules,
|
|
},
|
|
ignores: ['*.test.tsx'],
|
|
},
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'warn',
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
|
],
|
|
},
|
|
},
|
|
{
|
|
ignores: ['node_modules/', 'build/', 'dist/', 'gen/'],
|
|
},
|
|
]
|