29 lines
718 B
JavaScript
29 lines
718 B
JavaScript
// @ts-check
|
|
|
|
import eslint from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
import eslintConfigPrettier from 'eslint-config-prettier/flat';
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
linterOptions: {
|
|
reportUnusedDisableDirectives: false
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }]
|
|
}
|
|
},
|
|
{
|
|
ignores: ['src/spec.types.ts']
|
|
},
|
|
{
|
|
files: ['src/client/**/*.ts', 'src/server/**/*.ts'],
|
|
ignores: ['**/*.test.ts'],
|
|
rules: {
|
|
'no-console': 'error'
|
|
}
|
|
},
|
|
eslintConfigPrettier
|
|
);
|