forked from forcedotcom/mobile-mcp-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
77 lines (75 loc) · 2.28 KB
/
eslint.config.mjs
File metadata and controls
77 lines (75 loc) · 2.28 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* Copyright (c) 2025, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettier from 'eslint-plugin-prettier';
import evaluationConfig from './packages/evaluation/eslint.config.mjs';
export default tseslint.config(
{
ignores: [
'packages/project-maintenance-utilities/dist/**',
'packages/project-maintenance-utilities/node_modules/**',
'packages/project-maintenance-utilities/coverage/**',
'packages/evaluation/dist/**',
'packages/evaluation/node_modules/**',
'packages/evaluation/coverage/**',
'packages/mobile-native-mcp-server/templates/**',
'**/dist/*',
'**/*.d.ts',
],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
// Configuration for JavaScript files (LWC components)
{
files: ['**/*.js'],
languageOptions: {
globals: {
console: 'readonly',
window: 'readonly',
document: 'readonly',
},
},
plugins: {
prettier: prettier,
},
rules: {
'prettier/prettier': 'error',
},
},
...evaluationConfig,
// TypeScript configuration - works both from root and package directories
{
files: [
'packages/project-maintenance-utilities/{src,tests}/**/*.ts',
'packages/evaluation/{src,tests}/**/*.ts',
'packages/mobile-native-mcp-server/{src,tests}/**/*.ts',
'packages/mcp-workflow/{src,tests}/**/*.ts',
'packages/mcp-magi/{src,tests}/**/*.ts',
'packages/workflow-magi/{src,tests}/**/*.ts',
'{src,tests}/**/*.ts', // For when running from package directories
],
plugins: {
prettier: prettier,
},
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
],
'no-duplicate-imports': 'error'
},
}
);