mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
39 lines
958 B
JavaScript
39 lines
958 B
JavaScript
|
|
import js from '@eslint/js';
|
||
|
|
import globals from 'globals';
|
||
|
|
import reactHooks from 'eslint-plugin-react-hooks';
|
||
|
|
import reactRefresh from 'eslint-plugin-react-refresh';
|
||
|
|
import tseslint from 'typescript-eslint';
|
||
|
|
|
||
|
|
export default tseslint.config(
|
||
|
|
{
|
||
|
|
ignores: [
|
||
|
|
'node_modules',
|
||
|
|
'tsconfig.tsbuildinfo',
|
||
|
|
'dist',
|
||
|
|
'../src/server/assets/dist',
|
||
|
|
],
|
||
|
|
},
|
||
|
|
{
|
||
|
|
files: ['**/*.{ts,tsx}'],
|
||
|
|
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
||
|
|
languageOptions: {
|
||
|
|
ecmaVersion: 2020,
|
||
|
|
sourceType: 'module',
|
||
|
|
globals: {
|
||
|
|
...globals.browser,
|
||
|
|
...globals.es2020,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
plugins: {
|
||
|
|
'react-hooks': reactHooks,
|
||
|
|
'react-refresh': reactRefresh,
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
||
|
|
'react-hooks/rules-of-hooks': 'error',
|
||
|
|
'react-hooks/exhaustive-deps': 'warn',
|
||
|
|
'react-refresh/only-export-components': 'off',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
);
|