Some checks failed
CI / test (push) Failing after 43s
- Introduced ESLint configuration files for both api and web packages to enforce coding standards. - Updated MinioService and TokenService to improve error handling and type definitions. - Refactored localStorage access in web components to use window.localStorage for consistency. - Enhanced ESLint rules in base configuration to improve code quality and maintainability.
36 lines
857 B
JavaScript
36 lines
857 B
JavaScript
import eslint from '@eslint/js';
|
|
import turboPlugin from 'eslint-plugin-turbo';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
/**
|
|
* A shared ESLint configuration for the repository.
|
|
*
|
|
* @type {import("eslint").Linter.Config[]}
|
|
* */
|
|
export const config = tseslint.config(
|
|
eslint.configs.recommended,
|
|
tseslint.configs.recommended,
|
|
[
|
|
{
|
|
plugins: {
|
|
turbo: turboPlugin,
|
|
},
|
|
rules: {
|
|
'turbo/no-undeclared-env-vars': 'warn',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-empty-object-type': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
caughtErrorsIgnorePattern: '^_',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
ignores: ['dist/**'],
|
|
},
|
|
]
|
|
);
|