@tsofist/web-buddy 2.0.0-next.5 → 2.0.0-next.6
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/lib/eslint/config.d.ts +2 -1
- package/lib/eslint/config.js +11 -1
- package/lib/eslint/ignores.js +3 -0
- package/package.json +1 -1
package/lib/eslint/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WebBuddyESLintConfig } from '../types.js';
|
|
1
|
+
import type { ESLintConfigChain, WebBuddyESLintConfig } from '../types.js';
|
|
2
2
|
declare const _default: readonly {
|
|
3
3
|
readonly name?: string | undefined;
|
|
4
4
|
readonly basePath?: string | undefined;
|
|
@@ -1198,3 +1198,4 @@ declare const _default: readonly {
|
|
|
1198
1198
|
}[];
|
|
1199
1199
|
export default _default;
|
|
1200
1200
|
export declare function createWebBuddyESLintConfig(): WebBuddyESLintConfig;
|
|
1201
|
+
export declare function createWebBuddyESLintConfigChain(): ESLintConfigChain;
|
package/lib/eslint/config.js
CHANGED
|
@@ -12,7 +12,17 @@ import { WebBuddyESLintYAML } from './config.yaml.js';
|
|
|
12
12
|
import { WebBuddyESLintIgnores } from './ignores.js';
|
|
13
13
|
export default createWebBuddyESLintConfig();
|
|
14
14
|
export function createWebBuddyESLintConfig() {
|
|
15
|
-
return defineConfig(...
|
|
15
|
+
return defineConfig(...createWebBuddyESLintConfigChain());
|
|
16
|
+
}
|
|
17
|
+
export function createWebBuddyESLintConfigChain() {
|
|
18
|
+
return [
|
|
19
|
+
...createWebBuddyESLintConfigGeneralChain(),
|
|
20
|
+
...WebBuddyESLintJSON,
|
|
21
|
+
WebBuddyESLintTypeScript,
|
|
22
|
+
WebBuddyESLintVue,
|
|
23
|
+
...WebBuddyESLintFrameworkSpecificConfigForMercurio,
|
|
24
|
+
WebBuddyESLintYAML,
|
|
25
|
+
];
|
|
16
26
|
}
|
|
17
27
|
function createWebBuddyESLintConfigGeneralChain() {
|
|
18
28
|
return [
|
package/lib/eslint/ignores.js
CHANGED
package/package.json
CHANGED