@tsofist/web-buddy 2.0.0-next.5 → 2.0.0-next.7

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.
@@ -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;
@@ -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(...createWebBuddyESLintConfigGeneralChain(), ...WebBuddyESLintJSON, WebBuddyESLintTypeScript, WebBuddyESLintVue, ...WebBuddyESLintFrameworkSpecificConfigForMercurio, WebBuddyESLintYAML);
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 [
@@ -22,7 +22,9 @@ export const WebBuddyESLintTypeScript = {
22
22
  sourceType: 'module',
23
23
  parser: epTS.parser,
24
24
  parserOptions: {
25
- projectService: true,
25
+ projectService: {
26
+ allowDefaultProject: ['jest-setup.ts', '*.jest-setup.ts'],
27
+ },
26
28
  extraFileExtensions: WebBuddyESLintVueExtraFileExtensions,
27
29
  },
28
30
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsofist/web-buddy",
3
- "version": "2.0.0-next.5",
3
+ "version": "2.0.0-next.7",
4
4
  "description": "Configuration basics for Linters, TypeScript, Semantic Release and others",
5
5
  "type": "module",
6
6
  "author": "Andrew Berdnikov <tsofistgudmen@gmail.com>",