| 123456789101112131415161718192021222324252627282930313233 |
- import tseslint from 'typescript-eslint';
- export default tseslint.config(
- {
- ignores: [
- 'build/',
- 'node_modules/',
- 'coverage/',
- '**/*.js',
- '**/*.cjs',
- '**/*.mjs',
- '**/*.d.ts',
- 'src/wikijs/generated/',
- ],
- },
- ...tseslint.configs.recommendedTypeChecked,
- {
- languageOptions: {
- parserOptions: {
- projectService: true,
- tsconfigRootDir: import.meta.dirname,
- },
- },
- rules: {
- '@typescript-eslint/explicit-function-return-type': 'off',
- '@typescript-eslint/explicit-module-boundary-types': 'off',
- '@typescript-eslint/no-explicit-any': 'error',
- '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
- '@typescript-eslint/no-floating-promises': 'error',
- 'no-console': ['warn', { allow: ['warn', 'error'] }],
- },
- },
- );
|