-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
27 lines (26 loc) · 874 Bytes
/
Copy patheslint.config.js
File metadata and controls
27 lines (26 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import globals from 'globals';
export default tseslint.config(
{
ignores: ['dist/**', 'node_modules/**', 'scripts/**', '.mastra/**', '.superpowers/**'],
},
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ['src/**/*.ts', 'bin/**/*.ts'],
languageOptions: {
globals: { ...globals.node },
},
rules: {
// The codebase intentionally uses `any` at a few API boundaries (GraphQL/
// Notion responses) — surface as a warning, not a hard error.
'@typescript-eslint/no-explicit-any': 'warn',
// Allow underscore-prefixed intentionally-unused args/vars.
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' },
],
},
},
);