30 lines
778 B
TypeScript
30 lines
778 B
TypeScript
import tseslint from '@typescript-eslint/eslint-plugin';
|
|
import tsParser from '@typescript-eslint/parser';
|
|
import prettier from 'eslint-plugin-prettier';
|
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
|
|
export default [
|
|
{
|
|
ignores: ['dist/**', 'node_modules/**', 'server', '*.js'],
|
|
},
|
|
{
|
|
files: ['**/*.ts'],
|
|
plugins: {
|
|
'@typescript-eslint': tseslint,
|
|
prettier,
|
|
},
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
},
|
|
rules: {
|
|
...eslintConfigPrettier.rules,
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'warn',
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' },
|
|
],
|
|
'prettier/prettier': 'error',
|
|
},
|
|
},
|
|
];
|