@bagelink/lint-config 1.7.3 → 1.7.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint/index.js +11 -0
- package/package.json +1 -1
package/eslint/index.js
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import vue3 from './vue3.js'
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Define workspace-level ESLint configuration
|
|
5
|
+
* Extends the base vue3 config with custom overrides
|
|
6
|
+
* @param {import('eslint').Linter.Config | import('eslint').Linter.Config[]} config - Custom config or array of configs
|
|
7
|
+
* @returns {import('eslint').Linter.Config[]} - ESLint flat config array
|
|
8
|
+
*/
|
|
9
|
+
export function defineConfig(config = {}) {
|
|
10
|
+
const customConfig = Array.isArray(config) ? config : [config]
|
|
11
|
+
return [...vue3, ...customConfig]
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
export { vue3 }
|
|
4
15
|
export default vue3
|
|
5
16
|
|