24 lines
569 B
JavaScript
24 lines
569 B
JavaScript
import js from '@eslint/js'
|
|
import tseslint from 'typescript-eslint'
|
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
|
|
export default tseslint.config(
|
|
{
|
|
ignores: ['**/dist/**', '**/node_modules/**', '**/*.config.{js,ts}'],
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['apps/web/**/*.{ts,tsx}'],
|
|
plugins: { 'react-hooks': reactHooks },
|
|
rules: {
|
|
...reactHooks.configs.recommended.rules,
|
|
},
|
|
},
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
|
},
|
|
},
|
|
)
|