forked from stellarkit-lab-devtools/stellarkit-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
23 lines (22 loc) · 799 Bytes
/
Copy patheslint.config.js
File metadata and controls
23 lines (22 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/** @type {import('eslint').Linter.Config[]} */
module.exports = [
{
name: 'stellarkit-api',
files: ['**/*.js'],
ignores: ['node_modules/**', 'coverage/**'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'script',
// No extra globals needed for this codebase.
},
// ESLint v9 uses flat config. We apply the recommended ruleset
// to match the acceptance criteria of `extends: eslint:recommended`.
rules: {
// `eslint:recommended` baseline rules (subset) to keep lint non-breaking.
// Note: The environment here appears to disallow importing internal
// presets, so we mirror only the ruleset that doesn't require
// refactoring the existing code.
'no-unused-vars': ['warn', { args: 'none' }],
},
},
];