-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.cjs
More file actions
35 lines (34 loc) · 933 Bytes
/
Copy patheslint.config.cjs
File metadata and controls
35 lines (34 loc) · 933 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
28
29
30
31
32
33
34
35
const eslint = require('@eslint/js')
const tseslint = require('typescript-eslint')
const prettierConfig = require('eslint-config-prettier')
module.exports = tseslint.config(
{
ignores: [
'node_modules/',
'cdk.out/',
'.mastra/',
'**/*.js',
'**/*.d.ts',
'eslint.config.cjs',
'jest.config.cjs',
'scripts/',
],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked, // Or .recommended for non-type-aware rules
prettierConfig, // Make sure this is last
{
languageOptions: {
parserOptions: {
project: true,
// tsconfigRootDir needs to be specified differently in CJS
// ESLint usually infers this correctly, but if needed:
// tsconfigRootDir: __dirname,
},
},
rules: {
// Add any project-specific overrides here
// Example: '@typescript-eslint/no-unused-vars': 'warn',
},
}
)