mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-03 21:33:09 +00:00
28 lines
608 B
JavaScript
28 lines
608 B
JavaScript
|
|
import js from '@eslint/js';
|
||
|
|
import tseslint from 'typescript-eslint';
|
||
|
|
|
||
|
|
export default tseslint.config(
|
||
|
|
{ ignores: ['dist'] },
|
||
|
|
{
|
||
|
|
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
||
|
|
files: ['src/**/*.{ts,tsx}'],
|
||
|
|
languageOptions: {
|
||
|
|
ecmaVersion: 2020,
|
||
|
|
parserOptions: {
|
||
|
|
tsconfigRootDir: new URL('.', import.meta.url).pathname,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
'@typescript-eslint/no-explicit-any': 'error',
|
||
|
|
'@typescript-eslint/no-unused-vars': [
|
||
|
|
'error',
|
||
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
}
|
||
|
|
);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|