Files
gh-secondsky-sap-skills-ski…/templates/ui5lint.config.mjs
2025-11-30 08:55:38 +08:00

59 lines
1.6 KiB
JavaScript

/**
* UI5 Linter Configuration (ES Module)
*
* Use this configuration file for modern JavaScript projects with "type": "module" in package.json.
* Place this file in your project root (same directory as ui5.yaml and package.json).
*
* Documentation: https://github.com/UI5/linter/blob/main/README.md
*/
export default {
/**
* Ignore Patterns
*
* Array of glob patterns to exclude files from linting.
* Patterns are relative to project root.
* Use '!' prefix for negation (include files despite earlier ignore).
* Pattern order matters - later patterns override earlier ones.
*/
ignores: [
// Third-party libraries (no control over code quality)
"webapp/thirdparty/**",
"webapp/vendor/**",
// Mock data and local services (often auto-generated)
"webapp/localService/**",
// Test files (optional - remove if you want to lint tests)
"webapp/test/**",
// Include integration tests (negation example)
"!webapp/test/integration/**",
// Build output directories
"dist/**",
"build/**",
// Minified files (already optimized, no need to lint)
"**/*.min.js",
"**/*.bundle.js",
// UI Adaptation changes (generated by Fiori)
"webapp/changes/**",
],
/**
* File Patterns (Optional)
*
* Array of glob patterns specifying which files to lint.
* If omitted, all files in the project are linted (except ignores).
*
* Uncomment and customize if you want to lint specific files only:
*/
// files: [
// "webapp/**/*.js",
// "webapp/**/*.xml",
// "webapp/manifest.json",
// ],
};