36 lines
877 B
JavaScript
36 lines
877 B
JavaScript
import eslintJs from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
import prettier from 'eslint-config-prettier';
|
|
import prettierPlugin from 'eslint-plugin-prettier';
|
|
|
|
export default [
|
|
eslintJs.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
prettier,
|
|
{
|
|
files: ['**/*.ts'],
|
|
plugins: {
|
|
prettier: prettierPlugin,
|
|
},
|
|
languageOptions: {
|
|
parserOptions: {
|
|
projectService: true,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
rules: {
|
|
'prettier/prettier': 'error',
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
|
],
|
|
'@typescript-eslint/no-deprecated': 'error',
|
|
},
|
|
},
|
|
{
|
|
ignores: ['dist/**', 'node_modules/**', '.angular/**', 'coverage/**'],
|
|
},
|
|
];
|